Repository navigation
fix(rate-limit): estimate embedding image and audio data URIs as media in TPM pre-call checks - #49831
Conversation
…a in TPM pre-call checks
PR overviewAll previously flagged issues have been addressed. No open security concerns remain on this pull request. Security reviewNo open security issues remain on this pull request. Fixed/addressed: 3 · PR risk: 0/10 |
[Medium impact] The changes appear safe to merge, with no new actionable issues found SummaryThis PR counts embedding data URIs as media only when every backend treats them as media. It also uses Bedrock’s billed count for Cohere image responses The latest changes reduce base64-check memory use and preserve existing Cohere text usage. No new actionable issues were found
Reviews (9) · Last reviewed commit: "fix(embeddings): check data URI base64 i..." · Reviewed by Greptile |
Merging this PR will not alter performance1 warning
Comparing |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…mbed it A data URI sent to a text-only embedding model is read as text, so it keeps the text estimate there. On models flagged supports_embedding_image_input, image and audio use the chat media estimates and PDF and video count at most the model's max_input_tokens. The same estimate now feeds project and key limits, the usage-based, latency and cost routers' deployment tpm, and the deployment itpm check.
# Conflicts: # litellm/proxy/hooks/parallel_request_limiter_v3.py # litellm/router_strategy/lowest_cost.py # litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py # tests/unit/test_router/test_io_token_rate_limits.py
…media Vertex AI, Gemini, Azure AI and Bedrock count a strict base64 data URI as media per item. Cohere counts it as media only when the whole batch is media, and Voyage, OCI and unknown models keep the text estimate. File blocks carrying a data URI count like the bare URI. The router context window pre-call check and the batch limiter now use the same estimate, resolving each deployment or JSONL row model to its backends. The cost map gains supports_embedding_image_input on voyage/voyage-multimodal-3 and oci/cohere.embed-multilingual-image-v3.0.
…its own A PDF or video data URI alone already reserves at most the model's max_input_tokens, but the context window pre-call check then ran the blanked input through the Responses transform and added a few framing tokens, so a PDF that Vertex accepts got a 400. When every input item is media, the check now returns the largest item's media estimate, since an embedding request embeds each item separately
… Bedrock media scope The router context window check now counts only the text of an embedding input, so Titan image lists no longer 400. Bedrock Marengo and Nova with a PDF keep the text estimate since they read those inputs as text or reject them, async_invoke Nova counts images as media, and the unused batch limiter change is dropped.
…re text usage The strict base64 check now scans the payload in place instead of decoding and re-encoding a full copy. Bedrock's billed token header is used only for image requests, so text-only Bedrock Cohere usage matches main. The deployment itpm estimator change is reverted, since the router never passes embedding input to that check.
|
bugbot run |
|
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 8ef1101. Configure here.
…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…
<make-me-human-readable>Multimodal embeddings under a token limit got a 429 because the gateway read the base64 image as text. A 300 KB photo that Vertex bills at 258 tokens counted as about 99k against a 75k limit
Now a media data URI counts as media only where every deployment behind the model embeds it as media, so it cannot dodge a limit on a text model. Project and key limits, deployment
tpm, routing and the context window check use this, and Bedrock Cohere image embeddings report the tokens Bedrock bills</make-me-human-readable>Original
TLDR
Problem this solves:
How it solves it:
User Flow
Before: every photo sent with a project key gets a 429, though Vertex bills each at 258 tokens
model_tpm_limitongemini-embedding-2and a keydata:image/jpeg;base64,...photoRate limit exceeded for model_per_project ... Remaining: 75000and never calls VertexAfter: the image goes through, and input the limit should stop is still refused
model_tpm_limitongemini-embedding-2and a keydata:image/jpeg;base64,...photousage.prompt_tokens258text-embedding-3-smallstill gets the 429Affected release
Since v1.85.0, which added the pre-call TPM estimate (#27001)
Linear ticket
Resolves LIT-10269
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
Last updated: 8ef1101. QA ran on b4e7456. Changes since QA: an in-place base64 check, the Bedrock Cohere billed-token header read only for images, and the unreachable deployment
itpmchange reverted. Proof remains valid because the check matches the old one on 200,010 cases, the image rows are unchanged, and a live proxy never givesitpmembedding input. Verification: 4,724 focused tests andmake checkpassEach leg ran two 2-worker proxies on shared Postgres and Redis against real providers. The before 400s came from the context window check
Shared setup (config, proxies, payloads, team, projects, keys)
config.yamlLITELLM_LOCAL_MODEL_COST_MAP=Truemakes them read this branch's cost map, which carries the newsupports_embedding_image_inputflags, until it shipsmodel_tpm_limit, a project withmodel_itpm_limit, and four keys, alternating writes between A and B, and definepost, which sends one body through A and then BBefore (28b4300)
Project TPM limit, image URI
Every limit, input and routing strategy
Commands and output
Output, every response from A and B: before_28b4300be2_every_limit.log
For each of
cost-based-routing,latency-based-routingandusage-based-routing, restart A and B fromconfig.yamlwith thatrouting_strategyand withoutoptional_pre_call_checksorenable_pre_call_checks, so only the strategy checks the deploymenttpm, then run this aszsh strategy.sh $A $B <strategy>Output, every response from A and B: before_28b4300be2_routing_strategies.log
Restart A and B from
config.yamlwithoutenable_pre_call_checks, so the deploymenttpmanditpmchecks answer before the context window check could, then send the three deployment bodies with a new plain keyAfter (b4e7456)
Project TPM limit, image URI
Every limit, input and routing strategy
Commands and output
Output, every response from A and B: after_b4e7456a4d_every_limit.log
For each of
cost-based-routing,latency-based-routingandusage-based-routing, restart A and B fromconfig.yamlwith thatrouting_strategyand withoutoptional_pre_call_checksorenable_pre_call_checks, so only the strategy checks the deploymenttpm, then run this aszsh strategy.sh $A $B <strategy>Output, every response from A and B: after_b4e7456a4d_routing_strategies.log
Restart A and B from
config.yamlwithoutenable_pre_call_checks, so the deploymenttpmanditpmchecks answer before the context window check could, then send the three deployment bodies with a new plain keySurprises
Type
🐛 Bug Fix
✅ Test
Decisions
supports_embedding_image_inputin the cost map. Counting by input shape alone (the first version of this PR) let a data URI skip the limit on a text-only model, which reads the whole string as text. Gating on any one deployment has the same hole in a mixed model group. A model the cost map does not know keeps the text estimate;base64comes before the first comma, that comma sits in the first 256 characters, and the payload decodes as strict base64. Anything looser stays text, since the provider would read it as text too{"type": "file", "file": {"file_data": ...}}block counts the same as the bare URI it carriesgemini-embedding-2,multimodalembedding,voyage/voyage-multimodal-3andoci/cohere.embed-multilingual-image-v3.0, which were missing it while their siblings had itmin(len / 4, max_input_tokens)of the models behind the request, since a provider bills one input at most that many tokens. If any of those models has no knownmax_input_tokens, the estimate stayslen / 4model_info.base_model, thenlitellm_params.base_model, thenlitellm_params.model, the order spend tracking uses.base_modelnames the backend model, so an OpenAI-compatible route in front of Vertex counts the way Vertex reads the inputx-amzn-bedrock-input-token-countheader, the count Bedrock bills, since the response body has no billed units. litellm used to count the base64 image as text there, so one 297 KB photo reported 285204 tokens and the next request in that minute got a 429. Text requests keep litellm's own count. The header would be exact for text too, but it would change spend for every existing text user, and the ask covers media only. Bedrock chat already reads the same header, and the direct Cohere API keeps its own billed unitsgs://,files/and https URLs are short strings and keep the text estimateCaveats (if any)
Medium
multimodalembeddingand Titan images and Vertex PDFs report 0 tokens, so once the call ends they use no TPMinput_type: imageand Voyagecontentimage_urlimages still get a 429, as beforeLow
itpmnever sees an embedding's input before the call, on main tooFinal Attestation
Bugbot summary
/live-pr-risk at 8ef1101
Each side ran two 2-worker proxies on shared Postgres and Redis, base 28b4300 against the head, on real Vertex, Gemini, OpenAI, Cohere and Bedrock. The head merged with current main answered the same as the head on 22 cases
Breaking
/v1/responses,/v1/messages, fallback, keys, health and every text embedding answer the same on both sidesBackward incompatible
tpmrouting and the context window check, where base gave 429 or 400. Text, text-only models and malformed URIs still get 429. This is the fix LIT-10269 asks for[[image]]input and text labelled as an image now get the same 500 and 400 they get with no limit, where base gave 429/model/infoshowssupports_embedding_image_input: truefor the Gemini and multimodalembedding groups, where base showed null_estimate_media_block_tokensmoved totoken_counter.estimate_media_block_tokens, and nothing references the old nameRegression risk
Not verified