Skip to main content
PATCH
Update an LLM config

Authorizations

Authorization
string
header
required

Session JWT. After nasiko auth login, print it with jq -r '.clusters[.active].token' ~/.nasiko/config.json. API keys aren't supported.

Path Parameters

id
string<uuid>
required

LLM config id

Body

application/json

Partial update — every field is optional. Absent fields keep their current value. is_default is not touched here — use POST /llm-configs/{id}/default.

api_key_secret_name
string | null
clear_embedding_model
boolean

Clear the embedding destination. This PATCH only changes fields you send, so use this flag to unset the embedding model.

confirm_embedding_change
boolean

Acknowledge that changing an already-set embedding provider/model invalidates vectors indexed with the old one. Without it such a change is rejected with 428.

embedding_api_key_secret_name
string | null
embedding_model
string | null
embedding_model_override
boolean | null
embedding_provider
string | null
embedding_secret_value
string | null
fallback_models
string[] | null
max_tokens
integer<int64> | null
model
string | null
name
string | null
pinned
boolean | null
pinned_model
string | null
provider
string | null
secret_value
string | null
temperature
number<double> | null
tier1_model
string | null
tier2_model
string | null
tier3_model
string | null

Response

data is the updated config object (id, name, provider, model, fallback_models, temperature, max_tokens, api_key_secret_name, pinned, pinned_model, tier1_model, tier2_model, tier3_model, embedding_provider, embedding_model, embedding_api_key_secret_name, embedding_model_override, is_default, created_at, updated_at)

Standard MCP response envelope: {"data": …, "status_code": N, "message": "…"}. data is a free-form object; each route's response description says what it contains.

data
object | null
required
message
string
required
status_code
integer<int32>
required
Required range: x >= 0
Example:

200