Skip to main content
PUT
Update provider and model
Updates the active provider and model. For openai-compat, include providerOptions with baseURL and name so the server can construct the OpenAI-compatible provider. The model field remains required and is used as the model ID when sending requests.

Body

application/json
provider
string
required
model
string
required
providerOptions
object

Per-provider options (e.g., baseURL and name for openai-compat)

Response

200 - application/json

Updated model

provider
string
required
model
string
required
providerOptions
object

Per-provider options (e.g., baseURL and name for openai-compat)