Merge pull request #776 from SuanmoSuanyangTechnology/hotfix/v0.2.9

Hotfix/v0.2.9
This commit is contained in:
Ke Sun
2026-04-02 14:40:20 +08:00
committed by GitHub
4 changed files with 31 additions and 27 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;
};