Update an AI Gateway Model Provider
Changed onUpdates the configuration of an existing AI Gateway model provider.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
Contains a unique identifier used for this resource.
The unique ID of the AI Gateway.
Contains a unique identifier used for this resource.
The unique ID of the AI Gateway model provider.
Request body
Configuration for an upstream model provider.
Config for Azure model provider.
Configuration for an upstream model provider.
Config for AWS model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Config for GCP model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream llama2 model provider.
Deprecated: the llama2 provider is deprecated and will be removed in 3.0. Migrate each target by its format value: ollama maps to the ollama provider, openai maps to the openai provider with upstream_url set on the target, or to the vllm provider; raw has no replacement provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Configuration for an upstream model provider.
Config for Sagemaker model provider.
Configuration for an upstream model provider.
Example request
{
"display_name": "Azure AI SE",
"name": "azure-ai-se",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"datastores": [
{
"name": "vault-konnect-prod"
}
],
"token_vault": {
"provider": "my-upstream-provider",
"subject_token_type": "access_token",
"credential": {
"inbound": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
}
},
"cache": {
"redis": {
"host": "redis.internal",
"port": 6379
}
}
}
}Response
Model provider updated successfully.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"display_name": "Azure AI SE",
"name": "azure-ai-se",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"datastores": [
{
"name": "vault-konnect-prod"
}
],
"token_vault": {
"provider": "my-upstream-provider",
"subject_token_type": "access_token",
"credential": {
"inbound": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
}
},
"cache": {
"redis": {
"host": "redis.internal",
"port": 6379
}
}
}
}Changes
- info
request property
oneOf[#/components/schemas/AIGatewayModelProviderLlama2]deprecated - info
response property
oneOf[AIGatewayModelProviderLlama2]/deprecated
- info
- breaking
the
oneOf[#/components/schemas/AIGatewayModelProviderAnthropic]/config/auth/headers/items/namerequest property's minLength was increased from0to1
210 more changes in this revision
- breaking