truefoundry 0.166.17 · tfy-llm-gateway 0.166.5
LLM Gateway
Chat completions on OpenAI and Azure OpenAI can now be served through the provider's Responses API, so reasoning on
gpt-5.xmodels works while your client stays on Chat Completions. This happens for responses-only models, when the request asks for reasoning withreasoning_effortorthinking, or when you send thex-tfy-openai-use-responses-apiheader, and the model's thinking comes back asthinking_blocksand is replayed on the next turn. Read moreA new Anthropic Inference Hooks endpoint lets guardrails check prompts, attachments, tool calls and tool results on Anthropic inference traffic. It fails closed, denying the request on auth or evaluation errors. Read more
Gateway operators can leave sensitive labels such as
usernameout of exported metrics by listing them in theMETRICS_LABELS_TO_DROPenvironment variable.Guardrail scanning scope can be set per request with the
x-tfy-guardrails-scopeheader:all,last, or a number for the last N turns, so multi-message agent turns are scanned without rechecking the whole conversation. Read moreF5 is now available as a guardrail integration. Read more
Guardrail hooks now work with Cursor as well as Claude Code. Read more
Complexity-based routing for virtual models is now available to all tenants without a feature flag; weight-based routing stays the default. The LLM classification strategy now requires
fallback_strategy, so configs created outside the console must set one, and{"type": "heuristic"}keeps the previous behavior. Read moreAWS Bedrock Mantle model accounts and models accept an optional
project, sent as theOpenAI-Projectheader so requests are attributed to that Bedrock project for isolation and cost tracking. Left empty, the AWS account's default project is used. Read moreVertex model accounts accept an optional base URL, and native Vertex inference uses it, so traffic can go to a private endpoint or through Private Service Connect. Read more
Breaking change: the legacy
llm_gateway_*Prometheus metrics are removed. The gateway now publishes application metrics only as the OpenTelemetryai_gateway_*series, and theENABLE_DOUBLE_WRITE_FOR_METRICSflag and its/metricspath are gone, so move any dashboards or alerts still using the old names before upgrading. Read moreThe Azure
managedauth mode is removed, along with theazureManagedClientIdfield and thex-tfy-azure-managed-client-idheader. Azure model accounts still support API key, client secret, certificate and workload identity auth.Cache-write tokens reported by OpenAI are now included in request cost.
Provider validation errors now begin with the provider's name followed by "error:", matching the wording of the gateway's other provider errors.
On the TrueFoundry-hosted gateway, AWS model accounts (Bedrock, Bedrock Mantle, SageMaker, Claude on AWS) and the Bedrock guardrail now need explicit credentials in the account, and Vertex workload identity settings are checked when the account is saved. Self-hosted gateways are unchanged.
Requests cancelled mid-stream now have their cost recorded instead of being dropped. Read more
Noma Security guardrail requests now include a session ID and the updated tool format, and take the Noma user ID from the signed-in caller, so the
User IDfield is removed from the guardrail form. Read moreErrors from the proxy, Bedrock proxy, text-to-speech and speech-to-text routes now keep the provider's original status code and message instead of becoming a generic proxy error.
The Budget V2 enforcement mode
enforce_with_low_priorityis renamed Soft Enforce, and the console text for budget modes is updated to match. Read more- Fix
Stateless Responses API turns on a virtual model now stay on the backend that created the
encrypted_content, sostore: falsefollow-ups no longer fail withinvalid_encrypted_content. Read more - Fix
Semantic caching now works on Valkey and Amazon ElastiCache for Valkey. Vector indexes are created at startup, so lookups no longer all return
X-Tfy-Cache-Status: error. Read more - Fix
Responses requests to Bedrock Mantle no longer fail with a 400 when they include Codex sub-agent
agent_messageitems; the gateway now removes those items before sending the request. - Fix
Codex 0.147 and later now works against AWS Bedrock Mantle models through the gateway without 400 errors, and Codex web search works end to end. Opening a page or finding text in a page after a web search is no longer billed as an extra search.
- Fix
Streaming responses no longer break when a provider sends SSE keepalive comments, such as xAI's
: keepalive. Before, the stream ended with a JSON parse error before any content arrived. - Fix
When a provider accepts a streamed Responses API request and then reports a failure inside the stream, the gateway now treats it as an error and falls back to the next target in your load-balancing config. Before, the client got a broken stream with a 200 status.
- Fix
Vertex AI model accounts that use Application Default Credentials now cache each access token only until Google's own expiry and only on the pod that fetched it, so requests no longer fail with expired tokens shared across pods.
- Fix
Azure Content Safety and Prompt Shields no longer fail on large inputs: text is split into chunks under Azure's limit and scanned in parallel, the worst severity and blocklist hits are kept, and temporary 429 or 503 responses are retried. Read more
- Fix
Noma Security guardrails now use the configured base URL and apply content changes correctly. Read more
MCP
MCP servers now support AWS SigV4 authentication end to end: set the auth type on the server and the gateway signs upstream MCP requests with SigV4, using either an assumed IAM role or a static access key pair. Read more
Individual-credential auth for MCP servers supports more than one placeholder in a single header value, so a server can ask each user for several values.
- Fix
OAuth tokens issued by the MCP gateway no longer fail with 401 errors when external OIDC is set up with a custom user claim key.
Agent Gateway
Remote agents can now authenticate with OAuth2 client credentials, so the gateway presents an access token from the agent's identity provider instead of only static headers or passthrough. The token endpoint's auth method is detected automatically, including
client_secret_basic.
Metrics & Traces
Triggered guardrails, including error and ignored-error outcomes, are now recorded on chat completion, agent response and MCP gateway spans, not only on model request spans. Read more
The Overall Metrics page loads faster.
The Config Metrics tab in LLM Gateway metrics is renamed Quota Metrics.
Model Metrics shows line charts instead of stacked area charts, with consistent headings across the page.
Horizontal stacked bar charts show a tooltip with each series' value, color and unit.
AI Deploy
Spark jobs accept an optional Kustomize patch on driver and executor config to set pod fields such as tolerations, node selectors, affinity, labels, annotations and environment variables. Patches are merged with platform defaults instead of replacing them. Read more
Policies can now be applied to Spark jobs.
Labels on service and job manifests are checked at deploy time and copied onto every Kubernetes resource created for them. Keys under the reserved
truefoundry.com/prefix and values that break Kubernetes label rules are rejected with a clear error.- Fix
Fixed a problem in
0.166.4where control plane requests from cluster agents could fail because the authenticated cluster was not passed to them. - Fix
Log queries that filter pods by pattern, such as Spark executor logs, return results again.
- Fix
The volume browser can read its password again on clusters with External Secrets Operator enabled, instead of failing with a 403.
- Fix
Scheduled Spark jobs now wait for the Spark application to finish and clean it up afterwards, and the
Replaceconcurrency policy removes the previous run before starting a new one.
Platform
Tenant admins can revoke every stored auth token and auth override on an MCP server in one action, and the gateway stops using the cached credentials right away. Read more
Tool approval policies can now require approval once or for a set period, such as 15 minutes, hours or days, and can cover all tools or all destructive tools in one step. Read more
MCP servers can have a readable display name, set when creating or editing the server, and shown across the MCP registry, including the MCP servers page and the tool selector, instead of the internal name. Read more
Tenant admins can revoke all personal access tokens in the organization in one action from the Settings page, including system-owned and orphaned tokens. This cannot be undone and needs a typed confirmation. Read more
A default
team-memberrole with read-only access to virtual accounts is added. New teams get it automatically, and existing teams and accounts are updated during the upgrade.The profile menu in the sidebar can show a Privacy Policy link, which opens in a new tab. It appears once the operator sets
FE_PRIVACY_POLICY_URLon the control plane.Secret fields across forms can point directly to a secret in an integrated secret store using the
tfy-secret-ref://<secret-store-fqn>::<path>format, without first adding the secret to TrueFoundry. The existing TrueFoundry secret option still works. Read moreTenant admins can create personal access tokens for users in their organization with the public
POST /personal-access-tokens/for-userAPI, optionally passingteamNameto attribute usage to a team. It returns 403 if the caller is not an admin or the user is not in that team.APIs for model accounts, MCP servers, agents, identity providers and other resources now hide sensitive
auth_datavalues in responses and activity logs. When you save edits, hidden values are restored from the stored manifest so credentials are not cleared, and secret-store references are left as they are.When regenerating a virtual account token, you can keep the old token valid for 10 minutes up to 365 days (30 days by default), or choose Immediate to revoke it right away.
URLs entered on agent, MCP server, OpenAPI and model account forms are now checked before the control plane fetches them. Only public
httpandhttpsaddresses are allowed; private, link-local, metadata and cluster-internal addresses are rejected with a 400.The deprecated
ListExternalIdentitiesandManageExternalIdentitiespermissions are removed from roles and account scopes, and existing grants are cleared during the upgrade. Permissions for external identity providers are unchanged.External SAML logins now create new users only when just-in-time (JIT) provisioning is turned on for the tenant in org settings, the same as OAuth and JWT logins.
Personal access tokens can no longer be used to create other personal access tokens.
Personal access tokens can again be used to create other personal access tokens. Operators who want to block this can set
REJECT_PAT_CREATION_FOR_PAT_OWNERStotrueon the control plane.Self-hosted operators can now turn off the control plane's
/api/proxy-serverroutes to compute-plane clusters by settingglobal.proxy.proxyServerControlPlaneToComputePlaneRoutesEnabledtofalsein the truefoundry Helm chart. The default istrue, so nothing changes unless you set it, and clusters can still connect to the control plane when it is off.New service account and virtual account tokens are issued as opaque tokens by default instead of JWTs, in the format
tfy_va_{virtual_account_name}_{team_name}.Viewing a secret value is now recorded in audit logs as a
VIEW_SECRETactivity, one entry per secret read.Budget Limiting V2 has clearer wording on budget rules and a refreshed usage progress bar.
ElevenLabs public pricing is now shown in the model cost screen.
The teams list loads faster because it no longer fetches full member and manager lists; the edit drawer loads them when opened, and the team members and managers APIs no longer apply a default
limitof 100.YAML generated in form views, including Edit as YAML, lists
typeandnamefirst instead of sorting fields alphabetically.Breaking change: the
truefoundryCLI and SDK require Python 3.10 or later from v0.17.0; Python 3.8 and 3.9 are no longer supported, so upgrade your Python runtime before installing the new CLI. Read moreDeprecation:
truefoundrybelow0.17.0andtruefoundry-sdkbelow0.4.0are deprecated, and the Repositories APIs have moved from the/api/mlprefix to/api/svc. Installtruefoundry>=0.17.0andtruefoundry-sdk>=0.4.0and update custom HTTP clients; older packages are rejected and the/api/mlprefix is removed in0.188.x. Read more- Fix
The sticky routing field now appears for every routing type that supports it in the virtual model and model account forms.
- Fix
Minor security fixes. Upgrade to
0.166.17. - Fix
Testing a model account from the edit form no longer fails because its saved credentials are hidden in the form. The stored credentials are now used for the test.
- Fix
ML repository APIs for experiments, runs, models, prompts, artifacts, data directories and agent skills are served again by the ML server.
- Fix
Budget and other gateway config changes now reach the gateway after the controller reconnects to NATS. Before, they could stay stale until the pod was restarted.
- Fix
Age columns in the console now show a dash instead of failing when a resource has a missing or invalid date.
- Fix
Operators in data access rule filters are shown in uppercase, so rules like
NOT INread correctly. - Fix
Budget alerts no longer round limits smaller than
0.0001down to zero in the Budget Limit line. - Fix
Sign-out now completes reliably, because logout waits for the server call to finish before leaving the page.