hosted-providers

Create Hosted Provider

Changed on

Configure a provider with the key this deployment will serve it on.

Everything the provider lists on that key is offered at once; a provider that will not say yields a provider with no models, not an error. A provider the configuration defines may be created too, and the stored one then serves instead.

post/api/v1/hosted-providers

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
enabledboolean
namestring nullable
providerstring required
restricted_to_organization_idstring uuid nullable

Example request

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

Response

Successful Response

api_basestring nullable
api_key_last4string nullable
client_argsobject nullable
created_atstring date-time nullable
decryptableboolean
enabledboolean required
has_api_keyboolean
idstring uuid nullable
namestring required
providerstring required
restricted_to_organization_idstring uuid nullable
shadows_configboolean
source'database' | 'config'
updated_atstring date-time nullable

Changes

    • info

      added the new optional request property

    • info

      the request property became optional

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • info

      the request property's minLength was decreased from 1 to 0

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      response property created_at list-of-types was widened by adding types null to media type application/json of response 201

    • breaking

      response property id list-of-types was widened by adding types null to media type application/json of response 201

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status