MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / loadOllamaModel

Function loadOllamaModel

frontend/src/api/modules/ai.ts:19–21  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

17 return http.post<ResPage<AI.OllamaModelInfo>>(`/ai/ollama/model/search`, params);
18};
19export const loadOllamaModel = (name: string) => {
20 return http.post<string>(`/ai/ollama/model/load`, { name: name });
21};
22export const syncOllamaModel = () => {
23 return http.post<Array<AI.OllamaModelDropInfo>>(`/ai/ollama/model/sync`);
24};

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected