Skip to main content
PATCH
/
v1
/
llm-configurations
/
{config_id}
Update Llm Configuration
curl --request PATCH \
  --url https://api.example.com/v1/llm-configurations/{config_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "base_url": "<string>",
  "display_name": "<string>",
  "model_name": "<string>",
  "secret_id": "<string>"
}
'
{
  "code": 100,
  "data": {
    "id": "<string>",
    "base_url": "<string>",
    "display_name": "<string>",
    "model_name": "<string>",
    "secret_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "message": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

config_id
string
required

Cookies

la_session
string

Body

application/json

Request schema for updating an LLM configuration

base_url
string

The LLM API endpoint URL

Minimum string length: 1
display_name
string

Display name for the configuration

Required string length: 1 - 255
model_name
string

The model name to use

Required string length: 1 - 255
secret_id
string

ID of the secret containing the API key

Required string length: 1 - 36

Response

Successful Response

code
integer
default:100
data
LLMConfigurationResponseSchema · object

Response schema for an LLM configuration

message
string