Inference Providers

Update custom OpenAI-compatible gateway provider

Changed on

Changes a custom provider's name, API address, API key or models and returns management details. A new address on another host needs apiKey in the same request, so a saved key is never sent to a host it was not saved for. models replaces the model list: removed models leave every group, new ones join groups that held every model, and access grants are kept. The UI tests address, key and model id changes first; this route does not call the provider. The key is write-only. Requires the Manage Gateway providers permission and enabled Gateway management; session callers must recently reauthenticate.

patch/v1/inference-providers/{inferenceProviderId}/custom

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

inferenceProviderId, string typeid required

Den TypeID with 'ipr_' prefix and a 26-character base32 suffix.

Request body

object required
name, string
baseUrl, string
apiKey, string
models, object[]
discoveryStatus, 'detailed' | 'basic' | 'unavailable'
listedModelIds, string[]

Response

Update custom OpenAI-compatible gateway provider

object required
inferenceProvider, GatewayProviderDetails required

Changes

    • info

      added the optional property inferenceProvider/litellm/signInCheck to the response with the status

    • warning

      added the new oauth_oidc enum value to the inferenceProvider/credentials/items/kind response property for the response status

    • warning

      added the new oidc enum value to the inferenceProvider/litellm/keySource/anyOf[subschema #1] response property for the response status

    2 more changes in this revision