fix(web): knowledge base model api params

This commit is contained in:
zhaoying
2026-04-02 10:22:21 +08:00
parent fe29141437
commit 1305a08c86
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ export const getModelTypeList = async () => {
return response as any[];
};
// 获取模型列表
export const getModelList = async (types: string[], pageInfo: PageRequest) => {
export const getModelList = async (pageInfo: PageRequest, types?: string[]) => {
const response = await request.get(`${apiPrefix}/models`, { ...pageInfo, type: types?.join(','), is_active: true });
return response as any;
};