fix: modelscope api incorrect

This commit is contained in:
jialin
2025-11-21 13:43:39 +08:00
parent 19babbc73d
commit 3f63831488
5 changed files with 34 additions and 42 deletions
+2 -3
View File
@@ -1,4 +1,3 @@
import { GPUSTACK_API_BASE_URL } from '@/config/settings';
import { ListItem as UserListItem } from '@/pages/users/config/types';
import { downloadFile, listFiles, listModels } from '@huggingface/hub';
import { PipelineType } from '@huggingface/tasks';
@@ -155,9 +154,9 @@ export async function queryModelInstanceLogs(id: number) {
// ===================== call huggingface quicksearch api =====================
const MODEL_SCOPE_LIST_MODEL_API = `https://www.modelscope.cn/api/${GPUSTACK_API_BASE_URL}/dolphin/models`;
const MODEL_SCOPE_LIST_MODEL_API = `https://www.modelscope.cn/api/v1/dolphin/models`;
const MODE_SCOPE_MODEL_FIELS_API = `https://modelscope.cn/api/${GPUSTACK_API_BASE_URL}/models/`;
const MODE_SCOPE_MODEL_FIELS_API = `https://modelscope.cn/api/v1/models/`;
export async function queryHuggingfaceModelDetail(
params: { repo: string },