hosted-providers

Test Hosted Provider

Changed on

Ask a provider what it lists on the given credentials, storing nothing.

Backs the form's "Test connection". With name naming a stored provider, a field left out is read from it, so an edit can be tested without typing the key again; pointing the stored key at another origin still needs it. Failure comes back in the body.

post/api/v1/hosted-providers/test

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Request body

api_basestring nullable
api_keystring nullable
client_argsobject nullable
namestring nullable
providerstring required

Example request

{
  "api_key": "<your OpenAI API key>",
  "provider": "openai"
}

Response

Successful Response

discovery_unsupportedboolean
errorstring nullable
model_countinteger
okboolean required

Changes