Skip to content

TenantModelKeyUpdateRequest

Replaces a model key’s settings. The provider can’t change (delete the key and add another), and the stored key is kept unless apiKey is given.

Kind: an object, used in requests.

FieldTypeRequiredDescription
labelstring | nullA name for the key, 1–100 characters.
baseUrlstring | nullThe endpoint to call instead of the provider’s default; null or absent clears it.
modelNameOverridesmap<string, string> | nullMap from a model’s id at the provider to the name the endpoint serves it under; null or absent clears it.
priorityintegerFailover order among the tenant’s keys for this provider, lower first (0–1000).
isDisabledbooleanWhether the key is disabled. A disabled key is kept but never used.
apiKeystring | nullA replacement key. Null or absent keeps the stored key.
{
"label": "...",
"baseUrl": "...",
"modelNameOverrides": {
"key": "..."
},
"priority": 0,
"isDisabled": false,
"apiKey": "..."
}