v2
OpenAPI 3.0.02026-08-051996591.2 MBLarge Language Models
Update an LLM
Updates an existing LLM's configuration. This endpoint supports partial updates. Provide only the fields you want to change. Only the name field is immutable.
The platform tests the updated LLM before saving it to ensure the credentials are valid.
Updatable fields:
- description - LLM description
- type - LLM type (openai-compatible, vertex-ai, etc.)
- model - Model identifier
- uri - API endpoint
- auth - Authentication credentials (including service account key_json)
- headers - Additional HTTP headers (for openai-compatible and anthropic types)
- enabled - Whether the LLM is enabled
- capabilities - Model capabilities (image support, context limit, tool calling)
Immutable fields:
- id - System-generated identifier
- name - LLM name
Built-in LLMs (system-provided models) cannot be updated.
patch/v2/llms/{llm_id}
Path parameters
llm_idstring required
The ID of the LLM to update.
Headers
Request-Timeoutinteger
The platform makes a best effort to complete the request in the specified seconds, or it times out.
Request-Timeout-Millisinteger
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"auth": {
"type": "bearer",
"token": "abcdef......"
},
"idle_timeout_seconds": 300,
"test_model_parameters": {
"max_tokens": 512
}
}Response
The updated LLM.
Example response
{
"id": "llm_1021844",
"name": "Claude 3.7 Sonnet",
"description": "The Anthropic Claude 3.7 Sonnet model.",
"ownership": "platform",
"idle_timeout_seconds": 300,
"auth": {
"type": "bearer",
"token": "abcdef......"
}
}