Repository navigation
Upgrade the AI Gateway to LiteLLM 1.105.6 and refuse decision models outside the Decisions API - #344
Merged
Merged
Conversation
The price table bundled with LiteLLM 1.105.1 marks Azure's gpt-6-astra and gpt-6.1-sol as taking reasoning_effort none, which Azure refuses. The guard and LiteLLM's own parameter check go by that table, so with priceTable: bundled, or when downloading the current table fails at pod start, a request with reasoning_effort none to gpt-6-astra got Azure's 400 instead of losing the parameter. 1.105.6, a patch release of the same line, ships the corrected table and also checks the Responses API's reasoning.effort against it. requirements.txt is regenerated from the upstream v1.105.6 image, minus litellm-enterprise, read from the image's installed package metadata without running it; the Python 3.12 backports stay. The set moves aiohttp, boto3, botocore, s3transfer, grpcio and the OpenTelemetry packages to the upstream image's versions, adds two OpenTelemetry exporter packages, and drops Deprecated, which the upstream image no longer installs. The advisories published in late October for ddtrace, dnspython and filelock, which main's set has too, are left for a separate change. The README notes that the price table also decides which parameters a model takes, and which LiteLLM version the measurements were made on.
…ry key A decision model, such as Microsoft-Decision-1 configured with model_info.mode evaluation, answers only LiteLLM's Decisions API (/v1/systemone and /v1/decisions). Asked for through chat completions, the provider answered 404 and LiteLLM cooled the deployment down, so for about four seconds every auto router classifying with it used its default classifier, for every caller: measured on a Gateway without the operator, with a key created in the console. The guard refused such requests only for the keys the CetiRun operator issues. The guard now refuses a request for a decision model through any other API (chat completions, Responses, Anthropic Messages, embeddings) from every caller, with a 400 that points to the Decisions API, before any deployment is called: no retry, fallback or cooldown. It reads the API from the call type of the request's logging object, which the proxy sets from the route that received the request. The Decisions API and a router's own classifier calls reach the model as before, and keys the operator issues keep their 403.
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two fixes found in an end-to-end test of the AI Gateway deployed on its own (without the CetiRun operator). Both also affect the CetiRun platform, in narrower cases.
1. Upgrade to LiteLLM 1.105.6 (stale capability data in the bundled price table). The price table bundled with LiteLLM 1.105.1 marks Azure's
gpt-6-astraandgpt-6.1-solas takingreasoning_effort: none. Azure refuses it: measured directly against Azure OpenAI,gpt-6-astra(2026-09-03) answers 400 fornoneon Chat Completions and on the Responses API, whilegpt-6-sol,gpt-5.6-terraandgpt-5.4-nanotake it. The guard removesnonefor Azure models the table marks as refusing it, which is how Hermes' side tasks keep working, and LiteLLM's own parameter check reads the same table. So withpriceTable: bundled, or with the defaultremotewhen downloading the current table fails at pod start, a request withreasoning_effort: nonetogpt-6-astragot Azure's 400. LiteLLM corrected the data upstream (BerriAI/litellm#43935), and 1.105.6, a patch release of the same 1.105 line, ships it and also checks the Responses API'sreasoning.effortagainst the table.requirements.txtis regenerated as its header says: the package set of the upstreamv1.105.6image, minuslitellm-enterprise, with the two Python 3.12 backports kept. The set was read from the image's installed package metadata (docker cpof site-packages; the image was not run). Besideslitellm, it moves aiohttp, boto3, botocore, s3transfer, grpcio and the OpenTelemetry packages to the upstream image's versions, adds two OpenTelemetry exporter packages, and drops Deprecated, which the upstream image no longer installs.litellm-proxy-extrasstays at 0.4.105, so there is no new database migration.2. Decision models refused through any API but the Decisions API, for every key. A decision model, such as Microsoft-Decision-1 configured with
model_info.mode: evaluation, answers only LiteLLM's Decisions API (/v1/systemone,/v1/decisions). Measured on the standalone Gateway: a chat request for it from a key created in the console got the provider's 404, LiteLLM cooled the deployment down, and for about four seconds every auto router classifying with it (classifier_type: jev) used its default classifier, for every caller. The guard already refused this for the keys the operator issues (403); the master key and console keys were not covered, and LiteLLM 1.105.6 and main have no such check. The guard now refuses a request for a decision model through any other API (chat completions, Responses, Anthropic Messages, embeddings, text completions) from every caller with a 400, "The model is a decision model: call it through /v1/systemone or /v1/decisions.", before any deployment is called: no retry, fallback or cooldown. It reads the API from the call type of the request's logging object, which the proxy sets from the route that received the request. The Decisions API and a router's own classifier calls are unchanged; operator keys keep their 403.The README describes the guard's new rule, notes that the price table also decides which parameters a model takes (so the image's copy can be wrong where the downloaded one has been corrected), and says which LiteLLM version its measurements were made on.
Related issue
Found in a standalone AI Gateway end-to-end test; no separate issue.
Validation
Compatibility and operational impact
litellm-proxy-extrasunchanged, so no database migration. Gateway pods and Copilot proxy pods roll once with the new image; on the test cluster the Agents themselves were not restarted.reasoning.effortthe price table marks as unsupported with its own 400 (the chart sets nodrop_params); before, the request went to the provider, which refused it.Checklist