Update an LLM
PATCH/v2/llms/:llm_id
Supported API Key Type:
Index ServicePersonal
Update an existing LLM's configuration. This endpoint allows partial updates - only provide fields you want to change. Only the name field is immutable.
The updated LLM will be tested before saving to ensure credentials are valid.
Updatable fields:
description- LLM descriptiontype- LLM type (openai-compatible, vertex-ai, etc.)model- Model identifieruri- API endpointauth- Authentication credentials (including service account key_json)headers- Additional HTTP headers (for openai-compatible and anthropic types)enabled- Whether the LLM is enabledcapabilities- Model capabilities (image support, context limit, tool calling)
Immutable fields:
id- System-generated identifiername- LLM name
Built-in LLMs (system-provided models) cannot be updated.
Request
Responses
- 200
- 400
- 403
- 404
The LLM has been updated
Invalid request body or connection test failed
Permissions do not allow updating this LLM or LLM is built-in
LLM not found