feat: lora for deployment
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user