Create TrueFoundry gateway provider
Changed onConnects the organization's TrueFoundry AI Gateway with one TrueFoundry admin key (a virtual account token with the tenant admin role) and syncs its chat models. The given audiences are granted the empty "Gets a TrueFoundry key" group. For each allowed person, OpenWork finds their TrueFoundry user by OpenWork email (or, with createMissingUsers, adds them), creates one personal access token owned by that user, stores it as the person's own credential and grants the shared group matching the models that token can reach. TrueFoundry budgets and logs those tokens; OpenWork prices requests and applies usage limits only with trackUsageCosts on, for models with public pricing. 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
The address people open TrueFoundry at, e.g. https://acme.truefoundry.cloud.
The TrueFoundry AI Gateway base URL when it is not <controlPlaneUrl>/api/llm.
A TrueFoundry virtual account token with the tenant admin role. Write-only; never a personal access token.
Create missing users in TrueFoundry: when an allowed person's OpenWork email is not a TrueFoundry user, add them to TrueFoundry (default member role, no invite email) and create their token. They get only TrueFoundry's default models until a TrueFoundry admin configures their teams and access.
Track usage costs in OpenWork: where a TrueFoundry model has public pricing (from its matched models.dev model), price each person's requests at it in OpenWork, so they count towards the person's usage limits and usage tracking. Off by default: TrueFoundry alone budgets these requests.
Response
Create TrueFoundry 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
2 more changes in this revision
- warning