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

Function createOllamaModel

frontend/src/api/modules/ai.ts:7–9  ·  view source on GitHub ↗
(name: string, taskID: string)

Source from the content-addressed store, hash-verified

5import { TimeoutEnum } from '@/enums/http-enum';
6
7export const createOllamaModel = (name: string, taskID: string) => {
8 return http.post(`/ai/ollama/model`, { name: name, taskID: taskID });
9};
10export const recreateOllamaModel = (name: string, taskID: string) => {
11 return http.post(`/ai/ollama/model/recreate`, { name: name, taskID: taskID });
12};

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected