Create LiteLLM gateway provider
Changed onConnects the organization's own LiteLLM proxy and syncs its models. mode=entra is for a proxy that accepts sign-in tokens instead of LiteLLM keys: it stores the Entra app registration (oauthTenantId, oauthClientId, write-only oauthClientSecret), one API scope (oauthScope) and the model list (modelIds), creates an "All LiteLLM models" group granted to the given audiences, reads nothing from the proxy, and each person then signs in with Microsoft through oauth/start. mode=oidc is the same for a proxy that validates the company's own OpenID Connect access tokens (JWT auth), when the organization has SSO model sign-in: it checks and stores the authorization server's issuer (oidcIssuer, whose discovery document must name exactly that issuer), the app people sign in through (oauthClientId, write-only oauthClientSecret), one or more API scopes (oidcScope) and modelIds, and each person signs in once with company SSO; 403 feature_disabled when the organization does not have it. mode=org stores one organization LiteLLM key used for everyone, creates an "All LiteLLM models" group granted to the given audiences, and keeps OpenWork spend tracking and limits on. mode=member stores a LiteLLM admin key used only to sync models and teams; each person then connects their own LiteLLM key, which picks the shared group matching that key's models. The given audiences are granted the empty "Can connect a LiteLLM key" group, and OpenWork spend tracking is off because LiteLLM budgets those keys. Keys are write-only. Requires the Manage Gateway providers permission and Gateway management; session callers must recently reauthenticate.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Request body
Response
Create LiteLLM gateway provider
Changes
- info
added the optional property
inferenceProvider/litellm/signInCheckto the response with the status
- info
- warning
added the new
oauth_oidcenum value to theinferenceProvider/credentials/items/kindresponse property for the response status - warning
added the new
oidcenum value to theinferenceProvider/litellm/keySource/anyOf[subschema #1]response property for the response status
3 more changes in this revision
- warning