chore: update model list polling
This commit is contained in:
@@ -12,11 +12,13 @@ export const MODEL_INSTANCE_API = '/model_instances';
|
||||
|
||||
// ===================== Models =====================
|
||||
export async function queryModelsList(
|
||||
params: Global.Pagination & { query?: string }
|
||||
params: Global.Pagination & { query?: string },
|
||||
options?: any
|
||||
) {
|
||||
return request<Global.PageResponse<ListItem>>(`${MODELS_API}`, {
|
||||
methos: 'GET',
|
||||
params
|
||||
params,
|
||||
...options
|
||||
});
|
||||
}
|
||||
|
||||
@@ -112,3 +114,12 @@ export async function callHuggingfaceQuickSearch(params: any) {
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
export async function queryHuggingfaceModelFiles(params: any) {
|
||||
return request(
|
||||
`https://huggingface.co/openbmb/MiniCPM-Llama3-V-2_5-gguf/tree/main`,
|
||||
{
|
||||
method: 'GET'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user