Upsert Provider
POST
/save-model-provider
Creates or updates a model provider
Request
Headers
An API Key is required to access this endpoint.
Name | Value |
---|---|
x-api-key |
|
Body
Name | Type | Description |
---|---|---|
| string | Unique ID for the model provider. |
| Config for the model provider. | |
| enum | Supported enums:
|
| boolean | Supported on VPC deploy only. |
Config
The parameters in the config will vary based on the model provider type.
BEDROCK
Name | Type | Description |
---|---|---|
| string | Your AWS Bedrock access key ID. |
| string | Your AWS Bedrock secret access key. |
| string | Your AWS Bedrock region. |
OPENAI
Name | Type | Description |
---|---|---|
| string | Your OpenAI API key. |
Example
Response
The API returns the response in JSON format.
Each response includes a success
boolean and the modelProvider
object.
Example
Last updated