ui/client/features/ollama/services/OllamaModelOps
Cockpit client (features), v0.8. Source: ui/client/features/ollama/services/OllamaModelOps.tsx.
Functions#
pullOllamaModel()#
pullOllamaModel(
name,onProgress):Promise<void>
Defined in: ui/client/features/ollama/services/OllamaModelOps.tsx:15
Streams /api/ollama/pull's newline-delimited JSON progress events,
calling onProgress once per parsed line as it arrives — a real pull can
run for minutes, so this reads the response body incrementally instead of
waiting for it to finish before the caller sees anything.
Parameters#
name
string
onProgress
(p) => void
Returns#
Promise<void>
removeOllamaModel()#
removeOllamaModel(
name):Promise<any>
Defined in: ui/client/features/ollama/services/OllamaModelOps.tsx:8
Parameters#
name
string
Returns#
Promise<any>