/api/ollama
4 routes under /api/ollama.
Cockpit server REST reference, v0.8.
All routes sit below the Cockpit server's session gate (app.use('/api', auth.requireSession)) except /api/health. Generated from the real route table in ui/server/src.
GET /api/ollama/models#
Source: ui/server/src/index.mjs.
DELETE /api/ollama/models/:name#
| Parameter | In | Type |
|---|---|---|
name |
path | — |
Source: ui/server/src/index.mjs.
POST /api/ollama/pull#
Streams Ollama's own newline-delimited JSON pull-progress events straight through to the browser as they arrive (see startOllamaPull's comment) — the client reads this response body incrementally rather than waiting for it to finish, so a multi-GB pull shows live progress instead of a blocked spinner.
| Parameter | In | Type |
|---|---|---|
name |
body | — |
Source: ui/server/src/index.mjs.
GET /api/ollama/status#
--------------------------------------------------------------------------- Ollama. Read-only detection/listing never throws a hard error to the client; a non-running daemon is a normal state the UI renders (install guidance), not a 500.
Source: ui/server/src/index.mjs.