Upsert Provider

POST /save-model-provider

Creates or updates a model provider

Request

Headers

An API Key is required to access this endpoint.

Body

Config

The parameters in the config will vary based on the model provider type.

BEDROCK

OPENAI

Example

{
  "config": {
    "awsAccessKeyId": "**********",
    "awsSecretAccessKey": "**********",
    "awsRegion": "**********"
  },
  "type": "BEDROCK"
}

Response

The API returns the response in JSON format.

Each response includes a success boolean and the modelProvider object.

Example

{
  "modelProvider": {
    "id": "9610b859-fe94-4c3c-a826-a4d484f039a6",
    "foundationModels": [{ "id": "b35d4304-8897-4102-b62d-575c59e36544", "type": "anthropic.claude-3-haiku-20240307-v1:0" }],
    "type": "BEDROCK"
  },
  "success": true
}

Last updated