Repository navigation
fix(bedrock)!: fail a Nova Sonic realtime session whose Bedrock stream drops instead of closing 1000 - #49170
Conversation
… drops instead of closing 1000 The Bedrock SDK ends the output stream the same way for a dropped connection as for a session that sent sessionEnd, so the handler treated a dropped stream as a clean finish. The client got a 1000 close with no error event and the router logged 200 OK with no retry An output end now counts as clean only after the client left and the handler began closing the Bedrock input. An earlier end raises a 503 BedrockError, so the client gets an error event and a 1011 close, the failure handlers run, partial spend is still logged, and a retry of a committed session is still refused
[High impact] The latest test-only change appears safe to merge SummaryThe PR makes dropped Bedrock realtime sessions report an error while keeping their streamed usage billable. The latest commit replaces an injected socket failure with a client frame that the real provider adapter rejects. No new actionable issues were found in that change
Reviews (14) · Last reviewed commit: "test(realtime): pin the relay failure ex..." · Reviewed by Greptile |
Merging this PR will not alter performance1 warning
Comparing Footnotes |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
… as failed When Bedrock's output side ends mid-session, by a drop or a modeled stream error, the client side no longer spends the close timeout sending close messages into the dead input stream, so the error reaches the app right after the drop. A session the app ends itself still sends Bedrock its close messages and closes the input The replay refusal now leads with the committed cause, so the error event and the cut 1011 close reason both start with it. It stays a 400 and is tagged as a failure outside the selected deployment, so router retries and fallbacks of a dropped session no longer add extra failure counts A clean realtime session now counts once toward its deployment's cooldown success counter, so cooldown reads the real failure rate instead of 100 percent. Realtime tpm and rpm counting is unchanged The spend row of a session the provider ended now reads failure with its error information, while the events already forwarded are still billed. A session the app ended keeps logging success
…ggers and the spend row A realtime session's success event now reports status failure, with the same error_information the spend row stores, when the session recorded a provider failure in its metadata. Usage already streamed stays billed and the router still counts one cooldown failure The spend row builder now runs every row's error_information through sanitize_error_information_for_spend_logs (DB size cap plus prompt redaction), so the realtime failure rows get the same treatment as the proxy failure hook, which no longer sanitizes on its own to avoid truncating twice Drop the selection-failure tag on the committed-session refusal, since the shared logging object already keeps a retried refusal out of cooldown, and pin the router's realtime success counting with an OpenAI realtime deployment
…logged one, and log first-turn drops The router counts a realtime success only when the session's success handlers ran, so a refused handshake or an upstream close before any frame no longer offsets its failure. The success event's payload status stays success again, so each logger gets one failure record per dropped session, while the spend row still reads failure from the metadata the Bedrock handler records. A committed Bedrock session that fails before any logged event now gets one zero-cost Logs row. After an output failure the input stream is closed in the background, so the SDK body writer finishes without delaying the client's error. Every input send failure reports the same 503 stream-ended cause as an output drop
# Conflicts: # tests/unit/test_router/test_router_helper_utils.py
…leanly A realtime session the upstream closes with 1011 or 1006 after its first frame now marks itself as ended abnormally where that close is seen, in the shared relay and in the OpenAI Live handler, so the router no longer counts it as a cooldown success. The success callbacks still run, so the proxy keeps the budget and parallel-slot settlement it had A Bedrock session that fails before Bedrock sends any usage now logs no success event, as on base. The spend-row failure fields go into a new metadata mapping instead of the request's own dict, validated with a pydantic TypeAdapter instead of an unchecked TypeIs guard. The handler tests drop a wall-clock bound and type their helpers
…ging state The failure event replaced the shared standard_logging_object while the queued success dispatch was still running its callbacks, so loggers received $0 and 0 tokens for a billed dropped session.
…a failure and a success A dropped realtime session fires a failure event and then a success event for the same call. The v3 limiter refunded the TPM reservation on the failure and released it again on the success, so the key's TPM counter went negative. The success path now skips a reservation the failure already released and marks it settled for a later failure. The realtime handler test callbacks are typed
…gs both a failure and a success A dropped realtime session logs a success for its usage and then a failure. After a success the limiter now clears every reserved amount (TPM, PTU, ITPM, OTPM), so a later failure refunds nothing twice. A new reservation written in the same context after a released one now starts clean, so reserve, fail, reserve, succeed charges the second request's usage once instead of 78 TPM or 28 ITPM for 27 and 20 used
# Conflicts: # litellm/router.py
…ess and failure callbacks settle it once
… a nested pre-call keeps the request's project IO charge
|
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 23515cf. 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…
A Nova Sonic realtime session whose Bedrock connection drops now gets an
errorevent and a 1011 close and logs a failure, where it used to close normally and log successOriginal
TLDR
Problem this solves:
erroreventHow it solves it:
errorevent and a 1011 closeIntentional product change: a cleanly ended realtime session counts as a cooldown success on any provider, so a few drops no longer read as 100% failure
Intentional product change: the replay refusal now leads with the cause, so the cut 1011 reason names it
Intentional product change: a session Bedrock ends with its own error, like its 295 s audio timeout, now logs as a failure
Intentional product change: Prometheus counts a dropped session as one success and one failure, and
disable_error_logs: truehides its Logs row while key spend counts itIntentional product change: after a retry, fallback, or MCP tool's project IO 429, key TPM stops going negative, so a near-limit key hits 429 sooner
User Flow
Before: a voice app's dropped Bedrock session looks like a hang-up, and the admin sees a success
wss://litellm-domain/v1/realtime?model=nova-sonic-realtimewith the OpenAI SDK and getssession.createdresponse.create, and the reply ends inresponse.doneerrorevent, so it thinks the call endedhttps://litellm-domain/ui/?page=logsand the dropped session shows SuccessAfter: the same drop reaches the app as an error within a second, and the admin sees a failure
wss://litellm-domain/v1/realtime?model=nova-sonic-realtimewith the OpenAI SDK and getssession.createdresponse.create, and the reply ends inresponse.doneerrorevent starting "Bedrock realtime stream ended before the session closed", then a 1011 closehttps://litellm-domain/ui/?page=logsand the dropped session shows Failure, and a session the app ended shows SuccessPre-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
Both legs ran 2 workers on Postgres, with real Bedrock and OpenAI calls from OpenAI SDK 2.33.0
Proxy config
Audio cases stream quiet 16 kHz noise,
ss -Kkills the provider socket, and the gist holds scripts and logsBefore (43c07a0)
./start_proxy.sh 23464then./run_session.sh reset reset1 23464Drop run 2, audio drops, first-turn drops, 295 s timeout, app closes itself, OpenAI, logs
Run 2 gave the same bare close,
CLOSED 6.83s after READY, events_after_ready=0: ConnectionClosedOK: rcvd.code=1000 rcvd.reason=''(log). While the app streamed audio,KILL_DELAY_SECONDS=5 ./run_audio_session.sh drop drop1 23464 ...gotConnectionClosedOK: rcvd.code=1000 rcvd.reason=''0.15 s and 0.17 s after the kill, with no event in between (run 1, run 2). To drop the connection during the first turn,KILL_DELAY_SECONDS=0 ./run_first_turn_session.sh first1 23464killed the socket 21 ms and 19 ms afterresponse.create, before any response event, and the app got a bare 1000 close 0.07 s and 0.12 s later (run 1, run 2). With no drop,./run_audio_session.sh stream limit1 23464 ...ran until Bedrock sentValidationException ... Timed out waiting for audio bytes or interactive contentas anerrorevent at 295.27 s, then a 1011 close (log). With no drop,./run_session.sh control control 23464ends inclient closed the websocket itself with code=1000(log). On OpenAI,./run_openai_session.sh control oaictl 23464gotresponse.doneand a clean close, and two upstream drops got anerrorevent 0.12 s and 0.07 s after the kill, then a 1011 close (control, drop 1, drop 2).GET /spend/logs/uilists one row per session, 24 in all, and every realtime session readssuccesswith spend, the six Bedrock drops, the 295 s timeout, and the two OpenAI drops included. Withstatus_filter=failureit returns only the failed chat call (rows). The Logs page shows the sameAfter (abd825d)
./start_proxy.sh 23965then./run_session.sh reset reset1 23965Drop run 2, audio drops, first-turn drops, spoken question, 295 s timeout, app closes itself, OpenAI, logs
Run 2 got the same
errorevent 1.18 s after the drop andrcvd.code=1011, on the other worker (log). While the app streamed audio,KILL_DELAY_SECONDS=5 ./run_audio_session.sh drop drop1 23965 ...got the sameerrorevent 1.20 s and 1.05 s after the kill and a 1011 close (run 1, run 2). To drop the connection during the first turn,KILL_DELAY_SECONDS=0 ./run_first_turn_session.sh first1 23965sends a text turn andresponse.createand kills the socket 10 ms later in both runs, before any response event. The app got the sameerrorevent 1.08 s and 0.64 s after the kill, then a 1011 close (run 1, run 2). To check that streamed audio reaches Bedrock as audio, the app streamed a spoken "Hello, can you tell me a short fact about the moon?" and gottranscript='hello can you tell me a short fact about the moon?', a spoken answer, and a clean close (log). The 295 s noise stream ended exactly as on the base, with Bedrock'sValidationExceptionerrorevent at 295.34 s and a 1011 (log). With no drop,./run_session.sh control control 23965getsresponse.doneand ends inclient closed the websocket itself with code=1000with noerrorevent (log). OpenAI behaves as on the base. The control closes cleanly, and two upstream drops get anerrorevent 0.05 s and 0.04 s after the kill, then a 1011 close (control, drop 1, drop 2).GET /spend/logs/uilists one row per session, 25 in all. The six Bedrock drops readfailurewithBedrockErrorand code 503, the 295 s timeout readsfailurewith Bedrock's text and code 400, and the control and the spoken question readsuccess. The two first-turn rows bill the 173 setup tokens Bedrock reported, $0.00045759 each. The OpenAI rows read as on the base. Withstatus_filter=failureit returns those 7 and the failed chat call, and no failed row's error holds prompt text or a credential (rows)Re-runs at 07cca4d and cedad9d
The tip gives the ITPM and OTPM holds their own released flag, so a text drop, the control, the failed chat call, and the Logs check ran again on 2 workers. The drop got the
errorevent 0.832 s after the kill, then a 1011 close, andstatus_filter=failurereturns exactly the 2 failures (text, control, timing, rows)On one worker, the key with
tpm_limit100000 again lost exactly each chat's own tokens across a drop and across a client close (deltas, one worker)The other cases carry from 2aceca2, since they use the master key with no limits and the limiter takes no hold for them (scope)
Tip fb6ad8d only adds a unit test, so this run and the /live-pr-risk pass at 07cca4d carry to it. The test replays four call orders from that risk run, and each mutant it found surviving now fails (carry)
Tip cedad9d ends a session as abnormal when the relay fails on a client frame, so the router no longer counts it as a success. The OpenAI control closed 1000, two OpenAI drops got an
errorevent and a 1011, and the twelve cooldown sessions closed as before. A new Vertex chirp_3 case got its transcript and a 1000 close, and a bad audio append got Chirp'sinvalid_request_errorand then a dropped socket with a $0 success row, as on main (report, bad frame, carry)On base, fb6ad8d, and cedad9d the /live-pr-risk run counted 0, 1, and 0 router successes for a chirp frame the provider rejects. A clean OpenAI session, an OpenAI hang-up, and a clean chirp session counted 1 on both tips and 0 on base, and the client view and Logs rows matched on all three (report)
Tip 23515cf only changes a unit test, so both runs carry to it (carry)
Things the run noticed
Decisions
server_errorsuccessand the failure event is its one error record, while the spend row reads failure from what the handler records. Prometheus counts both, so its request total reads 2 for that session. Overriding the success payload's status gave Datadog and OTel two failure records per sessionType
🐛 Bug Fix
Caveats (if any)
Low
server_errorFinal Attestation
Bugbot summary