Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/ollama/domain/OllamaPlatform

Pure (DOMAIN-001) — split out of Ollama.tsx to stay under the per-file primary-export threshold.

Cockpit client (features), next. Source: ui/client/features/ollama/domain/OllamaPlatform.tsx.

Type Aliases#

Platform#

Platform = "mac" | "linux" | "windows" | "other"

Defined in: ui/client/features/ollama/domain/OllamaPlatform.tsx:6

Functions#

detectPlatform()#

detectPlatform(userAgent): Platform

Defined in: ui/client/features/ollama/domain/OllamaPlatform.tsx:11

Best-effort platform label from a raw user-agent string — used only to pick which install command to show first. The official download link is always shown too, so a wrong guess costs nothing but ordering.

Parameters#

userAgent

string

Returns#

Platform


installCommandFor()#

installCommandFor(platform): string | null

Defined in: ui/client/features/ollama/domain/OllamaPlatform.tsx:26

Parameters#

platform

Platform

Returns#

string | null