feat: lora for deployment

This commit is contained in:
jialin
2026-05-25 13:56:44 +08:00
committed by jialin
parent 6af18275c4
commit 342583f8d1
7 changed files with 426 additions and 1 deletions
+19 -1
View File
@@ -16,7 +16,8 @@ import {
GPUListItem,
ListItem,
ModelInstanceFormData,
ModelInstanceListItem
ModelInstanceListItem,
ModelLoraAdapterResult
} from '../config/types';
export const MODELS_API = '/models';
@@ -33,6 +34,8 @@ export const DRAFT_MODELS_API = '/draft-models';
export const CATALOG_LIST_API = '/model-sets';
export const MODEL_LORA_ADAPTER_API = '/models/adapters';
const setProxyUrl = (url: string) => {
return `/proxy?url=${encodeURIComponent(url)}`;
};
@@ -100,6 +103,21 @@ export async function queryModelDetail(id: number) {
});
}
export async function queryModelLoraAdapter(
params: {
base: string;
q?: string;
limit?: number;
},
options?: any
) {
return request<ModelLoraAdapterResult>(`${MODEL_LORA_ADAPTER_API}`, {
params,
cancelToken: options?.token,
method: 'GET'
});
}
// ===================== Model Instances start =====================
export async function queryModelInstancesList(