Kothai

Settings

Model selection, status, and first-run configuration.

GET /api/status

Returns AI state. If configured: false, show the first-run model picker.

ai.keywordOnly is true when the embedding role is off, or while a library upgraded from on-device models is still being re-embedded, so search matches keywords only. ai.upgradeNeeded is true on an install upgraded from on-device models that has no endpoint connected yet.

GET /api/settings

Returns the current model selection and endpoints.

Prop

Type

POST /api/settings

Updates model selection.

POST /api/settings/endpoint

Connects an endpoint. Pass role (embed or vision) to set that role's own endpoint; omit it for the shared one.

DELETE /api/settings/endpoint

Forgets a stored endpoint. With role, forgets only that role's, and it falls back to the shared one.

Both endpoint routes return 409 with { error, code: 'env_managed' } when environment variables manage the endpoint. So do POST /api/setup/endpoint and an endpoint field on POST /api/setup.

POST /api/setup

First-run only.

Prop

Type

If skip is not true, provide the model selection instead. POST /api/setup/endpoint connects an endpoint during setup and also accepts role.

Last updated on

On this page