Repository navigation
fix(tool_choice): accept OpenAI allowed_tools on chat completions and flatten it for the Responses bridge - #49043
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merging this PR will not alter performance1 warning
Comparing Footnotes |
|
bugbot run |
[Medium impact] The latest changes appear safe to merge and fix the previously reported Azure restriction loss SummaryThis PR accepts chat-style The latest change prevents older Azure API versions from silently dropping the restriction. Added tests cover rejection on older versions, forwarding on current versions, and unchanged behavior for ordinary tool choices
Reviews (4) · Last reviewed commit: "fix(azure): keep an allowed_tools tool_c..." · Reviewed by Greptile |
|
@greptileai re review |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 882330f. Configure here.
… flatten it for the Responses bridge Chat completions now accepts the nested allowed_tools tool_choice, forwards it on openai, azure and litellm_proxy, returns a 400 on providers that would silently drop the restriction, and rewrites it to the flat Responses layout when the request is bridged to /v1/responses
…ave conflicting selectors untranslated A nested function or custom selector now keeps its extra keys when flattened for the Responses bridge, and a selector that has both a flat name and a nested object, or keys that collide when lifted, makes the bridge send the original restriction untouched instead of guessing which name wins
882330f to
48d4b99
Compare
|
bugbot run |
|
@greptileai re review |
|
Skipping Bugbot: temporarily unable to process this request. Please retry in a few minutes. |
…pi versions before 2023-12-01 drop_params used to drop the whole tool_choice on those versions while keeping the full tools list, so an allowed_tools restriction turned into no restriction. That combination is now a 400, while other tool_choice values keep today's drop
bc766f6 to
257ad68
Compare
|
bugbot run |
|
@greptileai re review |
|
Skipping Bugbot: temporarily unable to process this request. Please retry in a few minutes. |
…423) `bind_tools` can now force a bound built-in tool named in `tool_choice`, as a string or a dict. litellm refuses a choice naming one, so only the named tools go, with `"required"`, which every litellm sends: llm.bind_tools([get_weather, {"type": "web_search"}], tool_choice="web_search") /v1/responses gets tools [{"type": "web_search"}] and tool_choice "required" ### What changed - A string naming a bound built-in tool's type, or a dict matching one (`{"type": "web_search"}`, `{"type": "mcp", "server_label": "docs"}`), sends only the tools it names, whole, with `tool_choice="required"`. `"mcp"` with several servers bound sends them all, and the model must call one. - The other bound tools sit out that call, so the model cannot also call `get_weather` in that reply. - A tool with a name, function or custom, is still chosen by that name, and a name outranks a built-in tool's type. Any other choice keeps every tool. ### Why this way litellm's check refuses every built-in tool choice before sending, on every release and on main. Measured live with `curl` and a weather question, on `gpt-4o-mini` unless noted: - `"required"` with `web_search` alone ran one search and answered, in two runs, and once on `gpt-5-mini`. - An `allowed_tools` choice, which unreleased BerriAI/litellm#49043 accepts, repeated the search when another tool was bound: 20 searches uncapped, joined into one reply with no separators. - A direct `{"type": "web_search"}` also ran one search, but litellm refuses it, so it would need an upstream change first. - `extra_body={"tool_choice": ...}` reaches the wire today, but a per-call `extra_body` replaces a configured one, dropping `store=False`. This is the best the connector can do until litellm accepts the direct choice: #424 tracks switching to it once BerriAI/litellm#50566 is fixed. A forced built-in tool beside manual thinking on Claude is downgraded to `"auto"`, as any `"required"` choice is. ### How it was tested Tests were written first; at the test commit 16 cases fail. Bind-time cases cover the string and dict forms, a configured tool keeping its settings, MCP servers by type and by label, a function tool named like a built-in one, a custom tool, and choices matching no bound tool, which keep every tool. A wire case over both classes and all four entry points checks what reaches `/v1/responses`, with nothing stubbed. None of 15 mutations of the change survives. 1204 passed, 20 skipped at the lock, the floors, litellm 1.106.7 and 1.108.0, and on Python 3.11 to 3.14. On litellm main the suite fails only the two tests whose expectations 1.109 changes, as the base commit does. `make check` passes. Live through `ChatLiteLLM` on the locked litellm, with `get_weather` and `web_search` bound and `tool_choice="web_search"`: the request carried only `web_search` with `"required"`, and the reply answered from a web search, citing its source. Several MCP servers were checked on the wire only. ### What breaks Nothing that worked. `tool_choice="web_search"` with the tool bound raised `ValueError` at bind and now forces it. `{"type": "web_search"}` with it bound raised litellm's `BadRequestError` at call and now forces it. Fixes #306
* fix(anthropic): stop logging rejected encrypted reasoning
The retry warning keeps provider, model, status, and error code, and leaves the ciphertext out.
Backport of the third #49076 commit to lts/1.108.x. Cherry-picked from c62c92d2ad0.
Co-authored-by: DDT <141296842+Hugo-DDT@users.noreply.github.com>
* fix(ollama): keep replayed tool arguments out of a rejected replay's error chain
Backport of #49183 to lts/1.108.x.
Cherry-picked from 0f7003a2aeb84651230b0fcbcb8403e4ed957af8 (fix-ollama-chat-stream-tool-call-index).
* fix(anthropic): start a new streamed block for each reasoning item
The backported Responses bridge tags each reasoning item's thinking block with its output index, but this line's Anthropic stream wrapper only opened a new block when the block type changed, so a second reasoning item of the same type was dropped. This ports the index check from #46863, which main already has.
* fix(anthropic): keep each streamed reasoning summary with its own item
A summary delta carries no item index, so the next item's summary joined the block that already got its signature. A thinking chunk after an indexed signature now opens a new block.
* fix(ollama): keep the repair warning's argument preview unless message logging is off
Backport of #49183 to lts/1.108.x.
Cherry-picked from 5ef6d62cca7e0a9a9e6db2609ca435e9b957de5e (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. The repair warning lives in common_utils.py here.
* fix(anthropic): stream reasoning signatures only to Messages clients, keep xAI web search reasoning, and retry only when the sent request carried it
* fix(anthropic): send openai/ Messages turns again once without encrypted reasoning a backend rejects
The openai/ Responses path on /v1/messages had no retry, so a chatgpt/ block left in history answered 400 on every later openai/ turn. That path now sends the turn once more without encrypted reasoning, the same way the chat bridge does. The retry matches only invalid_encrypted_content or a "could not be verified" message naming the content, so the exception mapper's own hint no longer triggers it. The xAI web search keep path is backed out, since xAI sends no encrypted reasoning over the bridge.
Backport of 15e60170124 from #49076 to lts/1.108.x, ported by hand onto the pass_through modules.
Co-authored-by: DDT <141296842+Hugo-DDT@users.noreply.github.com>
* test(ollama): cover short and boundary-length repair warning previews
Backport of #49183 to lts/1.108.x.
Cherry-picked from 1f71ed377f459792b383bcd2bd1e5e4f4b2137ae (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. The repair warning tests live in test_litellm_core_utils_prompt_templates_common_utils.py here.
* test(utils): drop a duplicate schema key the line already had on lts/1.108.x
The picks touch tests/unit/test_utils.py, so ruff now checks it, and
the line's model info schema lists supports_bedrock_native_structured_output
twice with the same value. The second copy goes
* fix(tool_choice): accept OpenAI allowed_tools on chat completions and flatten it for the Responses bridge (#49043)
Backport of #49043 to lts/1.108.x.
Cherry-picked from 28c80048ed47d53befd819f22b5ac1bb112ec3fd (main). Import conflicts in the Responses bridge and the Azure chat config resolved to the line's imports plus the helper import.
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(tool_choice): accept the Responses API's flat allowed_tools layout on chat completions
Backport of #50467 to lts/1.108.x.
Cherry-picked from e56c060363c741b24579ecc01279c992d2d339d1 (litellm_allowed_tools_flat_tool_choice).
* fix(tool_choice): drop an allowed_tools choice under drop_params and refuse conflicting flat entries
Backport of #50467 to lts/1.108.x.
Cherry-picked from 361aecae72f2a9153a12b3998c90515f679896fd (litellm_allowed_tools_flat_tool_choice). Azure chat config import conflict resolved to the line's imports.
* fix(tool-choice): keep the 400 when LiteLLM runs the tools, report auto after a drop
Backport of #50467 to lts/1.108.x.
Cherry-picked from 5f8f54a6ca0dbd5bfc443b55e4c49e34b6b8176e (litellm_allowed_tools_flat_tool_choice). Conflicts resolved by applying this commit's hunks to the line's simpler Responses bridge handler and responses() bridge branch, and appending its new tests to the line's test files.
* fix(tool-choice): refuse an excluded tool right before LiteLLM runs it
Backport of #50467 to lts/1.108.x.
Cherry-picked from e25a82c3f54ff54178b5ebb98fb1da6a753e1fe2 (litellm_allowed_tools_flat_tool_choice). Conflicts resolved by applying this commit's hunks to the line's code. Test hunks that need main-only test helpers are carried by the line's test adaptation commit.
* fix(tool-choice): drop the choice under drop_params and hand an excluded MCP call back unrun
Backport of #50467 to lts/1.108.x.
Cherry-picked from be0bb7a57e55712476b903a8244802024416bd96 (litellm_allowed_tools_flat_tool_choice). Conflicts resolved by applying this commit's hunks to the line's MCP handlers and responses(). Test hunks that need main-only test helpers are carried by the line's test adaptation commit.
* fix(tool-choice): refuse an allowed_tools entry whose name is not a string
Backport of #50467 to lts/1.108.x.
Cherry-picked from 2ac020c070c7fdd47ec912f5ae334923ec85356c (litellm_allowed_tools_flat_tool_choice). Test hunks that need main-only test helpers are carried by the line's test adaptation commit.
* fix(tool-choice): honor server-level and null-name mcp entries and stop hooks running excluded calls
Backport of #50467 to lts/1.108.x.
Cherry-picked from 939034d8a4bc3a9f7d337471ca97738df933e300 (litellm_allowed_tools_flat_tool_choice). Resolved: tool_precheck.py is not on the line, so server_labels_serving lives in litellm_proxy_mcp_handler.py. The line has no refused-turn path, so a hook turn holding a call the choice excludes answers 400 through refuse_tool_calls_the_choice_excludes. Test hunks that need main-only fixtures move to the line test commit.
* fix(tool-choice): match named mcp entries by server label and let built-in entries allow their interception call
Backport of #50467 to lts/1.108.x.
Cherry-picked from 4755727276c84a50107c3d5aef9d398e7d0d4603 (litellm_allowed_tools_flat_tool_choice). Resolved: kept only this pick's helper and import where the line lacks main's sandbox result types and core_helpers import. Test hunks that need main-only fixtures move to the line test commit.
* fix(tool-choice): leave a malformed allowed_tools choice unrewritten in the interception hooks
Backport of #50467 to lts/1.108.x.
Cherry-picked from cd076fb13ab (litellm_allowed_tools_flat_tool_choice).
* fix(tool-choice): resolve mcp entries like the gateway and keep the choice on every hook path
Backport of #50467 to lts/1.108.x.
Cherry-picked from 6be4f0b9ead (litellm_allowed_tools_flat_tool_choice). Resolved: the line has no tool_precheck.py or agentic_loop_refusal.py, so the MCP label resolver lives in litellm_proxy_mcp_handler.py and mirrors the line's own toolset resolution (admin view and granted toolsets, no access-group fallback), and the line's toolset listing now calls the same resolver. A chat hook turn holding a call the choice excludes answers 400 through the line's AgenticLoopSafetyError path. Main-only code in the conflicted hunks (internal_sub_call, first-round billing, Claude Code web search prefix) is left out. Test hunks that need main-only fixtures move to the line test commit.
* fix(allowed_tools): stop web search and code interpreter follow-ups forcing another call
Backport of #50467 to lts/1.108.x.
Cherry-picked from 478fb95d6b1 (litellm_allowed_tools_flat_tool_choice). Resolved: test imports merged with the line's, and the tests that need main's web search fixtures move to the line test commit.
* fix(openai): refuse an openai chat hook call the allowed_tools choice excludes
The line's OpenAI chat handler runs its own agentic hook loop instead of
the shared one main uses, so the picked exclusion check never reached
it. This checks the response before a hook runs, like the line's HTTP
handler already does after the picks, and answers 400 when the model
called a tool the choice leaves out. Chat calls with an allowed_tools
choice answer 400 on the line today, so no call that succeeds changes.
* test(tool-choice): adapt the picked tests to lts/1.108.x
The picked test files reach a few names the line does not have, so this
ports them to the line's code without bringing those features over.
The MCP response tests stub the line's own proxy_server imports, the
web search tests get main's perplexity_search fixture, and the chat and
Responses hook tests expect what the line does. An excluded chat hook
call answers 400, and native /v1/responses hooks run as before since
the line cannot end a Responses turn early
* fix(allowed_tools): stop the Responses web search follow-up forcing another call
Backport of #50467 to lts/1.108.x.
Cherry-picked from 08eb785ee22 (litellm_allowed_tools_flat_tool_choice). Resolved: adds main's _WEB_SEARCH_FUNCTION_CALL test constant, which came with #38885 and is not on the line, and wraps one long test line.
* fix(responses): send a malformed allowed_tools choice as given on lts/1.108.x
On the line, native /v1/responses with gateway MCP tools passes any
tool_choice through to the provider, with or without drop_params, and
providers that accept a malformed allowed_tools choice answer 200. The
picks answer 400 for it without drop_params and drop it under
drop_params, so this keeps the line's behavior. The choice reaches the
provider unchanged and the gateway enforces nothing for it, while a
choice that parses still gets the picked rewrite and enforcement
* fix(tool-choice): keep an allowed_tools type with a function as a named tool choice on lts/1.108.x
On the line, a tool_choice of type allowed_tools that also carries a
function passes validation and reaches the provider as a named function
choice, so Anthropic and other providers that read function.name force
that tool and answer 200. The picks treat it as a malformed allowed_tools
choice, which answers 400 without drop_params and drops the choice with
it. This keeps the line's behavior, so such a choice is not read as an
allowed_tools choice anywhere and goes on as the named choice it was
* style(tool-choice): format called_tool_names on lts/1.108.x
* fix(tool-choice): keep the caller's allowed_tools choice on agentic follow-up calls on lts/1.108.x
On main the agentic follow-up keeps the caller's allowed_tools choice
under a reserved kwarg that main lists among its loop control keys.
That list does not exist on the line, so the line's acompletion dropped
the key and a follow-up call could run a hook call the caller's choice
leaves out. acompletion now passes the key on when the caller sent it or
sent an allowed_tools choice, and leaves every other call as it was
* fix(types): widen untyped request dicts for the allowed_tools refusal on lts/1.108.x
The line types the hook loop's kwargs and optional_params as plain
dicts, so passing them to the picked refusal helpers added unknown
argument errors that main does not have. They are now cast to
Mapping[str, object] at the call sites, and the loop settings reader
takes a Mapping
The new cast import in the agentic loop would grow the banned-API
count, so the duplicate function-level cast import in
llm_http_handler.py goes, since the module already imports cast
* fix(anthropic): keep every non-streamed reasoning item for Messages clients and read a deployment's reasoning_summary in the keep check
Backport of #49076 to lts/1.108.x.
Ported from cadfe1d1798 (cursor/chatgpt-encrypted-reasoning-messages-1723) onto the line's pass_through/adapters layout.
* fix(anthropic): keep every non-streamed reasoning item for Messages clients on the line's bridge
This line's transform_request rewrites the logging call_type to responses, so the non-streamed reply read the Messages-client check after the rewrite and kept only the last reasoning item. The bridge handler now reads it before the request transform and passes it to transform_response, as the streamed path already does.
* fix(anthropic): log only the outcome of a turn sent again, and keep every reasoning item in Messages logs on the line
A /v1/messages turn whose replayed encrypted block the backend rejects is sent
once more without it. The rejected first attempt no longer fires failure
callbacks or releases its parallel slot and budget reservation, so only the
turn sent again is logged and counted.
Success logs for a Messages client now keep every reasoning item of a
non-streamed turn, matching the reply the client got.
* test(anthropic): type the parameters of the failure-recording test loggers
Backport of 3d53f0047d1 (#49076) to lts/1.108.x.
* test(anthropic): type the success logger and use a fixed token expiry in the bridge tests
* fix(anthropic): skip the SDK num_retries retry for an attempt that is sent again
* fix(anthropic): stop SDK retries from resending a rejected block or clearing the global num_retries
A transient 429 or 500 on a /v1/messages turn that carries a replayed encrypted
block was retried by an SDK call's num_retries loop, which sent the block again
until every retry was rejected. On async calls the loop then raised the first
transient error, so the turn failed instead of being sent again without the
block. The retry loop now stops at that rejection and passes it on, so the turn
is sent again once without encrypted blocks.
A rejected first try on a sync call also cleared the process-wide
litellm.num_retries, so later calls in the process were no longer retried. That
setting now stays as configured.
* fix(anthropic): stop a cancelled SDK retry from starting another call
The resent-failure retry predicate returned true for BaseException
subclasses such as asyncio.CancelledError, so a cancelled
acompletion_with_retries or aresponses_with_retries call could start
another provider call. Retry only Exception subclasses again, as
tenacity's default did, while still skipping a resent failure.
* test(anthropic): type the retry helper parameter in the cancellation test
* test(integration): backport main's Gateway.rows, Scenario.model name and MCP ack fix to lts/1.108.x
Backports test-only changes from main so the line's integration signal stops reporting stale helpers as failures.
Gateway.database_url and Gateway.rows come from #47213 (fc27dfdc7d), and the name keyword on Scenario.model comes from #48917 (ebf84f8649). Only those hunks of tests/integration/_support/client.py are taken. The rest of #47213 gives each owned proxy its own database and Redis, which none of the line's tests need, and the workers field from a later main change is left out.
The MCP progress and cancellation test wraps its upstream in _acknowledge_notifications_after_dispatch, from #49967 (b5952f243a). The helper is already on the line.
* fix(bedrock)!: backport #47429 deployment guardrailConfig on /bedrock pass-through routes to lts/1.108.x
The router-model pass-through dropped a Bedrock deployment's guardrailConfig, so converse, converse-stream, invoke and invoke-with-response-stream reached Bedrock unguarded while /v1/chat/completions on the same deployment was blocked. The signer now sends it the way Bedrock reads it, in the body for Converse and as the X-Amzn-Bedrock-Guardrail* headers for Invoke, replacing any guardrail the caller sent
Adapted to the line, which does not have #47040. The guardrail headers are merged through merge_bedrock_invoke_headers without the request metadata header, and the unit tests drop the request metadata assertions and the identity argument that only #47040 needs
* refactor(bedrock): drop the unused converse URL helper and cover a trailing-slash converse pass-through
* test(e2e): repin the Together reasoning replay backend to MiniMax-M3.1-Flash
MiniMax-M3 reached its 2026-11-06 deprecation date in the cost map, which names MiniMax-M3.1-Flash as its successor
(cherry picked from commit 90f7ab6fe6837152b21617c8cb7dc73a541c42e9)
* fix(sdk): backport #45961 to lts/1.108.x
completion() loaded the MCP gateway handler for any request with tools,
and the handler pulls in mcp 2.x only code, so tool calls failed on
installs with mcp 1.x (google-adk 1.36.1) or no mcp at all
Cherry-picked from 783cf06f31. Only conflict was import context in
litellm/responses/main.py
(cherry picked from commit 783cf06f31e55e8f7ab84c2d7c708b0d90e68001)
* fix(router): serve a team's wildcard deployment before a proxy-wide wildcard (#48490)
Backport of #48490 to lts/1.108.x.
Cherry-picked from 76d001a7c06d5dbf93f9191b247db0ef981b6c66 (main). The line has no wildcard_routed_models helper and no get_models_by_pattern, so only wildcard_route_deployments is changed.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(videos)!: keep model_id in proxy video ids so per-model keys resolve on status/content (#44614)
Backport of #44614 to lts/1.108.x.
Cherry-picked from ba61ecdf570c91a2409560138170ff9ab1fe7ad7 (main). The line has no splits_stream_timeout on _update_kwargs_with_deployment, so only the _video_call_pin wrapping is added around deployment selection. The line has no litellm/llms/base_llm/videos/async_task_utils.py, so its _id_safe_name dedupe is applied to the dashscope video transformation that holds the same helper on this line.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* chore: bump litellm 1.108.3 -> 1.108.4
litellm 1.108.3 already shipped, so the next release off this line is 1.108.4
* fix(proxy): check s3 URIs inside encoded file ids and on queued chat completions
The s3 media check now decodes model-embedded and unified file ids, since
completion() turns them back into the raw s3 URI they carry. The
/queue/chat/completions endpoint skips common request processing, so it now
runs the same check. The media walk goes level by level instead of
recursing, which the recursive_detector code-quality step requires.
(cherry picked from commit 5b45c632c57fd46b9dda537b694edcda2e0f41d3)
* fix(anthropic-messages): apply additional_drop_params before the unsupported param checks
* fix(proxy): let a key send managed file ids it may read and refuse s3 sources hidden in model_file_id_mapping
The s3 media gate refused every LiteLLM managed file id whose upload sits under the
managed prefix, even when the key's own user or team created it. It now asks the
managed files hook which unified ids the key may read and skips only the objects
those ids embed. A forged or unowned id, or a proxy without the hook, still gets a 403.
The gate also reads the provider file ids in a client-supplied model_file_id_mapping,
so an alias can no longer point a non-admin request at an unlisted or managed object.
Markdown documents (.md, .markdown) now map to Bedrock's md document format, so an
s3 Markdown source without an explicit format no longer fails with an unknown media type.
On lts/1.108.x the gate still walks the body before it reads the key role, so callers that pass a
specced UserAPIKeyAuth mock keep working, and it reads self.data and general_settings directly
since the line has no raw_request_fields.
(cherry picked from commit 37f085c966dd83e84b646eb3acbdfbaef7b6b0db)
* fix(mcp): refuse a hook call the allowed_tools choice excludes on every surface
The line has no terminal-response path outside Anthropic Messages, so the check skipped /v1/responses and streamed hook loops and the excluded call ran. It now raises AgenticLoopToolChoiceError there too
* fix(mcp): scope each MCP entry to its own allowed_tools and keep the allowlist on follow-ups
A label now covers only the tools its own allowed_tools lists, so a second label on the same server no longer widens it. Responses MCP follow-ups, streamed or not, keep an allowed_tools choice in auto mode instead of dropping it. The new Responses tests fake only the upstream MCP listing, so LiteLLM's own discovery runs
* fix(agentic): answer a 400 when an allowed_tools choice excludes a hook call on /v1/responses
The line cannot end a Responses turn early, so the refusal was re-raised as a
plain error and reached clients as a retryable 500. It now answers the same 400
the chat path gives for an excluded call. The stream path still raises the
safety error its iterator catches.
* fix(mcp): match an entry's allowed_tools against the tool name the gateway lists
A server with a display name override lists the display name, and the listing
filter matches allowed_tools against it, but the label scope only checked the
original name, so no spelling worked. The scope now also accepts the listed
name and its unprefixed part, like the listing filter. Tests now cover the
whole gateway and toolset entries and a display-named tool.
* fix(proxy): keep inline tool-result video dropped and let an admitted client AWS identity skip the s3 bucket list
A tool result forwards a video to Bedrock only when it is an s3Location. An inline
base64 video is dropped with a warning, as it was before this change, since Converse
rejects video in a toolResult block
A non-admin key that sends an AWS identity its deployment admits through
configurable_clientside_auth_params (aws_role_name, aws_web_identity_token or
aws_profile_name) skips the bucket list, because Bedrock then reads the object with
that identity. The managed-prefix 403 still applies
The check now skips the body walk when no string starts with s3:// and no file_id or
model_file_id_mapping key is present, which keeps large image bodies cheap
Adapted for lts/1.108.x. The per-frame check on WS /v1/responses is not ported,
because this line has no Responses WebSocket frame guard to hook it into. The gate
keeps this line's admits_s3_bucket allowlist and its order of walking the body
before the admin role check
(cherry picked from commit 6662cb34d768bd68a7dc34ea27c363a1bd7f6578)
* feat(decisions): support Vercel AI Gateway decision models
Backport of #50642 to lts/1.108.x.
Cherry-picked from bdd017e908e2380de83b059b08c9363431227666 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: the line registers decisions configs in its own if-chain and lazy-import tables, and its OpenAI decisions config has no resolve_credential hook, so only resolve_api_key is overridden.
* test(decisions): cover Vercel AI Gateway dispatch through the proxy
Backport of #50642 to lts/1.108.x.
Cherry-picked from dd1057b018f8bce2408627a15ea7e7a65c2e33b1 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: the new test is appended to the line's own copy of the test file, whose tail differs from main's.
* feat(decisions): add Vercel AI Gateway cost map rows for Jev
Backport of #50642 to lts/1.108.x.
Cherry-picked from 3f9539201cef70aa965fc494fbdb3179b6560c1f (mishdotdev:vercel-ai-gateway-decisions).
* fix(decisions): bill Vercel AI Gateway decisions at the charge Vercel reports
Backport of #50642 to lts/1.108.x.
Cherry-picked from 7c40b75f5657ec067f9a6fe2c7c91f8662c81a78 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: its decisions usage is never None, so the None guards are dropped, and the resolve_credential override stays out as in the first pick.
* fix(decisions): bill Vercel gateway charges with margin and BYOK, forward providerOptions
Backport of #50642 to lts/1.108.x.
Cherry-picked from 1f50a7c91f5032cbd350ab71af204245f2c640a7 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: the line has no upstream_usage_cost billing path (main got it in #48953), so the reported charge still goes out as the line's response-cost header and the operator discount and margin do not apply to it there, the same as OpenRouter decisions on the line. The image check is resolved once per request beside the line's box-question check, and the tests read the billed cost the way the line bills it.
* fix(proxy): check s3 media on every Responses WebSocket frame on the LTS line
The managed Responses WebSocket handler calls litellm.aresponses once per
response.create frame, and the HTTP s3 media check only saw the first frame as a raw
JSON string. A non-admin key could send an s3 object from an unlisted bucket, or one
under LiteLLM-managed storage, to Bedrock over WS /v1/responses
The WS route now hands the handler a frame check bound to the connection's key,
general_settings, managed files hook and router. The handler runs it on the params it
is about to forward for every frame, the first one included, and a refused frame gets
an invalid_request_error frame with the 403 message while the socket keeps serving
later frames
* fix(decisions): stop forwarding caller providerOptions to Vercel and send Jev images
Backport of #50642 to lts/1.108.x.
Cherry-picked from c8122bc6a5305fd8ce0bc3c1d534581d4dd1227a (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: decisions/call.py goes back to the line's own version, since the line never had the per-model support record main edits here, and the discount and margin test this commit touches on main is not on the line.
* fix(decisions): report provider charges on the cost header and read Vercel's cache split from the serving provider
Backport of #50642 to lts/1.108.x
Cherry-picked from ec26925103f82742866219bd73d19f88cc3de84e (mishdotdev:vercel-ai-gateway-decisions)
The Jev 1.13.0 and 1.14.0 rows record their image probes
Conflicts resolved to main's result. The call.py hunk is dropped because the line already reports provider charges on the response-cost header. The proxy test keeps only its paid call, since the line's proxy drops a zero response-cost header for every provider
* fix(proxy): let a client AWS identity skip the s3 bucket list only when Bedrock signs with it
An admitted aws_role_name, aws_web_identity_token or aws_profile_name now skips the
bucket list only when it decides the credentials get_credentials picks, on every
deployment of the model group. A web identity token without a role and a session
name does not, since get_credentials then ignores it. A profile does not when the
deployment or the environment sets a role, since the role branch runs first. In
those cases Bedrock still reads with the proxy's credentials, so the bucket list
applies
BaseAWSLLM.identity_choosing_params mirrors the branch order of get_credentials, and
both read the same AWS_* environment fallbacks through one helper
Ported to lts/1.108.x, where the model group is read with Router.get_model_list
* fix(mcp): match an entry's allowed_tools only against a server's own prefix, and a tool no server resolves only by its exact name
* fix(proxy): keep the s3 bucket list for non-admin keys that send a client AWS identity
A client AWS identity field does not prove that the caller can read the bucket. A
role or profile name picks credentials the proxy holds, and Bedrock reads the object
with them. So the bucket list now applies to every non-admin s3 media part, whatever
AWS identity fields the request sends. allow_client_side_credentials: true still
turns it off
This removes BaseAWSLLM.identity_choosing_params and the router lookup that only the
skip needed
Ported to lts/1.108.x
* fix(cost): bill transcriptions by the seconds the provider reports
Line port of the usage.seconds billing slice onto lts/1.108.x: normalized_audio_duration_seconds and _get_transcription_usage_duration from #35600 (ecb8ef5ca8), and the provider-seconds-first _transcription_duration_for_cost from #50727 (dfb1aac8b1), with their unit tests. The rest of #35600 stays on main.
* fix(transcription): treat libsndfile's unknown frame count as no duration
Backport of #50842 to lts/1.108.x.
Cherry-picked from e6a0534785 (litellm_transcription_unknown_frame_count).
* refactor(transcription): inline the unknown frame count check
Backport of #50842 to lts/1.108.x.
Cherry-picked from b6d25f2752 (litellm_transcription_unknown_frame_count).
* fix(transcription): read the frame count once to keep the type gate flat
Backport of #50842 to lts/1.108.x.
Cherry-picked from 54dcd9230f (litellm_transcription_unknown_frame_count).
* test(transcription): annotate the new passthrough test's locals as Final
Backport of #50842 to lts/1.108.x.
Cherry-picked from eb0f251b47 (litellm_transcription_unknown_frame_count).
* feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966)
Backport of #39966 to lts/1.108.x.
Cherry-picked from b39eadcb8228e05b76506df78fa2723628494669 (main).
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(mcp): refuse a tool whose display name only looks like an allowed name, and let the chat follow-up answer
An MCP entry's allowed_tools now matches a tool only by its exact listed name or a spelling routing
accepts for its real name, so a display name that carries the server's own prefix no longer passes for
another tool. The chat MCP follow-up keeps an allowed_tools choice in auto mode, so the model can answer
with text after the tool ran.
* chore: bump litellm 1.108.4 -> 1.108.5
litellm 1.108.4 already shipped, so the next release off this line is 1.108.5
* fix(mcp): match a toolset label's tools by exact native name
A toolset label served any tool whose name a routing spelling of a granted name matched, so a toolset granting the literal name "server-tool" also served the real tool "tool" that only another toolset grants. It now serves a tool only when the toolset grants its exact native name, the same check tool_is_granted uses when the gateway lists tools
* feat(bedrock): search knowledge bases by image and return image hits
vector_stores.search and asearch take a query_image (base64 jpeg, png, gif or webp), and query is optional when it is sent. Bedrock sends it as an IMAGE retrievalQuery, and a caller's own retrievalQuery in extra_body still wins
Bedrock IMAGE hits now come back as image content items instead of being dropped. The media type comes from the source file mime type metadata, then the data URI label, then application/octet-stream
A request with both query and query_image, with neither, or with a malformed image gets a 400. So does query_image on a provider without image search, unless drop_params is on. The proxy accepts query_image in place of query on /v1/vector_stores/{id}/search
Spend logs redact image data when prompts are not stored. Emulated file_search skips image-only hits, RAG rerank maps its indices to the text documents it ranked, and the dashboard tester renders image hits
(cherry picked from commit 55587c70122fc0fa4369cc23886e753a91b47ee0)
* fix(vector-stores): keep image hits to image searches and reject a caller retrievalQuery
Port of the main branch change. Text searches return the same text hits as before, image hits come back only for query_image searches, a caller retrievalQuery answers 400 or drops under drop_params, a file_search tool carrying query_image searches again, and a non-string query next to an image answers 400
On this line the typed views use as_str_mapping and a local list helper, since decoded_json_object and as_object_list are not on lts/1.108.x
(cherry picked from commit 65a7206199c4c51b46084f8417bf7235d33fd378)
* fix(compresr): let the retrieve call run under an allowed_tools choice on lts/1.108.x
The line's CompresrGuardrail did not list compresr_retrieve in server_fulfilled_tool_names, so the allowed_tools exclusion check counted the model's retrieve call as excluded and the request answered 400. Main has declared it since #49227, and this adds the same attribute with a regression test
* fix(usage): restore per-user spend breakdown on the user aggregated route (#49464)
Backport of #49464 to lts/1.108.x. Cherry-picked from 639625d6791e9236cb12e72790fdf7f00fc55323 (main).
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* style: preserve spacing around the user metadata helper
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(translation): expect encrypted reasoning in message responses (#50576)
Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 7617e66acfe1f3f9bb2984646c7da7c2f7d9db1b)
* test(integration): decode video ids with the product decoder in the callback delivery test
Ports only the tests/integration/observability/test_callback_delivery.py hunk of #47600. Video ids on this line now carry a ;deployment_id: suffix after #50693, so splitting on video_id: kept the suffix. The shares_worker_state pytestmark from that hunk's context belongs to a change not on this line and is left out
(cherry picked from commit e78f7b4602c15a5328f6f211c4bc9f3d664e1d50)
* test(integration): let an owned proxy opt into a private database and Redis
Ports the harness part of #47213 (process.py, workers.py, the remaining client.py hunks and its unit tests) so owned_proxy and owned_proxy_process accept state=OwnedState.PRIVATE and boot on a scratch database and their own redis-server, and Scenario cleanup checks read the database the proxy writes to.
Adapted for this line. Main makes private the default and marks 189 test files with shares_worker_state to keep them on the worker's state. This line keeps the worker's state as the default, so no existing test changes behavior and only callers that pass state=OwnedState.PRIVATE go private. The isolated_gateway rewrite and the conftest marker plumbing are left out, and the unit tests cover the shared default plus the explicit private opt-in
(cherry picked from commit fc27dfdc7d9be704a1c5bffb9c954caeae9dc886)
* test(integration): run the body upload disconnect test on a private database
Ports only the tests/integration/observability/test_guardrail_effects.py hunk of #49310. The test asserts the only spend row is its own control call, so on the shared worker database it picked up rows other tests wrote
(cherry picked from commit fbd126e5182040a5ed8b97d54d41b5febc94452b)
* test(compresr): annotate the allowed_tools choice test's locals as Final
* test(integration): give each kill-burst its own prompts so cached control replies cannot stand in for late traffic (#50569)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 0d0bf8f75f63a9c76ab75d121cdd6b7f498f2607)
* fix: make scheduled key, user, and team spend resets idempotent (#50298)
Backport of #50298 to lts/1.108.x.
Cherry-picked from ac08eb566314a2dec9f73ede0bb8c687118b5608 (main).
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(proxy): add execute_raw to the PrismaBatch protocol
Prerequisite for the #50298 backport to lts/1.108.x, which queues guarded raw spend resets on the batch.
Hand-ported from 24a7bf6af728272eca2ba3277a2f3cdfa7e60863 (#48260, main).
* fix(azure): accept explicit v1 Responses bases (#48072) (#48118)
Backport of #48118 to lts/1.108.x.
Hand-ported from 96abce842b (main): the line lacks #46377's api-version resolution helpers.
* fix(azure): send no api-version on Foundry project /openai/v1 Responses bases
Backport of the main fix on branch litellm_azure_responses_project_v1_api_version to lts/1.108.x.
Cherry-picked from 2a8cdecb15 and adapted to the line's get_complete_url.
* fix(vector-stores): redact query images and keep store search params out of image checks
(cherry picked from commit 0574a8e11965c95dac58ffe037064ff43bf6846b)
* fix(mcp): backport #50717 to lts/1.108.x
Cherry-pick of e6db6206d1 with module paths moved to litellm/proxy/_experimental/mcp_server.
* fix(responses): keep unset-effort gpt-5.4/5.5 tool calls on chat completions (#50968)
Backport of #50968 to lts/1.108.x.
Cherry-picked from d47c03175bba41a39c4c3f8a947e28938708eef2 (main).
Line adaptation: the line has no bridge_reasoning_effort helper or deployment-pinned
routing mode, so the bridge-flag tests pass the effort directly and skip the mode pin.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(vertex_ai): bill gemini image edits by token usage (#51038)
Backport of #51038 to lts/1.108.x.
Cherry-picked from 53e1e9b87b36dabed967b17338948535020b7abc (main).
Line adaptation: the line has no map_vertex_image_size or the Gemini image-size tests, so only
the usage test and the token-usage response path come across.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(mcp): backport #51065 to lts/1.108.x
The connect check regression test mocked the credential reader, so a broken
stored grant still passed. It now saves the grant with the real writer into an
in-memory table and lets the connect check read and decode it.
Cherry-picked from 478d9bf5d2 on main, with module paths moved to
_experimental/mcp_server.
* fix(vector-stores): redact images nested in extra_body and keep a store's extra_body retrievalQuery out of searches
(cherry picked from commit c99fd3631b256caf20bdc5eab530226d02be0b80)
* fix(responses): read reasoning_effort from extra_body for the bridge gate
Minimal prerequisite for #50968 on lts/1.108.x: the bridge_reasoning_effort and
str_keyed_mapping helpers from 897dda7920 (#46263, main), so a reasoning_effort sent
in extra_body still bridges gpt-5.4+ function-tool calls now that an unset effort
stays on chat completions.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(vector_stores): keep a caller's image query through store and router params
A deployment's retrievalQuery no longer reaches a routed search, a caller's query fields survive a store's own extra_body, and an extra_body image stops before the provider. file_search forwards rewrite_query, both retrieval query spellings are redacted, and the cost error stops echoing the response when message logging is off
(cherry picked from commit c65634d4ade59d5c06dabacb946b77161aa79365)
* feat(azure_ai): support gpt-image edits on Azure AI Foundry
Foundry hosts gpt-image deployments on the same /openai/deployments/{deployment}/images/edits route as Azure OpenAI, but the azure_ai image-edit factory only knew MAI and FLUX, so gpt-image-2 and the gpt-image-2.5 models raised a ValueError before any request was sent
Reuse AzureImageEditConfig for the request, URL, and multipart handling, and resolve the api_base and credentials with the azure_ai helpers
Co-Authored-By: AaronHowell <111272993+AaronHowell@users.noreply.github.com>
(cherry picked from commit 4c29e1846a7de81bc986f23058c91816be2e5581)
* fix(azure_ai): default gpt-image edits to an edit-capable api-version
Foundry gpt-image edits now fall back to 2025-04-01-preview when no api_version is set, since the shared Azure default 2025-02-01-preview answers 404 on /images/edits. The config returns merged headers instead of updating the caller's dict, and the tests check the request each gpt-image model sends
(cherry picked from commit 233a0d99f12c939f1050b67324e83aeb0c42dc23)
* fix(azure_ai): ignore the Azure OpenAI api-version env for Foundry gpt-image edits
The proxy CLI always sets AZURE_API_VERSION to 2025-02-01-preview, which
Foundry answers with 404 on image edits. gpt-image edits now read only
litellm_params, AZURE_AI_API_VERSION, and litellm.api_version before the
2025-04-01-preview default, matching the other azure_ai edit configs
(cherry picked from commit c93fd388d4d34e865b426b1d53297f469734fad4)
* fix(azure_ai): route custom Foundry deployments, require a Foundry api_base, and honor caller auth for gpt-image edits
A deployment name the edit factory does not recognize now uses the gpt-image route instead of raising, since Foundry deployment names are free-form. A gpt-image edit with no Foundry api_base raises like the MAI and FLUX configs instead of borrowing AZURE_API_BASE. The shared edit handler passes the call's extra_headers to validate_environment, so a caller's api-key or Authorization header is sent alone
(cherry picked from commit 6be34701e6bc69d43659e5b9068cdd149cf5c9cf)
* fix(azure_ai): keep the shared edit handler unchanged and send caller auth headers like azure_ai chat
(cherry picked from commit 31348e4c5f90c85fbf4e981e73ccb258eea9431e)
* fix(cost): leave image search responses out of the cost error text
(cherry picked from commit b892162eb3dfc7c7d8bf24d54130ee9e794832c3)
* fix(vector_stores): accept line-wrapped base64 in query_image data
Bedrock takes inlineContent wrapped with \n or \r\n line breaks, as plain base64 writes it, so the check ignores only those before decoding and the data goes to Bedrock as sent
(cherry picked from commit c2cad843b07609f3d216a46db6150c186568d595)
* chore: bump litellm 1.108.5 -> 1.108.6
litellm 1.108.5 already shipped, so the next release off this line is 1.108.6
* fix(usage): keep spend when metadata lookups hit database failures (#50253)
* fix(usage): tolerate entity metadata database failures
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(usage): keep spend when metadata lookups hit database failures
Treat transport errors and the query engine crash on a closed connection as database
failures in the key, user and guardrail lookups of the aggregated, keys, users,
model_top_keys and cache_leakage_keys routes, and keep prisma out of module-level imports
so a proxy install without prisma still imports the usage endpoints.
* fix(usage): fall back only on database outages, on every daily activity route
Data-layer Prisma errors such as a rejected query or a missing table return 500 again, a key whose details failed to load reports key_exists null instead of false, and the non-aggregated daily activity routes keep spend when the key or entity metadata lookup hits an outage
* fix(proxy): skip the key metadata lookup when the daily rows carry no keys
* fix(usage): keep the guardrail breakdown fallback for any Prisma error
A missing guardrail usage table or column made the Usage call return 500 after the outage-only narrowing. The guardrail lookup now falls back on outages and on any Prisma error, as it did before this PR
* fix(usage): keep spend when the team, organization, customer, or agent name lookup drops
---------
Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 5d66f2d8ff55378ee01c0cb04f3193330dc09e83)
* fix(ci): install tzdata so zoneinfo tests pass on runners without legacy tz aliases (#51057)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit ebd5a15b22ba012d2f5a5ee654afc93cd51add5e)
* fix(baseten): forward reasoning_effort to Baseten Model API (#40152)
* fix(baseten): forward reasoning_effort to Baseten Model API
Baseten's Model API accepts a top-level reasoning_effort parameter and
validates it server-side (https://docs.baseten.co/inference/model-apis/reasoning),
but BasetenConfig.get_supported_openai_params did not list it, so LiteLLM
silently dropped it when drop_params=True and raised UnsupportedParamsError
otherwise.
Add reasoning_effort to the supported params so map_openai_params forwards
it verbatim, mirroring the hosted_vllm and deepseek providers. Baseten
returns a clear 400 for values outside a model's supported set and ignores
the parameter on non-reasoning models, so verbatim passthrough is safe for
the whole catalog.
[Claude_Code]
* fix(baseten): forward reasoning_effort to Baseten Model API
Baseten's Model API accepts a top-level reasoning_effort parameter and
validates it server-side (https://docs.baseten.co/inference/model-apis/reasoning),
but BasetenConfig.get_supported_openai_params did not list it, so LiteLLM
silently dropped it when drop_params=True and raised UnsupportedParamsError
otherwise.
Add reasoning_effort to the supported params so map_openai_params forwards
it verbatim, mirroring the hosted_vllm and deepseek providers. Baseten
returns a clear 400 for values outside a model's supported set and ignores
the parameter on non-reasoning models, so verbatim passthrough is safe for
the whole catalog.
---------
Co-authored-by: ryan-crabbe-berri <ryan@berri.ai>
(cherry picked from commit 13335266f59a822dcafaadf7329c6a938867c265)
* fix(baseten): list current Model APIs instead of retired 2023 deployment IDs (#46945)
* fix(baseten): list current Model APIs instead of retired 2023 deployment IDs
`baseten/*` wildcard expansion and `/v1/models` read a hardcoded set of
three 2023 deployment IDs (Falcon 7B / WizardLM / MosaicML) that no longer
exist, while the model cost map already carries current Baseten entries.
- Populate `baseten_models` from the model cost map, like fireworks_ai.
- Add `BasetenConfig.get_models()` against the Model API `/v1/models`
endpoint and register it in `ProviderConfigManager.get_provider_model_info`,
so `check_provider_endpoint: true` returns the live catalog.
- Remove the retired deployment IDs from `constants.py`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(baseten): mark retired Model APIs deprecated and skip them in listings
15 Baseten entries in the model cost map are no longer servable: the Model
API returns 410 "model version ... has been deprecated" (DeepSeek-V3.1
returns 400 deactivated), and none appear in `inference.baseten.co/v1/models`.
- Set `deprecation_date` on those entries (kept for spend tracking).
- Skip entries past their `deprecation_date` when building `baseten_models`,
so `baseten/*` expansion only lists models that still serve.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(baseten): assert the custom api_base model listing on the returned models
The custom api_base test only inspected the patched client's call args, which trips the
TQ002 mock-echo gate. Serve the custom URL with respx and assert on the models that come
back instead, so a wrong host or a broken parse both fail.
* fix(baseten): drop newly retired models on cost map reload and fake discovery at the HTTP boundary
A cost map refresh only ever added to the Baseten set, so a model that gained a past
deprecation_date after boot stayed listed under baseten/* until restart. Discard it on reload.
Tests now serve the catalog with respx instead of patching our own HTTP client, the
isinstance registration test is gone since the get_valid_models test already proves
discovery end to end, and new test locals carry Final.
---------
Co-authored-by: AlexKer <AlexKer@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: ryan-crabbe-berri <ryan@berri.ai>
(cherry picked from commit 3eeee3e76118783671bd7c9dd44a192eedf917ad)
* fix(router): route decisions calls only to deployments whose provider supports decisions (#48175)
* fix(router): route decisions calls only to deployments whose provider supports decisions
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(router): account for indirect route helper coverage
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(router): pin the chat leg so the mixed-group check is deterministic
Weights pick the Bedrock leg for chat instead of relying on simple-shuffle landing on both legs. The route filter now passes the candidate list through unchanged in type, so the pre-existing selector lines lose their pyright ignores
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: joshua <joshua@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 4710c3b30e5c1459dbb11a060ad733ee06f06c18)
* fix(responses): keep every MCP tool round in streaming follow-up input (#47698)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: ryan-crabbe-berri <ryan@berri.ai>
(cherry picked from commit f1795e6d447a4e5a3660de0d2fde5e1f44f52929)
* fix(responses): skip failed spend-log turns when rebuilding a session from previous_response_id (#48647)
* fix(responses): skip failed spend-log turns when rebuilding a session from previous_response_id
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(responses): guard the failed-turn status read and annotate the regression test locals
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit df9091deb666f0d689c7df01056374569019c03e)
* fix(responses): reject or drop Responses params the chat completions bridge cannot translate (#48655)
* fix(responses): reject or drop Responses params the chat completions bridge cannot translate
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(responses): keep additional_drop_params working for Responses fields the bridge cannot translate
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Update litellm/responses/main.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* style(responses): drop the blank line ruff format rejects after the dataclass header
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
(cherry picked from commit e32d8a4d03f62ca0ec123e0a9377f6be32653bc0)
* fix(vector_stores): drop rewrite_query false from the chat file_search tool
False asks for the default search every store already runs, and MongoDB
rejects the field outright, so forwarding it made a MongoDB chat lose the
store's context for a no-op flag. True is still forwarded.
(cherry picked from commit ee74a39a776)
* fix(responses): serialize sequence_number on every bridged streaming event (#44944)
* fix(responses): serialize sequence_number on every bridged streaming event
* test(responses): cover sequence_number on bridged streaming events
* fix(responses): read undeclared fields through dict accessors and number guardrail block continuations
* fix(responses): scope dict reads that see undeclared fields to Responses stream events
Moves the extras-aware __getitem__, get, __contains__ and items from the
shared response base onto a new base for the 37 stream event classes, so
usage, Gemini, Interactions and moderation objects keep reading __dict__
and Gemini responses keep _hidden_params out of .get
* fix(router): renumber Responses stream events only after a fallback takes over
A stream that never falls back now keeps its provider's own sequence numbers, repeats included, so a starting_after resume still matches them. After a fallback the wrapper continues above the highest number the client saw
* fix(guardrails): keep Responses stream numbers unique when LLM Shield flushes held text
The restorer's flush copied the last delta and kept its sequence_number, so a
native stream repeated a number and a bridged stream sent the flush unnumbered.
A flush now takes the done event's slot and later events move up by one, and a
stream the provider never closed numbers its flush after the last event.
Also pins the created_at in the streaming iterator test fixture instead of
reading the clock.
---------
Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
(cherry picked from commit 6f3251c7e31fb6fed73a786becc6c62f2df56ce7)
* fix(decisions): keep the Vercel AI Gateway key off the OpenAI credential fallback on lts/1.108.x
The line gained the Decisions resolve_credential hook in the backport of #39966 after this branch was cut, so the Vercel provider would inherit OpenAI's fallback to OPENAI_API_KEY. Take main's override from #50642, which returns the gateway key as is.
* test(e2e): remove the secret manager suite (#51241)
The secret manager lanes ran the proxy against a Vault dev container and a
Conjur container that we start ourselves, so nothing in them needed a real
third-party service. They have not run a single test since late October,
because the co-located proxy cannot boot in the lane pod, and they were
soft_fail outside the promotion gate, so they only added noise.
The AWS test in the folder was skipped on every lane, since no aws lane
ever existed.
The four coverage registry rows go with the tests, because the registry is
the e2e denominator and this behavior belongs in the integration tier if it
gets covered again. The Vault and CyberArk clients keep their unit tests.
(cherry picked from commit 587902becf7d48d843befca9d7ea359a216e39d7)
* fix(proxy): stop request body fields from conflicting with admin-set deployment fields
Six fields that also configure Azure sign-in on a deployment (tenant_id, client_id, client_secret, azure_username, azure_password, azure_scope) could be set in a request body, where they conflicted with the values an admin set on the deployment
They are now refused at the body root, in extra_body and in litellm_embedding_config unless an admin opted in with allow_client_side_credentials or configurable_clientside_auth_params. Credential fields and user_config deployments also refuse values in the os.environ/ and oidc/ format, which only admin config uses. Deployment management routes are unchanged
Routes where these names are the API's own fields keep accepting them. That covers client_secret on the realtime transcription_sessions routes, client_id and client_secret on the MCP server OAuth form and on /introspect, and all six as metadata tags
Co-authored-by: Oliver Jensen <oliver@berri.ai>
(cherry picked from commit 6ba6b041e517bd424e8fb4d75aa724962abe289d)
* test(proxy): drop the two request body classifications the field ban removed
client_secret and azure_password are no longer accepted in a request body by default, so the registry's list of credential params a client may send no longer includes them
(cherry picked from commit 2b7e860982d0bdd60f7b5f3ec88d60ce871c3c78)
* test(proxy): import Mapping for the backported request body tests
* fix(proxy): check user_config search_tools for admin-format values too
The source change checks user_config search_tools entries as well as model_list and default_litellm_params. This line's walker skips search_tools, so the backport walks them for this check
* fix(vertex_ai): bill gemini image text, thinking and priority tokens at their own rates (#51017)
Backport of #51017 to lts/1.108.x.
Cherry-picked from 461b56b14b2a024ff73e59f56c01db169dfb902f (main).
Conflicts resolved: vertex_gemini_transformation.py import block (the line does not import map_vertex_image_size) and test_image_usage_transformation.py (the line lacked the ValidationError import and the rejects test, both taken from the pick).
* feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking (#51032)
Backport of #51032 to lts/1.108.x as the prerequisite of #51279.
Cherry-picked from a0f2562088 (main).
Conflicts resolved: http_handler.py (the line has no _send_streaming_get, so only the anchor_handler_to rename was taken, including the line's own call site), tests/unit/batches/test_batch_utils.py and test_main.py (the line lacks the hosted_vllm batch tests the pick was formatted next to, so only the new gemini tests were taken). Line adaptation: join_api_base and _strip_trailing_slashes_keeping_the_scheme copied from main's url_utils (#47535) because the gemini files transformation needs them and the line never received that helper.
Line adaptation: the three join_api_base call sites validate GeminiModelInfo.get_api_base through TypeAdapter(str), because the line still annotates that helper as str | None while main returns str, so the type gate would otherwise count three new reportArgumentType errors.
* fix(gemini): attribute /gemini batchGenerateContent batches to the calling key (#51279)
Backport of #51279 to lts/1.108.x.
Cherry-picked from 801e139c35af5eca132e8761cb11be19621218c4 (main).
Conflicts resolved: gemini_passthrough_logging_handler.py import block (the line keeps its import re) and test_gemini_passthrough_logging_handler.py, where the line lacks the gemini pass-through pricing probe tests, so only the new batch tests and their asyncio and base64 imports were taken.
Line adaptation: gemini_deployment_id reads deployments through llm_router.get_model_list(model_name=...), the line's name for what main calls llm_router.registry().deployments(model_name=...).
* fix(bedrock): check OpenAI vector store filter values per operator and keep nested groups within the AWS limit
AWS in and notIn take only a non-empty list of strings, so an in or nin list holding a number now goes out as orAll of equals or andAll of notEquals, and a one-item list as a single equals or notEquals
Each OpenAI filter now refuses keys it does not define and checks its value by operator: eq and ne take a scalar, gt, gte, lt and lte take a number, in and nin take a non-empty list. An empty filters object is invalid too. Each of these answers 400 before any AWS call, or is dropped under drop_params, where before it reached AWS and failed there or, for a stray key, was silently ignored
AWS rejects a RetrievalFilter nested more than 2 levels deep, so a group whose member is the same kind of group, written by the caller or made from a numeric in or nin, now takes that member's items. A mix of and and or nested deeper than AWS allows still fails at AWS
_aws_group_members joins the recursion detector's ignore list, since it walks only a validated filter that pydantic-core stops at 255 levels
Backport to lts/1.108.x.
Cherry-picked from b15ac0fe6b and 2232dba0db (litellm_bedrock_vector_store_openai_filters), whose main PR follows as the forward-port.
* fix(azure_ai): send reasoning_effort to Foundry Kimi K3 and keep its reasoning_content
Foundry models whose loaded catalog row declares reasoning_effort_levels now take reasoning_effort as a level string, rounded up to the nearest declared level, and an effort object is unwrapped to its level. Fireworks-hosted FW- models keep reasoning_content in replayed history, so Kimi K3 can read back what it decided in its earlier thinking. The gate reads the catalog as loaded, so levels a router copies onto the shared row for one deployment do not open reasoning_effort for an undeclared sibling
* fix(responses): preserve mixed reasoning and answer deltas on lts
Partial backport of #46754 to lts/1.108.x. Source merge commit a8113b0dd721804c752a6f1952367fb642205224. Preserve the reasoning/answer split only, excluding the unrelated Anthropic compaction changes.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(proxy): look up managed file ids only when they can change the s3 refusal
(cherry picked from commit 0043e3020f5258d6542cad2031f70b2928b89101)
* fix(bedrock): check every file id field, skip MCP tool calls, accept registered S3 media types
(cherry picked from commit 2b13898be4959f51255d7a40978cc6515a522a8a)
* fix(proxy): refuse unlisted s3 media on the rag query and adapter routes
(cherry picked from commit 1d85ba2c1de440543a38b1ca58f0636d8c1bb631)
* style(proxy): format the merged collections.abc import
(cherry picked from commit 91bb8946180b52a708944a7c939e337704834d0e)
* fix(proxy): walk tuples when checking s3 media and skip plain number lists
(cherry picked from commit 5d8f25696341df2acf559ada53ef66ff53dd448d)
* fix(proxy): skip numbers when walking a request body for s3 media
A body with large token-id lists and any s3:// string or file_id key made
the full walk build a node per number, taking seconds per request. The walk
and its prefilter now skip int, float, bool and None values.
(cherry picked from commit 57e73a8f7de294abbc90bef55bdd58acb30f24a6)
* test(proxy): check the s3 refusal through the real request setup
(cherry picked from commit 03624164af4ba7dc35112041a201775436ddd4a6)
* test(proxy): exercise real setup for allowed s3 media
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 5f11068f76d77e05519fcc90a7087a2d9ef7fe95)
* fix(proxy): preserve lts allowlist contract after backport
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(responses): preserve explicit media formats on lts
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(model-armor): fail closed on remote s3 documents
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit f9ad9f8aad6e9df611d8b4f470aeacee7ac0ff85)
* chore: bump litellm 1.108.6 -> 1.108.7
litellm 1.108.6 already shipped, so the next release off this line is 1.108.7
* feat(azure-ai): support Entra ID auth for Microsoft-Decision-1 on /v1/decisions and /v1/systemone (#46539)
Backport of #46539 to lts/1.108.x.
Cherry-picked from caad4d62045e76c1a8428ab8f316d351ca9a0a7e (main).
* refactor(azure): expose the api_base resolver and the cached Entra token provider
Prerequisite for the backport of #48529 to lts/1.108.x.
Hand-ported from the litellm/llms/azure/common_utils.py hunks of 9cf09c18fe (#46377, BaseAzureLLM.resolve_azure_api_base) and c0d88b46c9 (#47348, cached_azure_ad_token_refresh_provider) on main. The rest of those two commits is not picked.
* fix(azure): add keyless Decisions authentication (#48386) (#48529)
Backport of #48529 to lts/1.108.x.
Cherry-picked from e5757934fd7e1e37ecf566cd712ea66313315ccf (main).
* fix(files): match every spelling of a provider file id in the ownership check
enforce_provider_file_access matched the stored provider file id by exact string, and a Gemini output file
can be addressed as files/<id>, files%2F<id>, <id>/ or its full URL, all of which the Gemini file transformation
sends to the same file. Those spellings found no ownership row and fell through the no-row pass-through path.
canonical_provider_file_id collapses the spellings to the bare id; the ownership check looks up both the
spelling the caller sent and the canonical one, and store_batch_output_file_ownership stores the canonical id.
(cherry picked from commit 85e6a98866910c98d699bbbaa9b0c3af677c2719)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(files): unwrap model-encoded ids and index canonical provider ids in ownership rows
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 97c9152552a80695cedd8eb72544e2b4ddebe640)
* test(files): assert the ownership lookup outcome instead of its query shape
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 07abf10d3ef4fbd4f79ad4c69802f30d5646acb5)
* fix(files): map provider ids back to their unified file by canonical spelling
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 214e17884a61f51ffa8f307bf94e75db2bd4c834)
* chore(files): record the bound on the ownership lookup's in filter
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit d2a5f0799444c7e05295452b5efaed0e1c945318)
* fix(files): reduce any scheme or case wrapping files/<id> the way gemini does before the ownership lookup
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit e2dad6c914d337471ef9d8b6c08db72502b5f16b)
* test(files): assert the provider id lookup covers the requested ids instead of its exact list
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(files): bind the reverse lookup match with a walrus instead of a Final inside the loop
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 32dabac9f8537bc431fb99ef95a11f79a64f8370)
* fix(files): keep non-Gemini storage URLs opaque so an upload name cannot index another key's provider id
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit c9c9d1024816573500b2fda53d4f025e3ad8adaa)
* test(files): judge the provider id resolver by the mapping it returns only
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit b145f34c0b1bed76607aa7c7d6614bcd870b3f22)
* fix(mcp): treat the mcp_all scope as a wildcard any grant covers (#51578)
Datadog answers a request for mcp_all with its granular scopes, so the connect
check never found mcp_all and users looped back to Connect. Reconnecting also
re-asked every granular scope from the old grant, which overflowed the sign-in
cookie. Any non-empty grant now covers mcp_all, and a request for mcp_all does
not re-as…
… flatten it for the Responses bridge (BerriAI#49043) Backport of BerriAI#49043 to lts/1.108.x. Cherry-picked from 28c8004 (main). Import conflicts in the Responses bridge and the Azure chat config resolved to the line's imports plus the helper import. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…110.3 ) (#3828) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/berriai/litellm](https://images.chainguard.dev/directory/image/wolfi-base/overview) ([source](https://github.com/BerriAI/litellm)) | minor | `v1.109.1` → `1.110.3` | --- ### Release Notes <details> <summary>BerriAI/litellm (ghcr.io/berriai/litellm)</summary> ### [`v1.110.3`](https://github.com/BerriAI/litellm/releases/tag/v1.110.3) [Compare Source](https://github.com/BerriAI/litellm/compare/v1.110.2...v1.110.3) #### Verify Docker Image Signature ```bash cosign verify \ --certificate-identity https://github.com/BerriAI/project-releaser/.github/workflows/release.yml@refs/heads/main \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ ghcr.io/berriai/litellm:v1.110.3 ``` #### What's Changed - fix(mcp)!: backport gateway DCR opt-in to 1.110 ([#​53059](https://github.com/BerriAI/litellm/issues/53059)) by [@​shrey-berri](https://github.com/shrey-berri) in [#​53178](https://github.com/BerriAI/litellm/pull/53178) - fix(proxy): backport audit log fixes to stable/1.110.x ([#​50929](https://github.com/BerriAI/litellm/issues/50929), [#​53305](https://github.com/BerriAI/litellm/issues/53305)) by [@​kerry-berri](https://github.com/kerry-berri) in [#​53298](https://github.com/BerriAI/litellm/pull/53298) - chore(release): backport [#​53171](https://github.com/BerriAI/litellm/issues/53171), [#​53210](https://github.com/BerriAI/litellm/issues/53210) to stable/1.110.x by [@​kerry-berri](https://github.com/kerry-berri) in [#​53207](https://github.com/BerriAI/litellm/pull/53207) - fix(router): fall back by the group a pick was routed to (backport [#​52510](https://github.com/BerriAI/litellm/issues/52510) to stable/1.110.x) by [@​kerry-berri](https://github.com/kerry-berri) in [#​53109](https://github.com/BerriAI/litellm/pull/53109) - chore: bump versions on stable/1.110.x by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​54010](https://github.com/BerriAI/litellm/pull/54010) **Full Changelog**: <https://github.com/BerriAI/litellm/compare/v1.110.2...v1.110.3> ### [`v1.110.2`](https://github.com/BerriAI/litellm/releases/tag/v1.110.2) [Compare Source](https://github.com/BerriAI/litellm/compare/v1.110.1...v1.110.2) #### Verify this release ```bash cosign verify \ --certificate-identity https://github.com/BerriAI/project-releaser/.github/workflows/release.yml@refs/heads/main \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ ghcr.io/berriai/litellm:v1.110.2 ``` Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images #### What's new in 1.110.2 11 PRs. 8 fixed. No action needed to upgrade ##### Changes - **Anthropic:** Fixed `temperature=1` returning 400 on Claude models that removed sampling params on Anthropic, Vertex AI and Azure AI, broken since v1.110.0-rc.2 ([#​52341](https://github.com/BerriAI/litellm/issues/52341)) - **Responses API:** Fixed streams retrying after output reached the client, which sent duplicate events and billed extra calls ([#​52461](https://github.com/BerriAI/litellm/issues/52461)) - **Responses API:** Fixed streams that fail after reasoning output restarting on a fallback group and sending a second response ([#​52616](https://github.com/BerriAI/litellm/issues/52616)) - **Caching:** Fixed GPT-6.2 system prompts missing the prompt cache on `/v1/chat/completions` and `/v1/messages` unless `store: false` ([#​52906](https://github.com/BerriAI/litellm/issues/52906)) <sup>Also in [1.106.12](https://github.com/BerriAI/litellm/releases/tag/v1.106.12), [1.108.13](https://github.com/BerriAI/litellm/releases/tag/v1.108.13), [1.109.3](https://github.com/BerriAI/litellm/releases/tag/v1.109.3)</sup> - **Cost tracking and pricing:** Fixed forwarded Anthropic credentials on `/v1/messages` ignoring the deployment's custom prices, broken since v1.109.0 ([#​52313](https://github.com/BerriAI/litellm/issues/52313)) - **Keys, teams and auth:** Fixed JWT key mappings without `jwt_issuer` taking 5 minutes to apply when `litellm_jwtauth.issuers` is set, broken since v1.103.0 ([#​52350](https://github.com/BerriAI/litellm/issues/52350)) <sup>Also in [1.108.13](https://github.com/BerriAI/litellm/releases/tag/v1.108.13), [1.109.3](https://github.com/BerriAI/litellm/releases/tag/v1.109.3)</sup> - **Keys, teams and auth:** Fixed `/key/info` letting a key with no user read other userless keys by hash or alias ([#​52838](https://github.com/BerriAI/litellm/issues/52838), [#​52925](https://github.com/BerriAI/litellm/issues/52925)) <sup>Also in [1.106.12](https://github.com/BerriAI/litellm/releases/tag/v1.106.12), [1.108.13](https://github.com/BerriAI/litellm/releases/tag/v1.108.13), [1.109.3](https://github.com/BerriAI/litellm/releases/tag/v1.109.3)</sup> - **Performance:** Fixed memory growth from every finished request staying in memory until a full GC pass, broken since v1.110.0-rc.1 ([#​51888](https://github.com/BerriAI/litellm/issues/51888)) *** Backport [#​52463](https://github.com/BerriAI/litellm/issues/52463) · Backport [#​52469](https://github.com/BerriAI/litellm/issues/52469) · Backport [#​52690](https://github.com/BerriAI/litellm/issues/52690) · Backport [#​52751](https://github.com/BerriAI/litellm/issues/52751) · Backport [#​52920](https://github.com/BerriAI/litellm/issues/52920) · Backport [#​52938](https://github.com/BerriAI/litellm/issues/52938) · [Full changelog](https://github.com/BerriAI/litellm/compare/v1.110.1...v1.110.2) ### [`v1.110.1`](https://github.com/BerriAI/litellm/releases/tag/v1.110.1) [Compare Source](https://github.com/BerriAI/litellm/compare/v1.110.0...v1.110.1) #### Verify this release ```bash cosign verify \ --certificate-identity https://github.com/BerriAI/project-releaser/.github/workflows/release.yml@refs/heads/main \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ ghcr.io/berriai/litellm:v1.110.1 ``` Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images #### What's new in 1.110.1 3 PRs. 1 fixed, 2 changed. No action needed to upgrade ##### Changes - **OpenAI:** Fixed GPT-6.2 prompt caching for system prompts sent to `/v1/chat/completions` or `/v1/messages` with `store: false` ([#​52658](https://github.com/BerriAI/litellm/issues/52658)) - **Deployment:** Changed the UI image to slim nginx, which drops `curl` but keeps `wget` and `nc` ([#​52595](https://github.com/BerriAI/litellm/issues/52595)) - **Deployment:** Changed the Docker images to a newer Wolfi base image ([#​52749](https://github.com/BerriAI/litellm/issues/52749)) *** [Full changelog](https://github.com/BerriAI/litellm/compare/v1.110.0...v1.110.1) ### [`v1.110.0`](https://github.com/BerriAI/litellm/releases/tag/v1.110.0) [Compare Source](https://github.com/BerriAI/litellm/compare/v1.109.4...v1.110.0) #### Verify Docker Image Signature ```bash cosign verify \ --certificate-identity https://github.com/BerriAI/project-releaser/.github/workflows/release.yml@refs/heads/main \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ ghcr.io/berriai/litellm:v1.110.0 ``` #### What's Changed - fix(gemini)!: answer 400 for an unsupported chat audio format, drop it under drop_params by [@​paveln83](https://github.com/paveln83) in [#​49423](https://github.com/BerriAI/litellm/pull/49423) - fix(router): keep encrypted reasoning when a fallback hops between same-key deployments with no api_base by [@​tessellark](https://github.com/tessellark) in [#​49396](https://github.com/BerriAI/litellm/pull/49396) - fix(anthropic)!: sync the beta header allowlist with what anthropic, vertex_ai, and azure_ai accept by [@​tavren27](https://github.com/tavren27) in [#​49409](https://github.com/BerriAI/litellm/pull/49409) - fix(responses): serialize sequence_number on every bridged streaming event by [@​kaust1495](https://github.com/kaust1495) in [#​44944](https://github.com/BerriAI/litellm/pull/44944) - fix(proxy): make /update/sso_settings a true PATCH and send only changed SSO fields from the UI by [@​jesus-berri](https://github.com/jesus-berri) in [#​49527](https://github.com/BerriAI/litellm/pull/49527) - test(integration): fix four flaky integration tests by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49554](https://github.com/BerriAI/litellm/pull/49554) - fix(anthropic): stream azure_ai natively on an Azure OpenAI host on /v1/messages by [@​mika-lt](https://github.com/mika-lt) in [#​49216](https://github.com/BerriAI/litellm/pull/49216) - fix(proxy): check the model in every OpenAI websocket passthrough frame by [@​zoveki](https://github.com/zoveki) in [#​48979](https://github.com/BerriAI/litellm/pull/48979) - fix(proxy): keep provider fields on streamed chat completion chunks by [@​quietjules](https://github.com/quietjules) in [#​49398](https://github.com/BerriAI/litellm/pull/49398) - fix(providers): trim prompt_cache_breakpoint to what each API takes under drop_params by [@​tavren27](https://github.com/tavren27) in [#​49064](https://github.com/BerriAI/litellm/pull/49064) - fix(bedrock): price Web Search on the GPT-5.4 and later Mantle rows and the GovCloud West Mantle rows by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49687](https://github.com/BerriAI/litellm/pull/49687) - fix(model-catalog): declare the tool and Responses token count framing keys by [@​tavren27](https://github.com/tavren27) in [#​49683](https://github.com/BerriAI/litellm/pull/49683) - fix(proxy): count the context_management edits /v1/messages applies on every bridged provider by [@​tessellark](https://github.com/tessellark) in [#​49234](https://github.com/BerriAI/litellm/pull/49234) - fix(fireworks): keep developer items in place for models that accept a later system message by [@​tessellark](https://github.com/tessellark) in [#​49399](https://github.com/BerriAI/litellm/pull/49399) - fix(databricks): join plain text blocks for non-Claude json_object requests by [@​zoveki](https://github.com/zoveki) in [#​49385](https://github.com/BerriAI/litellm/pull/49385) - test(integration): repair stale contract fixtures by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49700](https://github.com/BerriAI/litellm/pull/49700) - fix(bedrock)!: give Invoke and Mantle Claude the model's own default max_tokens by [@​zoveki](https://github.com/zoveki) in [#​49692](https://github.com/BerriAI/litellm/pull/49692) - fix(count_tokens): count grok-4-1, grok-4.3 and DeepSeek V4.1 tool requests the way their hosts bill them by [@​tavren27](https://github.com/tavren27) in [#​49074](https://github.com/BerriAI/litellm/pull/49074) - fix(cohere): map Cohere v2 finish_reason on non-streaming chat responses by [@​jesus-berri](https://github.com/jesus-berri) in [#​49529](https://github.com/BerriAI/litellm/pull/49529) - test(integration): align remaining release qualification checks by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49714](https://github.com/BerriAI/litellm/pull/49714) - fix(prometheus): retain deployment attribution on proxy failures by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49717](https://github.com/BerriAI/litellm/pull/49717) - test(integration): isolate stranger batch authorization from the batch-cost poller by [@​mateo-berri](https://github.com/mateo-berri) in [#​49522](https://github.com/BerriAI/litellm/pull/49522) - fix(mcp): answer 400 for a hosted MCP tool a translated route cannot run, drop it under drop_params by [@​simonp9](https://github.com/simonp9) in [#​48931](https://github.com/BerriAI/litellm/pull/48931) - feat(hosted_vllm)!: keep vLLM's stop_reason and token_ids on chat choices and stream chunks by [@​PrabalParihar](https://github.com/PrabalParihar) in [#​48393](https://github.com/BerriAI/litellm/pull/48393) - feat(proxy)!: honor model_info.max_input_tokens in the Codex catalog for stock models by [@​tessellark](https://github.com/tessellark) in [#​49701](https://github.com/BerriAI/litellm/pull/49701) - ci: remove workflows whose secrets are dead by [@​mateo-berri](https://github.com/mateo-berri) in [#​49722](https://github.com/BerriAI/litellm/pull/49722) - test(integration): repair agent reads and bulk deletion setup by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49719](https://github.com/BerriAI/litellm/pull/49719) - test(e2e): share the coding-CLI harness between suites by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49370](https://github.com/BerriAI/litellm/pull/49370) - feat(model_info): add supports_continuation capability flag for Gemini long decode continuation by [@​jesus-berri](https://github.com/jesus-berri) in [#​49500](https://github.com/BerriAI/litellm/pull/49500) - fix(spend)!: save streamed /v1/responses spend rows under the encrypted resp\_ id the client received by [@​simonp9](https://github.com/simonp9) in [#​49493](https://github.com/BerriAI/litellm/pull/49493) - fix(cost): add deepgram/streaming/nova-3-medical and update stale Nova-3 streaming rates by [@​jesus-berri](https://github.com/jesus-berri) in [#​49733](https://github.com/BerriAI/litellm/pull/49733) - build(deps): allow huggingface-hub 2.x by [@​davanstrien](https://github.com/davanstrien) in [#​49056](https://github.com/BerriAI/litellm/pull/49056) - fix(proxy): charge budget windows when the cached key or team expired before the request ended by [@​etiennechabert](https://github.com/etiennechabert) in [#​47608](https://github.com/BerriAI/litellm/pull/47608) - fix(proxy)!: ignore stored general_settings keys no settings API manages by [@​paveln83](https://github.com/paveln83) in [#​48967](https://github.com/BerriAI/litellm/pull/48967) - fix(bedrock): reserve DeepSeek V3.2 output capacity and date GovCloud West Llama 3 by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49732](https://github.com/BerriAI/litellm/pull/49732) - test(gemini): assert vertex lists on content chunks by [@​mateo-berri](https://github.com/mateo-berri) in [#​49734](https://github.com/BerriAI/litellm/pull/49734) - fix(model-catalog): declare the thinking_on_by_default key by [@​tavren27](https://github.com/tavren27) in [#​49720](https://github.com/BerriAI/litellm/pull/49720) - fix(ui): make the off state of switches visible in light theme by [@​shrey-berri](https://github.com/shrey-berri) in [#​49718](https://github.com/BerriAI/litellm/pull/49718) - fix(proxy): preserve DB settings during config reload by [@​mateo-berri](https://github.com/mateo-berri) in [#​49735](https://github.com/BerriAI/litellm/pull/49735) - refactor(ui): move MCP text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49473](https://github.com/BerriAI/litellm/pull/49473) - refactor(ui): move guardrails text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49524](https://github.com/BerriAI/litellm/pull/49524) - refactor(ui): move agents and knowledge text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49530](https://github.com/BerriAI/litellm/pull/49530) - fix(proxy): log each endpoint's own call type on failed audio, moderation, image, and rerank spend rows by [@​paveln83](https://github.com/paveln83) in [#​49684](https://github.com/BerriAI/litellm/pull/49684) - refactor(ui): move admin and settings text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49546](https://github.com/BerriAI/litellm/pull/49546) - fix(mcp): answer bare OPTIONS on MCP routes without running LiteLLM auth by [@​jesus-berri](https://github.com/jesus-berri) in [#​49497](https://github.com/BerriAI/litellm/pull/49497) - fix(managed_files): keep the upload the managed id encodes when two target models share a deployment by [@​quietjules](https://github.com/quietjules) in [#​49420](https://github.com/BerriAI/litellm/pull/49420) - test(integration): look up streamed Responses spend rows by the client-facing id by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49752](https://github.com/BerriAI/litellm/pull/49752) - fix(gemini): resend once with the placeholder signature when the other backend rejects a replayed thought signature by [@​tavren27](https://github.com/tavren27) in [#​49697](https://github.com/BerriAI/litellm/pull/49697) - fix(vertex_ai)!: map Anthropic context overflow errors by [@​mgeorgaklis](https://github.com/mgeorgaklis) in [#​36963](https://github.com/BerriAI/litellm/pull/36963) - test(e2e): drive the Codex CLI through LiteLLM, command round trip by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49374](https://github.com/BerriAI/litellm/pull/49374) - test(e2e): add Codex file edit, long session and auto-compaction rows through LiteLLM by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49386](https://github.com/BerriAI/litellm/pull/49386) - fix(anthropic_endpoints)!: return Anthropic error envelopes on /v1/messages auth failures by [@​albertoperdomo2](https://github.com/albertoperdomo2) in [#​48466](https://github.com/BerriAI/litellm/pull/48466) - feat(anthropic): pick the beta allowlist row per deployment and surface input_transformations by [@​mika-lt](https://github.com/mika-lt) in [#​49689](https://github.com/BerriAI/litellm/pull/49689) - fix(bedrock): send native structured output for json_schema on Claude models that cannot force a tool by [@​tavren27](https://github.com/tavren27) in [#​49703](https://github.com/BerriAI/litellm/pull/49703) - test(integration): repair release qualification timing and labels by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49737](https://github.com/BerriAI/litellm/pull/49737) - fix(tool_choice): accept OpenAI allowed_tools on chat completions and flatten it for the Responses bridge by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49043](https://github.com/BerriAI/litellm/pull/49043) - fix(cost-map): give the bare gpt-4o, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini aliases their 2027-01-14 shutdown date by [@​zoveki](https://github.com/zoveki) in [#​49707](https://github.com/BerriAI/litellm/pull/49707) - fix(responses)!: authorize and decode comparison response IDs by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49402](https://github.com/BerriAI/litellm/pull/49402) - fix(spend): bill web search interception follow-ups once under the outer request by [@​mateo-berri](https://github.com/mateo-berri) in [#​49762](https://github.com/BerriAI/litellm/pull/49762) - fix(vllm): list hosted_vllm wildcard models when the server has no api key by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​40066](https://github.com/BerriAI/litellm/pull/40066) - feat(decisions): add Parallel AI web-grounded decisions by [@​devin-gupta](https://github.com/devin-gupta) in [#​49188](https://github.com/BerriAI/litellm/pull/49188) - test(messages): add rust vs python messages parity characterization suite by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​49610](https://github.com/BerriAI/litellm/pull/49610) - fix(messages): make rust messages copy python messages behaviour by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​49611](https://github.com/BerriAI/litellm/pull/49611) - feat(videos): serve custom_provider_map BaseVideoConfig providers on /v1/videos by [@​kerry-berri](https://github.com/kerry-berri) in [#​49785](https://github.com/BerriAI/litellm/pull/49785) - test(bedrock): assert native structured output when the model rejects forced tools by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49799](https://github.com/BerriAI/litellm/pull/49799) - test(spend): expect the Anthropic budget envelope on a broken messages stream by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49800](https://github.com/BerriAI/litellm/pull/49800) - fix(router)!: scope context fallback precedence to the requested group by [@​mateo-berri](https://github.com/mateo-berri) in [#​49779](https://github.com/BerriAI/litellm/pull/49779) - docs: preserve author review when updating PR summaries by [@​mateo-berri](https://github.com/mateo-berri) in [#​49803](https://github.com/BerriAI/litellm/pull/49803) - fix(embeddings): honor the caller's timeout on Cohere sync and HuggingFace embedding requests by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​48593](https://github.com/BerriAI/litellm/pull/48593) - fix(cost-map): price Mistral Large 4 at its current list price by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49814](https://github.com/BerriAI/litellm/pull/49814) - fix(anthropic): send an https PDF image_url to Claude as a document by [@​tessellark](https://github.com/tessellark) in [#​49708](https://github.com/BerriAI/litellm/pull/49708) - feat(realtime)!: support latest OpenAI audio models by [@​emerzon](https://github.com/emerzon) in [#​35600](https://github.com/BerriAI/litellm/pull/35600) - fix(cache_control)!: keep one deployment's prompt-cache opt-in from reaching siblings on the same model by [@​tessellark](https://github.com/tessellark) in [#​49685](https://github.com/BerriAI/litellm/pull/49685) - fix(bedrock)!: fail a Nova Sonic realtime session whose Bedrock stream drops instead of closing 1000 by [@​norkelbyte](https://github.com/norkelbyte) in [#​49170](https://github.com/BerriAI/litellm/pull/49170) - fix(azure_ai): keep azure_ad_token out of the request body by [@​tavren27](https://github.com/tavren27) in [#​49769](https://github.com/BerriAI/litellm/pull/49769) - fix(typesafe): mark jev-latest as answering Box questions now that it points to Jev 1.14 by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49835](https://github.com/BerriAI/litellm/pull/49835) - fix(proxy): let a config license unlock enterprise settings and spell "environment" right in license errors by [@​paveln83](https://github.com/paveln83) in [#​49745](https://github.com/BerriAI/litellm/pull/49745) - fix(logging): keep the caller's call_type when chat completions are bridged to the Responses API by [@​zoveki](https://github.com/zoveki) in [#​49710](https://github.com/BerriAI/litellm/pull/49710) - fix(anthropic)!: carry prompt_cache_breakpoint to cache_control on chat completions to Claude by [@​zoveki](https://github.com/zoveki) in [#​49783](https://github.com/BerriAI/litellm/pull/49783) - fix(proxy): list slash-less wildcard groups like claude-\* on /v1/models and /model/info by [@​tessellark](https://github.com/tessellark) in [#​49832](https://github.com/BerriAI/litellm/pull/49832) - fix(gemini): lower the gemini-3.5-flash-lite batch cache price and date the gemini-2.5-pro and 2.5-flash shutdown by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49871](https://github.com/BerriAI/litellm/pull/49871) - fix(vertex-ai): drop batch prices from gemini-robotics-er-2-preview by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49895](https://github.com/BerriAI/litellm/pull/49895) - fix(spend): read only the newest rows when paging sessions by [@​shrey-berri](https://github.com/shrey-berri) in [#​48886](https://github.com/BerriAI/litellm/pull/48886) - fix(model_prices): consolidate verified provider metadata and pricing by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49361](https://github.com/BerriAI/litellm/pull/49361) - feat(model-catalog): read successor_model, the provider's recommended replacement for a deprecating row by [@​kerry-berri](https://github.com/kerry-berri) in [#​49791](https://github.com/BerriAI/litellm/pull/49791) - refactor(ui): move teams, users and orgs text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49484](https://github.com/BerriAI/litellm/pull/49484) - fix(proxy): defer optional Prisma imports in SSO settings by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49771](https://github.com/BerriAI/litellm/pull/49771) - fix(e2e): restore main qualification across providers and UI by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49763](https://github.com/BerriAI/litellm/pull/49763) - fix(proxy): omit cost headers for unpriced responses by [@​joshua-berri](https://github.com/joshua-berri) in [#​49467](https://github.com/BerriAI/litellm/pull/49467) - feat(cost-map): record the provider's recommended replacement as successor_model on deprecating rows and report it from /model/deprecations by [@​kerry-berri](https://github.com/kerry-berri) in [#​49789](https://github.com/BerriAI/litellm/pull/49789) - revert(bedrock): restore STS identity checks before [#​49763](https://github.com/BerriAI/litellm/issues/49763) by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49939](https://github.com/BerriAI/litellm/pull/49939) - feat(ui): show user names instead of raw ids on detail pages by [@​jesus-berri](https://github.com/jesus-berri) in [#​47181](https://github.com/BerriAI/litellm/pull/47181) - fix(proxy): cancel /team/spend/by_user in Postgres after 30s by [@​kerry-berri](https://github.com/kerry-berri) in [#​49922](https://github.com/BerriAI/litellm/pull/49922) - fix(rate-limit): estimate embedding image and audio data URIs as media in TPM pre-call checks by [@​norkelbyte](https://github.com/norkelbyte) in [#​49831](https://github.com/BerriAI/litellm/pull/49831) - feat(model-catalog): read deprecation_source, the provider page or feed a row's deprecation_date was read from by [@​kerry-berri](https://github.com/kerry-berri) in [#​49955](https://github.com/BerriAI/litellm/pull/49955) - feat(model-catalog): add fedramp_uplift_multiplier by [@​kerry-berri](https://github.com/kerry-berri) in [#​49950](https://github.com/BerriAI/litellm/pull/49950) - feat(proxy): add general_settings.fips_mode startup gate by [@​yucheng-berri](https://github.com/yucheng-berri) in [#​48600](https://github.com/BerriAI/litellm/pull/48600) - feat(ui): rebuild the command palette on shadcn Command by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49528](https://github.com/BerriAI/litellm/pull/49528) - test(mcp): hold the progress test's upstream notification acks until they are dispatched by [@​joshua-berri](https://github.com/joshua-berri) in [#​49967](https://github.com/BerriAI/litellm/pull/49967) - feat(cost-map): record deprecation_source on every dated row that has a known provider notice by [@​kerry-berri](https://github.com/kerry-berri) in [#​49968](https://github.com/BerriAI/litellm/pull/49968) - chore(blog): refresh the bundled blog posts backup with the latest 50 posts from the docs RSS feed by [@​kerry-berri](https://github.com/kerry-berri) in [#​49971](https://github.com/BerriAI/litellm/pull/49971) - fix(main)!: carry the full per-call price entry on the logging object instead of writing litellm.model_cost by [@​kerry-berri](https://github.com/kerry-berri) in [#​49532](https://github.com/BerriAI/litellm/pull/49532) - fix(vertex-ai): sync tier prices and retirement floors by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49964](https://github.com/BerriAI/litellm/pull/49964) - fix(proxy): cancel the Admin UI's raw spend-log reads in Postgres after 30s by [@​kerry-berri](https://github.com/kerry-berri) in [#​49965](https://github.com/BerriAI/litellm/pull/49965) - feat(proxy): configure the request header buffer size by [@​mrinal-berri](https://github.com/mrinal-berri) in [#​49883](https://github.com/BerriAI/litellm/pull/49883) - fix(router): keep a deployment's token limits off the shared backend cost map key by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49952](https://github.com/BerriAI/litellm/pull/49952) - fix(credentials): preserve stored info when patching credentials by [@​mateo-berri](https://github.com/mateo-berri) in [#​49919](https://github.com/BerriAI/litellm/pull/49919) - feat: add Wally as an OpenAI-compatible provider by [@​adityabatra072](https://github.com/adityabatra072) in [#​45662](https://github.com/BerriAI/litellm/pull/45662) - chore(cost-map): remove the 52 rows whose provider retired them before 2026 by [@​kerry-berri](https://github.com/kerry-berri) in [#​49974](https://github.com/BerriAI/litellm/pull/49974) - feat(auth): add link-only JWT mapping and remove route eligibility filtering by [@​mrinal-berri](https://github.com/mrinal-berri) in [#​49956](https://github.com/BerriAI/litellm/pull/49956) - fix(bedrock): map token counting on the alias Claude Sonnet 4.5 and Haiku 4.5 rows to bedrock-runtime by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49981](https://github.com/BerriAI/litellm/pull/49981) - fix(ui): send only shown SSO fields when editing, and keep env-row SSO values behind a blank stored value by [@​jesus-berri](https://github.com/jesus-berri) in [#​49973](https://github.com/BerriAI/litellm/pull/49973) - ci: run the OSV scan on rc branches by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49987](https://github.com/BerriAI/litellm/pull/49987) - fix(anthropic): answer an upstream Anthropic 529 as 529 overloaded_error on /v1/messages by [@​mateo-berri](https://github.com/mateo-berri) in [#​46063](https://github.com/BerriAI/litellm/pull/46063) - fix(agentic)!: surface a failed agentic follow-up call instead of the pre-loop tool call by [@​tavren27](https://github.com/tavren27) in [#​49227](https://github.com/BerriAI/litellm/pull/49227) - feat(ui): rebuild the public AI Hub as a searchable list with a details pane by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49496](https://github.com/BerriAI/litellm/pull/49496) - feat(mcp): add an opt-in per-server setting to skip MCP tool output validation by [@​shrey-berri](https://github.com/shrey-berri) in [#​49961](https://github.com/BerriAI/litellm/pull/49961) - refactor(cache): remove experimental Redis and v2 caches by [@​yujonglee-berri](https://github.com/yujonglee-berri) in [#​50005](https://github.com/BerriAI/litellm/pull/50005) - test(spend): give the session pages EXPLAIN double the read transaction spend log reads now use by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49996](https://github.com/BerriAI/litellm/pull/49996) - test(responses): keep the background status poller out of the cancel wire test by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50002](https://github.com/BerriAI/litellm/pull/50002) - fix(cost-map): add successor_model to seven retiring together_ai rows by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50026](https://github.com/BerriAI/litellm/pull/50026) - feat(ui): redesign the dashboard top bar and give Aria its own page by [@​moe-berri](https://github.com/moe-berri) in [#​50009](https://github.com/BerriAI/litellm/pull/50009) - feat(skills): upload local skill ZIPs from the dashboard by [@​tin-berri](https://github.com/tin-berri) in [#​50008](https://github.com/BerriAI/litellm/pull/50008) - refactor: clean up fresh tech debt in proxy auth reads, chatgpt credential forwarding, messages drop_params reads, router context signatures and spend log reads by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​46643](https://github.com/BerriAI/litellm/pull/46643) - chore(azure): cite ada retirement schedule by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50044](https://github.com/BerriAI/litellm/pull/50044) - chore(proxy): use neutral example names for baggage tag mappings by [@​mateo-berri](https://github.com/mateo-berri) in [#​50011](https://github.com/BerriAI/litellm/pull/50011) - chore(cost-map): rolling registry sync for xAI, Fireworks, Azure and Gemini by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50028](https://github.com/BerriAI/litellm/pull/50028) - fix(gemini): point gemini-2.5-pro and gemini-2.5-flash at the models Google reroutes them to by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50064](https://github.com/BerriAI/litellm/pull/50064) - feat(cost-map): add together_ai/moonshotai/Kimi-K3.1-Pro from the Together models API by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50069](https://github.com/BerriAI/litellm/pull/50069) - feat(openai): bill gov.api.openai.com FedRAMP endpoint with 1.1x uplift by [@​kerry-berri](https://github.com/kerry-berri) in [#​49951](https://github.com/BerriAI/litellm/pull/49951) - test(e2e): retire the quiet_stack lock and batch the claude_code model registration by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49984](https://github.com/BerriAI/litellm/pull/49984) - fix(logging): don't leak redacted reasoning via provider_specific_fields by [@​alchemicjon](https://github.com/alchemicjon) in [#​47398](https://github.com/BerriAI/litellm/pull/47398) - refactor: replace accounting event scaffolding with SpendLogs projection by [@​joshua-berri](https://github.com/joshua-berri) in [#​49843](https://github.com/BerriAI/litellm/pull/49843) - test(perf): remove the database_upgrade_5rps e2e case and its harness tests by [@​kerry-berri](https://github.com/kerry-berri) in [#​50076](https://github.com/BerriAI/litellm/pull/50076) - feat(decisions): add EmpirioLabs AI as a decisions provider by [@​kerry-berri](https://github.com/kerry-berri) in [#​49977](https://github.com/BerriAI/litellm/pull/49977) - fix(router): stamp the failed deployment on every endpoint's attempt by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​49941](https://github.com/BerriAI/litellm/pull/49941) - refactor(ui): move keys, projects and cost text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49994](https://github.com/BerriAI/litellm/pull/49994) - refactor(ui): move logs and usage text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49992](https://github.com/BerriAI/litellm/pull/49992) - refactor(ui): move playground and chat text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​49991](https://github.com/BerriAI/litellm/pull/49991) - test(integration): poll for the cached JWT rejection sentinel instead of a single Redis read by [@​mrinal-berri](https://github.com/mrinal-berri) in [#​50014](https://github.com/BerriAI/litellm/pull/50014) - ci: run the OSV scan and unit tests on stable, rc and lts branches by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50086](https://github.com/BerriAI/litellm/pull/50086) - feat: update EmpirioLabs models in model_prices_and_context_window\.json by [@​kerry-berri](https://github.com/kerry-berri) in [#​49980](https://github.com/BerriAI/litellm/pull/49980) - fix(proxy): charge a video's provider-reported cost once, on the first poll that sees it completed by [@​tessellark](https://github.com/tessellark) in [#​49824](https://github.com/BerriAI/litellm/pull/49824) - chore(cost-map): add fireworks kimi k3.1 pro serverless pricing by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50095](https://github.com/BerriAI/litellm/pull/50095) - fix(guardrails)!: check Anthropic and Responses request tools in tool_permission pre_call by [@​meryemsakin](https://github.com/meryemsakin) in [#​41011](https://github.com/BerriAI/litellm/pull/41011) - fix(azure)!: answer 401 when Entra rejects the deployment's credential by [@​zoveki](https://github.com/zoveki) in [#​49863](https://github.com/BerriAI/litellm/pull/49863) - feat(cost-map): add baseten Kimi-K3.1-Pro by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50093](https://github.com/BerriAI/litellm/pull/50093) - test(observability): reserve sink port throughout outage by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50100](https://github.com/BerriAI/litellm/pull/50100) - chore(databricks): add retirement successors and kimi-k2-7 retirement date from the Databricks retired models page by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50094](https://github.com/BerriAI/litellm/pull/50094) - chore(cost-map): openai context fixes, azure gpt-6 flex pricing, bedrock govcloud and gmi rows by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50082](https://github.com/BerriAI/litellm/pull/50082) - fix(responses): keep the system prompt in input for json_object on the chat to responses bridge by [@​mrinal-berri](https://github.com/mrinal-berri) in [#​49957](https://github.com/BerriAI/litellm/pull/49957) - feat(proxy): authenticate billing metrics with a cognito bearer token by [@​yassin-berriai](https://github.com/yassin-berriai) in [#​49852](https://github.com/BerriAI/litellm/pull/49852) - test(skills): drop the archive rejection test whose zip-byte ids differ across xdist workers by [@​kerry-berri](https://github.com/kerry-berri) in [#​50118](https://github.com/BerriAI/litellm/pull/50118) - fix(bedrock): remove GovCloud Kimi K3 bedrock_mantle rows by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50117](https://github.com/BerriAI/litellm/pull/50117) - fix(auth): align cloud credential loading and expiry with the Python SDKs by [@​yujonglee-berri](https://github.com/yujonglee-berri) in [#​49589](https://github.com/BerriAI/litellm/pull/49589) - test: make three flaky unit tests deterministic by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50114](https://github.com/BerriAI/litellm/pull/50114) - ci(unit): stop the full history clone on the db-and-spend shard, fetch the schema merge base by sha by [@​kerry-berri](https://github.com/kerry-berri) in [#​50120](https://github.com/BerriAI/litellm/pull/50120) - fix(bedrock): backfill GovCloud service-tier prices by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50121](https://github.com/BerriAI/litellm/pull/50121) - fix(github_copilot): let per-user connections work with a custom GitHub client ID by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​50116](https://github.com/BerriAI/litellm/pull/50116) - fix(guardrails): apply guardrail masks to Bedrock InvokeModel Claude requests and replies by [@​shrey-berri](https://github.com/shrey-berri) in [#​49947](https://github.com/BerriAI/litellm/pull/49947) - fix(cost): bill Batch cached tokens at the Standard cache price when a row has no Batch cache price by [@​kerry-berri](https://github.com/kerry-berri) in [#​50062](https://github.com/BerriAI/litellm/pull/50062) - fix(cost_calculator): keep regional and speed multipliers for per-call custom prices and log the billed per-call entry by [@​kerry-berri](https://github.com/kerry-berri) in [#​50063](https://github.com/BerriAI/litellm/pull/50063) - chore(cost-map): add openai gpt-image-2.6-sunburst and gpt-image-2.6-flare from the pricing page by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50134](https://github.com/BerriAI/litellm/pull/50134) - fix(least-busy): reserve the picked deployment so a burst of requests spreads out by [@​tc3oliver](https://github.com/tc3oliver) in [#​47484](https://github.com/BerriAI/litellm/pull/47484) - fix(proxy): answer an upstream overload with 503 server_is_overloaded on OpenAI routes by [@​mateo-berri](https://github.com/mateo-berri) in [#​49993](https://github.com/BerriAI/litellm/pull/49993) - fix(bedrock): add GovCloud Kimi, Haiku and Grok prices by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50128](https://github.com/BerriAI/litellm/pull/50128) - refactor(ui): move shell, entry and public hub text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50110](https://github.com/BerriAI/litellm/pull/50110) - refactor(ui): move models text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50112](https://github.com/BerriAI/litellm/pull/50112) - fix(azure): strip output-only reasoning content from Responses input by [@​qibinjin](https://github.com/qibinjin) in [#​50046](https://github.com/BerriAI/litellm/pull/50046) - chore(cost-map): add openai batch image output prices from the pricing page by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50138](https://github.com/BerriAI/litellm/pull/50138) - fix(proxy): treat Postgres restart and shutdown errors as DB unavailable, not poison spend-log rows by [@​kerry-berri](https://github.com/kerry-berri) in [#​50132](https://github.com/BerriAI/litellm/pull/50132) - feat(accounting): add opt-in SpendLogs ledger by [@​joshua-berri](https://github.com/joshua-berri) in [#​49856](https://github.com/BerriAI/litellm/pull/49856) - fix(ui): send a team admin's member key edits on the first save by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50007](https://github.com/BerriAI/litellm/pull/50007) - fix(nvidia_riva): send the api key exactly once by calling riva over grpc directly by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​50140](https://github.com/BerriAI/litellm/pull/50140) - fix(ui): let team admins edit models on team service account keys by [@​jesus-berri](https://github.com/jesus-berri) in [#​49970](https://github.com/BerriAI/litellm/pull/49970) - fix(cost_map): fill missing Claude capability fields from the family baseline by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49815](https://github.com/BerriAI/litellm/pull/49815) - feat(ui): show model deprecation banner on the models page by [@​krrish-berri-2](https://github.com/krrish-berri-2) in [#​50080](https://github.com/BerriAI/litellm/pull/50080) - test(routing): expect 503 server_is_overloaded for an upstream overload by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50155](https://github.com/BerriAI/litellm/pull/50155) - test(providers): expect 503 server_is_overloaded for an upstream overload by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50154](https://github.com/BerriAI/litellm/pull/50154) - feat(proxy): add model deprecation alerts with daily requests by key by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​50022](https://github.com/BerriAI/litellm/pull/50022) - fix(bedrock)!: keep Claude's thinking when response_format json_schema is set by [@​quietjules](https://github.com/quietjules) in [#​49696](https://github.com/BerriAI/litellm/pull/49696) - refactor(proxy)!: drop the unused accounting event tables by [@​joshua-berri](https://github.com/joshua-berri) in [#​49923](https://github.com/BerriAI/litellm/pull/49923) - chore(cost-map): add together_ai ricursive-ai/Ripple-65B-Preview from the Together models API by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50163](https://github.com/BerriAI/litellm/pull/50163) - feat(ui)!: redesign public AI Hub as a catalog by [@​tin-berri](https://github.com/tin-berri) in [#​50153](https://github.com/BerriAI/litellm/pull/50153) - feat(alerts): show recommended model provenance and provider notices by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​50162](https://github.com/BerriAI/litellm/pull/50162) - test(providers): expect 503 server_is_overloaded for an upstream overload on the responses bridge by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50166](https://github.com/BerriAI/litellm/pull/50166) - refactor(ui): align Chat with dashboard styling by [@​moe-berri](https://github.com/moe-berri) in [#​50034](https://github.com/BerriAI/litellm/pull/50034) - feat(router): add the Rust router core with the host as its only boundary by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​49513](https://github.com/BerriAI/litellm/pull/49513) - test(translation): expect thinking usage fields on Bedrock chat by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50175](https://github.com/BerriAI/litellm/pull/50175) - test(translation): expect thinking usage fields on Bedrock messages by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50179](https://github.com/BerriAI/litellm/pull/50179) - fix(mistral): a named tool_choice is dropped, the model picks any tool by [@​pasqualtroncone](https://github.com/pasqualtroncone) in [#​39737](https://github.com/BerriAI/litellm/pull/39737) - test(translation): expect thinking usage fields on Bedrock responses by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50181](https://github.com/BerriAI/litellm/pull/50181) - feat(skills)!: add portable Agent Skills Hub API by [@​tin-berri](https://github.com/tin-berri) in [#​50159](https://github.com/BerriAI/litellm/pull/50159) - feat: email affected owners before model deprecations by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​50172](https://github.com/BerriAI/litellm/pull/50172) - feat(skills)!: add portable version history by [@​tin-berri](https://github.com/tin-berri) in [#​50152](https://github.com/BerriAI/litellm/pull/50152) - feat(skills)!: add portable submissions and admin review by [@​tin-berri](https://github.com/tin-berri) in [#​50160](https://github.com/BerriAI/litellm/pull/50160) - fix(usage): restore per-user spend breakdown on the user aggregated route by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​49464](https://github.com/BerriAI/litellm/pull/49464) - feat(skills): add optional manual security scans by [@​tin-berri](https://github.com/tin-berri) in [#​50194](https://github.com/BerriAI/litellm/pull/50194) - feat(skills): show download counts and history by [@​tin-berri](https://github.com/tin-berri) in [#​50165](https://github.com/BerriAI/litellm/pull/50165) - fix(cost-map): add Gemini Flex long prompt prices, Live grounding prices, seven GMI rows and EmpirioLabs page prices by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50208](https://github.com/BerriAI/litellm/pull/50208) - feat(accounting)!: make the SpendLogs ledger the default accounting path by [@​joshua-berri](https://github.com/joshua-berri) in [#​49872](https://github.com/BerriAI/litellm/pull/49872) - test(integration): stop the wire peer from dropping requests whose bytes arrive late by [@​tessellark](https://github.com/tessellark) in [#​49889](https://github.com/BerriAI/litellm/pull/49889) - feat(vertex-ai): add published gemini omni 1.2 flash pricing and limits by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50227](https://github.com/BerriAI/litellm/pull/50227) - docs(pr-template): drop the make-me-human-readable tags from the handwritten description by [@​mateo-berri](https://github.com/mateo-berri) in [#​50183](https://github.com/BerriAI/litellm/pull/50183) - fix(github-copilot): send the GitHub token directly instead of exchanging it by [@​mateo-berri](https://github.com/mateo-berri) in [#​50126](https://github.com/BerriAI/litellm/pull/50126) - fix(openai): never send OPENAI_ADMIN_KEY as the bearer token for a deployment without an api_key by [@​kerry-berri](https://github.com/kerry-berri) in [#​50218](https://github.com/BerriAI/litellm/pull/50218) - fix(accounting): keep spend commits working when prometheus_client is not installed by [@​joshua-berri](https://github.com/joshua-berri) in [#​50230](https://github.com/BerriAI/litellm/pull/50230) - refactor(router): delete the python router core by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50178](https://github.com/BerriAI/litellm/pull/50178) - feat(gemini): add Omni 1.2 Flash pricing and update video model successors by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50229](https://github.com/BerriAI/litellm/pull/50229) - feat(gateway): forward HTTP requests to the Python proxy by [@​yujonglee-berri](https://github.com/yujonglee-berri) in [#​49604](https://github.com/BerriAI/litellm/pull/49604) - chore(cost-map): rolling registry audit, add gpt-6-cyber, Kimi K3.1 Pro rows, Jina rerankers and capability flags by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50245](https://github.com/BerriAI/litellm/pull/50245) - test(skills): assert patch publication and serialize preference writes by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50252](https://github.com/BerriAI/litellm/pull/50252) - test(usage): assert per-user entity spend and metadata by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50251](https://github.com/BerriAI/litellm/pull/50251) - refactor(bedrock): drop the redundant $defs deep copy in tool conversion by [@​mateo-berri](https://github.com/mateo-berri) in [#​50240](https://github.com/BerriAI/litellm/pull/50240) - fix(openai): add gpt-6-cyber max input tokens and the gpt-5.5-cyber-preview shutdown date by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50254](https://github.com/BerriAI/litellm/pull/50254) - fix(anthropic): report temperature/top_p as supported only when the model keeps them by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​50144](https://github.com/BerriAI/litellm/pull/50144) - refactor(ui): move remaining logs and usage text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50146](https://github.com/BerriAI/litellm/pull/50146) - refactor(ui): move remaining models text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50147](https://github.com/BerriAI/litellm/pull/50147) - refactor(ui): move remaining shell and nav text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50148](https://github.com/BerriAI/litellm/pull/50148) - refactor(ui): move remaining keys, teams and agents text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50238](https://github.com/BerriAI/litellm/pull/50238) - refactor(ui): move remaining playground, chat and compliance text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50239](https://github.com/BerriAI/litellm/pull/50239) - refactor(ui): move remaining Aria and admin text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50242](https://github.com/BerriAI/litellm/pull/50242) - fix(zscaler_ai_guard)!: scan only the last user turn on requests by [@​yucheng-berri](https://github.com/yucheng-berri) in [#​50139](https://github.com/BerriAI/litellm/pull/50139) - docs(pr-template): require rerunnable proof setup and collapsed long output by [@​mateo-berri](https://github.com/mateo-berri) in [#​50258](https://github.com/BerriAI/litellm/pull/50258) - feat(bedrock): add us-gov.xai.grok-4.7 GovCloud pricing by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50288](https://github.com/BerriAI/litellm/pull/50288) - fix(bedrock): add GovCloud Grok 4.7 batch prices by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50291](https://github.com/BerriAI/litellm/pull/50291) - test(router): expect no fallback errors header for non-bool include_fallback_errors by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50259](https://github.com/BerriAI/litellm/pull/50259) - fix(router): do not cool down a deployment on a 404 from a response id lookup by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50262](https://github.com/BerriAI/litellm/pull/50262) - test(copilot): align login guards with direct access tokens by [@​mateo-berri](https://github.com/mateo-berri) in [#​50285](https://github.com/BerriAI/litellm/pull/50285) - feat(interactions): forward continuation_token and type requires_continuation so callers can resume a long decode by [@​kerry-berri](https://github.com/kerry-berri) in [#​50151](https://github.com/BerriAI/litellm/pull/50151) - fix(router): keep the request's metadata on rust core fallback hop kwargs by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50263](https://github.com/BerriAI/litellm/pull/50263) - fix(router): retry a team wildcard under the provider-prefixed name by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50264](https://github.com/BerriAI/litellm/pull/50264) - fix(responses): preserve native stream spend on guardrail rejection by [@​mateo-berri](https://github.com/mateo-berri) in [#​50286](https://github.com/BerriAI/litellm/pull/50286) - fix(router): give the rust core's priority scheduler the router's redis cache by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50265](https://github.com/BerriAI/litellm/pull/50265) - refactor(ui): move alerts page text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50271](https://github.com/BerriAI/litellm/pull/50271) - fix(router): write the prompt caching pin when turn_off_message_logging is on by [@​kerry-berri](https://github.com/kerry-berri) in [#​50276](https://github.com/BerriAI/litellm/pull/50276) - test(router): expect a primary stream's stall to cool its deployment by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50261](https://github.com/BerriAI/litellm/pull/50261) - fix(types): define the responses compact call types for during_call guardrails and deployment hooks by [@​kerry-berri](https://github.com/kerry-berri) in [#​50274](https://github.com/BerriAI/litellm/pull/50274) - fix(router-core): read time through the router's clock when routing by [@​narmstrong-berri](https://github.com/narmstrong-berri) in [#​50295](https://github.com/BerriAI/litellm/pull/50295) - feat(databricks): add databricks-kimi-k3-1-pro pricing by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50303](https://github.com/BerriAI/litellm/pull/50303) - fix(azure): sync model retirement dates by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50296](https://github.com/BerriAI/litellm/pull/50296) - feat(packaging): build litellm-proxy gateway wheels by [@​yujonglee-berri](https://github.com/yujonglee-berri) in [#​49605](https://github.com/BerriAI/litellm/pull/49605) - feat(skills): add authenticated install and share commands by [@​tin-berri](https://github.com/tin-berri) in [#​50211](https://github.com/BerriAI/litellm/pull/50211) - fix(router): let type checkers see the real Router constructor arguments by [@​mateo-berri](https://github.com/mateo-berri) in [#​50278](https://github.com/BerriAI/litellm/pull/50278) - fix(ui): keep chat text sent back to the model in English by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50304](https://github.com/BerriAI/litellm/pull/50304) - build(deps): bump [@​azure/msal-node](https://github.com/azure/msal-node) to 7.x in vscode-extension to clear osv-scan by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50198](https://github.com/BerriAI/litellm/pull/50198) - feat(skills): add sortable Skills Hub catalog and publication audit by [@​tin-berri](https://github.com/tin-berri) in [#​50195](https://github.com/BerriAI/litellm/pull/50195) - fix(ui): center the deployment health banner icon on its title by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50302](https://github.com/BerriAI/litellm/pull/50302) - fix(users)!: validate custom IDs and reject concurrent duplicate creation by [@​mrinal-berri](https://github.com/mrinal-berri) in [#​49748](https://github.com/BerriAI/litellm/pull/49748) - feat(ui): allow custom user IDs in user invitations by [@​mrinal-berri](https://github.com/mrinal-berri) in [#​49749](https://github.com/BerriAI/litellm/pull/49749) - feat(bedrock): default to native structured output on Opus 5 and Opus 4.8 by [@​mateo-berri](https://github.com/mateo-berri) in [#​50222](https://github.com/BerriAI/litellm/pull/50222) - refactor(prompt_templates): move JSON schema helpers out of common_utils into json_schema_utils by [@​mateo-berri](https://github.com/mateo-berri) in [#​50241](https://github.com/BerriAI/litellm/pull/50241) - test(copilot): seed direct access tokens in Copilot wire fixtures by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50307](https://github.com/BerriAI/litellm/pull/50307) - fix(proxy): probe scrypt instead of MD5 in the fips_mode OpenSSL check by [@​yucheng-berri](https://github.com/yucheng-berri) in [#​50305](https://github.com/BerriAI/litellm/pull/50305) - feat(ui): add a beta language setting to the account menu by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50309](https://github.com/BerriAI/litellm/pull/50309) - fix(router): drop supports_web_search false deployments for Anthropic web_search\_\* and Gemini googleSearch tools by [@​kerry-berri](https://github.com/kerry-berri) in [#​50275](https://github.com/BerriAI/litellm/pull/50275) - fix(audio-transcription): keep transcripts out of transcription error messages by [@​qtim0](https://github.com/qtim0) in [#​50137](https://github.com/BerriAI/litellm/pull/50137) - feat(proxy)!: only let clients pick S3 buckets the admin allowed by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​47496](https://github.com/BerriAI/litellm/pull/47496) - feat(redis): rust Redis foundation with no runtime change by [@​yujonglee-berri](https://github.com/yujonglee-berri) in [#​50169](https://github.com/BerriAI/litellm/pull/50169) - feat(proxy): give Codex accurate model entries for every model in /v1/models by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49825](https://github.com/BerriAI/litellm/pull/49825) - feat(spend-logs): opt-in latest_turn mode that stores only the current turn of stateless requests by [@​jesus-berri](https://github.com/jesus-berri) in [#​49544](https://github.com/BerriAI/litellm/pull/49544) - feat(team): let default_team_params attach access_group_ids to every new team by [@​jesus-berri](https://github.com/jesus-berri) in [#​49908](https://github.com/BerriAI/litellm/pull/49908) - test(e2e): add a Codex row that calls a local MCP tool on a first and a resumed turn by [@​ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#​49817](https://github.com/BerriAI/litellm/pull/49817) - refactor(ui): move remaining outlier text onto i18n by [@​yuneng-berri](https://github.com/yuneng-berri) in [#​50312](https://github.com/BerriAI/litellm/pull/50312) - fix(terraform): drop out-of-band deleted litellm_key from state and treat its 404 on delete as gone by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​47877](https://github.com/BerriAI/litellm/pull/47877) - chore(cost-map): source fireworks deprecations and replacement models by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50334](https://github.com/BerriAI/litellm/pull/50334) - feat(ui): set tpm_limit and rpm_limit on tags from the Admin UI by [@​kerry-berri](https://github.com/kerry-berri) in [#​50314](https://github.com/BerriAI/litellm/pull/50314) - test(bedrock_mantle): expect the generic unsupported-param 400 for temperature on fixed-sampling Claude by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50344](https://github.com/BerriAI/litellm/pull/50344) - feat(redis): serve the proxy's common Redis call with Rust stores by [@​yujonglee-berri](https://github.com/yujonglee-berri) in [#​50170](https://github.com/BerriAI/litellm/pull/50170) - fix(bedrock): forward the per-turn-control beta to Bedrock Invoke by [@​Scott-Wilson-ZocDoc](https://github.com/Scott-Wilson-ZocDoc) in [#​43086](https://github.com/BerriAI/litellm/pull/43086) - test(e2e): wait for saved MCP credentials before deleting the server by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50366](https://github.com/BerriAI/litellm/pull/50366) - fix(vertex_ai): honor vertex_location for the Cloud Text-to-Speech endpoint by [@​julienparenti](https://github.com/julienparenti) in [#​50255](https://github.com/BerriAI/litellm/pull/50255) - fix(ui): simplify the collapsed workspace dropdown by [@​moe-berri](https://github.com/moe-berri) in [#​50369](https://github.com/BerriAI/litellm/pull/50369) - fix(ui): support custom model provider logos ([#​50056](https://github.com/BerriAI/litellm/issues/50056)) by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​50371](https://github.com/BerriAI/litellm/pull/50371) - build(deps): bump oauthlib to 4.0.1 and lock filelock 4.2.4 on 3.11+ and 3.20.3 on 3.10 to clear osv-scan by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​49204](https://github.com/BerriAI/litellm/pull/49204) - feat(proxy): hash UI passwords with PBKDF2 in FIPS mode by [@​yucheng-berri](https://github.com/yucheng-berri) in [#​49874](https://github.com/BerriAI/litellm/pull/49874) - fix(proxy): discover models for LiteLLM Gateway wildcard providers by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​50374](https://github.com/BerriAI/litellm/pull/50374) - build(deps): keep Python 3.10 osv-scan suppressions until 2027-02-01 by [@​devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#​50386](https://github.com/BerriAI/litellm/pull/50386) - fix(anthropic): default Responses JSON-schema strictness ([#​50023](https://github.com/BerriAI/litellm/issues/50023)) by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​50375](https://github.com/BerriAI/litellm/pull/50375) - fix(anthropic): preserve Azure Responses reasoning replay ([#​50024](https://github.com/BerriAI/litellm/issues/50024)) by [@​ishaan-j-berri](https://github.com/ishaan-j-berri) in [#​50381](https://github.com/BerriAI/litellm/pull/50381) - feat: add OpenRouter-style -latest model aliases for first-party providers by [@​moe-berri](https://github.com/moe-berri) in [#​50315](https://github.com/BerriAI/litellm/pull…
Handwritten 1-3 sentence description
<make-me-human-readable>Apps that keep one full list of tools and only allow a few of them on a given step could not do that through LiteLLM, because chat completions rejected OpenAI's
allowed_toolstool choice with a 400. This accepts it, forwards it on OpenAI and Azure, rewrites it into the layout the Responses API expects when a chat request is routed there, and keeps a clear 400 on providers that would quietly ignore the restriction</make-me-human-readable>Details
TLDR
User Flow
Before: an app restricting one step of an Azure GPT agent to two of its four tools gets a 400 from the gateway
tool_choice: {"type": "allowed_tools", "allowed_tools": {"mode": "required", "tools": [get_time, get_population]}}Invalid tool choice ... Please ensure tool_choice follows the OpenAI specbefore calling Azure, with or without"stream": trueAfter: the same request works, and the model only calls the allowed tools
get_timeorget_population, neverget_weatherorbook_flight, inautoandrequiredmode, streaming or nottool_choice type 'allowed_tools' is only supported for azure, litellm_proxy, openaiRelevant issues
Supersedes #43145
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Same setup on both sides. Each checkout ran from a
git archivecopy withpython litellm/proxy/proxy_cli.py --config qa_config.yaml --num_workers 2 --detailed_debug --reload --use_v2_migration_resolver, two worker PIDs serving each time, androuter_settingsplusgeneral_settings.coordination_redispointed at one dedicated local Redis on port 6493. No database, since nothing here touches it. Before ran on port 4931 and After on 4932The config is a trimmed copy of
dev_config.yaml(drop_params: true, master key) with three models.azure-gpt-6.1-sol-responsesisazure/responses/gpt-6.1-solandazure-gpt-6.1-sol-chatis plainazure/gpt-6.1-sol, both on a real Azure OpenAI resource withapi_version: 2025-04-01-preview.gpt-6.1-solis the newest GPT deployed there. LiteLLM sends both Azure models to Azure's/openai/responsesonce tools are in the request, so both go through the bridge this PR fixes.claude-sonnet-5-5isanthropic/claude-sonnet-5-5with a fake key, which is fine because the 400 fires before any request leaves the proxyEvery request carries a four-tool catalog (
get_weather,get_time,get_population,book_flight) and a prompt that asks for the weather, the time and the population of Paris. The restriction only allowsget_timeandget_population, so a call toget_weatherwould mean it was not enforcedA small Python client sends that request for
modeauto and required, withstreamfalse and true. For each of the four runs it sends the tool results back for a second restricted turn, then a third turn withtool_choice: "none"to get the final answer. It then sends a malformed and a conflicting restriction to the Responses model, and one restricted request each to the plain Azure model and ClaudeBefore (4187e1a, merge base)
Azure through the Responses API, full tool workflow
python qa_allowed_tools.py 4931Malformed and conflicting restrictions
Invalid tool choice ... Please ensure tool_choice follows the OpenAI spec400Plain Azure model and Claude
azure-gpt-6.1-sol-chat(stream false and true) andclaude-sonnet-5-5all get the same generic 400The proxy log for this run has zero
POST Request Sent from LiteLLMlinesAfter (48d4b99)
The current tip 257ad68 adds one commit after this run. It only changes Azure deployments on an
api_versionbefore 2023-12-01, which these runs (on 2025-04-01-preview) never reach, and its unit tests cover that pathAzure through the Responses API, full tool workflow
python qa_allowed_tools.py 4932--detailed_debug"POST Request Sent from LiteLLM" lines (URLhttps://<resource>.openai.azure.com/openai/responses?api-version=2025-04-01-preview). The catalog stays complete, the restriction is flat, and the mode survivesMalformed and conflicting restrictions
get_timeand a nestedget_weatheris left untouched instead of guessing which one wins. Azure receives the original nested choice and rejects it, which is also what Azure does with any unflattened chat layoutPlain Azure model and Claude
SDK
litellm.completion(model="azure/responses/gpt-6.1-sol", tools=<same four>, tool_choice=<same restriction>, parallel_tool_calls=False, stream=...)with the prompt "What's the weather in Paris right now? Use a tool.", run from each checkoutBadRequestError: Invalid tool choiceon the first call, and After printscaller_inputs_unchangedcompares the caller'stool_choiceandtoolsagainst deep copies taken before the callType
🐛 Bug Fix
Caveats (if any)
Medium
openai/models on a customapi_base(vLLM, LM Studio) still get the restriction, which they may ignoreazure_aikeep today's 400Low
tool_choice, same as main for a named choicetype: allowed_toolsplus afunctionkey now gets a 400. OpenAI rejects that shape tooapi_versionbefore 2023-12-01 now gives a 400 forallowed_toolseven withdrop_params, since dropping it would widen the toolsifpushedcompletion()past basedpyright's analysis limitFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/79024b09bd034e379eca0c2aecee8d9e
Open in Devin Desktop: https://app.devin.ai/desktop/session/79024b09bd034e379eca0c2aecee8d9e?variant=devin
Requested by: @ryan-crabbe-berri