Skip to content

Create Config

POST
/api/ai-configs/
curl --request POST \
--url http://localhost:8080/api/ai-configs/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "provider": "example", "api_key": "", "model": "example", "base_url": "example", "label": "example", "is_default": false }'
Media typeapplication/json
AIConfigCreate
object
provider
required
Provider
string
api_key
Any of:
string
model
required
Model
string
base_url
Any of:
string
label
Any of:
string
is_default
Is Default
boolean

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}