chore: config base url

This commit is contained in:
jialin
2025-11-13 12:22:16 +08:00
parent 03963b736a
commit f963b3a000
16 changed files with 34 additions and 59 deletions
+3 -3
View File
@@ -1,3 +1,4 @@
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';
@@ -154,10 +155,9 @@ export async function queryModelInstanceLogs(id: number) {
// ===================== call huggingface quicksearch api =====================
const MODEL_SCOPE_LIST_MODEL_API =
'https://www.modelscope.cn/api/v1/dolphin/models';
const MODEL_SCOPE_LIST_MODEL_API = `https://www.modelscope.cn/api/${GPUSTACK_API_BASE_URL}/dolphin/models`;
const MODE_SCOPE_MODEL_FIELS_API = 'https://modelscope.cn/api/v1/models/';
const MODE_SCOPE_MODEL_FIELS_API = `https://modelscope.cn/api/${GPUSTACK_API_BASE_URL}/models/`;
export async function queryHuggingfaceModelDetail(
params: { repo: string },