Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/ollama/workflows/Ollama

Cockpit client (features), v0.8. Source: ui/client/features/ollama/workflows/Ollama.tsx.

Type Aliases#

OllamaAction#

OllamaAction = { status: OllamaStatus; type: "STATUS_LOADED"; } | { message: string; type: "STATUS_FAILED"; } | { type: "STATUS_RETRY"; } | { models: OllamaModel[]; type: "MODELS_LOADED"; } | { message: string; type: "LOAD_ERROR"; } | { type: "SET_PULL_NAME"; value: string; } | { type: "PULL_STARTED"; } | { progress: PullProgress; type: "PULL_PROGRESS"; } | { type: "PULL_DONE"; } | { message: string; type: "PULL_ERROR"; } | { name: string; type: "MODEL_REMOVED"; } | { tag: string; type: "SELECT_MODEL"; }

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:23


OllamaState#

OllamaState = object

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:6

Properties#

loadError

loadError: string | null

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:9

models

models: OllamaModel[]

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:8

pullError

pullError: string | null

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:16

pulling

pulling: boolean

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:14

pullName

pullName: string

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:13

pullProgress

pullProgress: PullProgress | null

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:15

selectedModel

selectedModel: string | null

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:20

status

status: OllamaStatus | null

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:7

statusError

statusError: string | null

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:12

Variables#

initialOllamaState#

const initialOllamaState: OllamaState

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:37

Functions#

ollamaReducer()#

ollamaReducer(state, action): OllamaState

Defined in: ui/client/features/ollama/workflows/Ollama.tsx:49

Parameters#

state

OllamaState

action

OllamaAction

Returns#

OllamaState