API ReferenceLLM Chain

Set LLM fallback chain

PUT
/api/v1/llm/chain

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication. Include your API key in the Authorization header as Bearer rf_your_key.

In: header

Request Body

application/json

chain*|null

Ordered list of provider:model pairs

[key: string]?never

Response Body

application/json

application/problem+json

curl -X PUT "http://localhost:8080/api/v1/llm/chain" \  -H "Content-Type: application/json" \  -d '{    "chain": [      {        "is_enabled": true,        "model": "string",        "provider": "openrouter"      }    ]  }'
{
  "chain": [
    {
      "created_at": "string",
      "id": "string",
      "is_enabled": true,
      "max_tokens": 0,
      "model": "string",
      "position": 0,
      "provider": "string",
      "temperature": 0.1,
      "updated_at": "string"
    }
  ]
}
{
  "detail": "Property foo is required but is missing.",
  "errors": [
    {
      "location": "string",
      "message": "string",
      "value": null
    }
  ],
  "instance": "https://example.com/error-log/abc123",
  "status": 400,
  "title": "Bad Request",
  "type": "https://example.com/errors/example"
}