Skip to content

fix(utils): run post-call deployment hook on converted chat streams - #41495

Merged
yucheng-berri merged 4 commits into
mainfrom
litellm_converted_stream_post_call_hook
Sep 17, 2026
Merged

yucheng-berri merged 4 commits into
mainfrom
litellm_converted_stream_post_call_hook

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • SDK: a stream converted to a non-stream call skipped the post-call deployment hook
  • Response tagging, enrichment and CustomGuardrail post_call checks silently did not run

How it solves it:

  • Run the hook on the complete response behind the converted stream
  • Swap the wrapper's MockResponseIterator for one over the modified response so the change reaches the emitted chunks; the CustomStreamWrapper itself, its headers, logging object and __del__ cleanup are untouched
  • Caller-requested streams keep their existing behavior

User Flow

Before: an SDK user with a post-call deployment hook sees it skipped whenever another hook converted their stream

  1. They register a pre-call hook that turns some stream=True requests into a non-streaming provider call, and a post-call hook that appends [post_call_deployment_hook ran] to the reply (or a CustomGuardrail with mode: post_call that raises on bad output)
  2. They call litellm.acompletion(model="openai/gpt-5.6", messages=[...], stream=True) with a prompt that triggers the conversion
  3. They get a stream back whose chunks read pong, untagged, and the guardrail never raised

After: the same call runs the post-call hook on the converted stream

  1. Same hooks registered
  2. Same litellm.acompletion(..., stream=True) call
  3. The chunks read pong [post_call_deployment_hook ran], and with the guardrail registered the call raises ValueError: BLOCKED: response contains pong exactly like the non-streaming call does

Through the proxy the same conversion now also tags the converted stream, while proxy-side guardrails behave the same before and after because the proxy enforces them in its own post-call layer

Relevant issues

Follow-up to #41171, which added the converted-stream logging path this hook skip lives on

Affected release

Not in any stable release. The gap arrived with #41171 (c3222ec, first tagged in v1.103.0-dev.1). That PR carries backport-stable for rc/1.102.0, so this fix carries the same label to ship alongside it

Linear ticket

Refs LIT-7729

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<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 more
  • My PR passes all required CI/CD checks (except the pre-existing misc price-map failure recorded under Caveats) (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Delays 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

Live audit, Before at the merge base (port 16442) and After at this PR's tip (port 16443). Each leg runs 2 uvicorn workers from its own worktree against its own Postgres and hits real OpenAI (openai/gpt-5.6) and Anthropic (anthropic/claude-sonnet-5), no mocks anywhere in the product path. Every stream was consumed to the end, then LiteLLM_SpendLogs was queried by request_id. UI screenshots and the annotated recording are in this comment; the full 52 cell matrix with every response id is in the audit report attached to the session

Shared setup: audit_callbacks.py on PYTHONPATH holds the hooks, the config registers them

class StreamConverter(CustomLogger):
    async def async_pre_call_deployment_hook(self, kwargs, call_type):
        if call_type not in {CallTypes.acompletion, CallTypes.completion} or not kwargs.get("stream"):
            return None
        if "convert-me" not in _prompt_text(kwargs):
            return None
        return {**kwargs, "stream": False, "_code_interpreter_interception_converted_stream": True}

class ResponseTagger(CustomLogger):
    async def async_post_call_success_deployment_hook(self, request_data, response, call_type):
        prompt = _prompt_text(request_data)
        if "raise-me" in prompt:
            raise RuntimeError("hook exploded")
        if "no-tag" in prompt or not isinstance(response, ModelResponse):
            return None
        tagged = response.model_copy(deep=True)
        tagged.choices[0].message.content = (tagged.choices[0].message.content or "") + " [post_call_deployment_hook ran]"
        return tagged
model_list:
  - model_name: gpt-5.6
    litellm_params: {model: openai/gpt-5.6, api_key: os.environ/OPENAI_API_KEY}
  - model_name: claude
    litellm_params: {model: anthropic/claude-sonnet-5, api_key: os.environ/ANTHROPIC_API_KEY}
  - model_name: gpt-badkey
    litellm_params: {model: openai/gpt-5.6, api_key: sk-invalid-audit-key}
litellm_settings:
  callbacks: [audit_callbacks.stream_converter, audit_callbacks.response_tagger]
guardrails:
  - guardrail_name: block-pong
    litellm_params: {guardrail: audit_callbacks.BlockPongGuardrail, mode: post_call, default_on: false}
general_settings:
  store_prompts_in_spend_logs: true
  allow_requests_on_db_unavailable: true

Shared commands ($PORT is 16442 or 16443, $KEY the proxy master key)

CHAT='curl -sS http://127.0.0.1:$PORT/v1/chat/completions -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d'
SPEND="docker exec litaudit-41495-pg-$LEG psql -U llmproxy -d litellm -tAc \"select count(*), response->'choices'->0->'message'->>'content' from \\\"LiteLLM_SpendLogs\\\" where request_id='\$ID' group by 2\""

Before (b3898df)

Converted stream, /v1/chat/completions, curl

  1. $CHAT '{"model":"gpt-5.6","stream":true,"messages":[{"role":"user","content":"convert-me: reply with exactly: ping"}]}'
  2. status=200, id chatcmpl-EOswbjG9mybTUY8cDPSBdh0FwrZqs, 2 data chunks, first chunk "content":"ping", no tag
  3. $SPEND: 1|ping
  4. Same with "model":"claude","max_tokens":32: status=200, id chatcmpl-d4e3e40b-7c56-4b73-bbbe-4909b516fb6b, text ping, no tag, 1|ping

Converted stream, /v1/chat/completions, OpenAI SDK

  1. openai.OpenAI(base_url="http://127.0.0.1:16442", api_key=KEY).chat.completions.create(model="gpt-5.6", stream=True, messages=[{"role":"user","content":"convert-me: reply with exactly: ping"}]), iterated to the end
  2. id chatcmpl-EOsyvWfvXsYoHlTDc9qYHWNtE1Vej, text ping, no tag, one spend row
  3. Same through openai.AsyncOpenAI: id chatcmpl-EOsyxHZ4r8hw3P5aZpMAvAMbUqgEf, text ping, no tag, one spend row
  4. 8 concurrent AsyncOpenAI converted streams: 0/8 tagged, 8 distinct ids, exactly one spend row per id

Ordinary stream and non-stream, /v1/chat/completions

  1. $CHAT '{"model":"gpt-5.6","stream":true,"messages":[{"role":"user","content":"Reply with exactly: ping"}]}': status=200, id chatcmpl-EOswaPMrJBazMz8m5LYILnrNYRBjj, 3 chunks, text ping, no tag
  2. $CHAT '{"model":"gpt-5.6","messages":[{"role":"user","content":"Reply with exactly: ping"}]}': status=200, id chatcmpl-EOswYuUxDIO882wOlJCK1PBSN4eIf, content ping [post_call_deployment_hook ran]

/v1/messages stream

  1. curl -sS http://127.0.0.1:16442/v1/messages -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d '{"model":"gpt-5.6","max_tokens":32,"stream":true,"messages":[{"role":"user","content":"convert-me: reply with exactly: ping"}]}'
  2. status=200, id msg_a04136f7-9cb6-4efc-b561-cc9eac950f1a, 6 events ending in message_stop, text ping, no tag

/v1/responses

  1. curl -sS http://127.0.0.1:16442/v1/responses ... -d '{"model":"gpt-5.6","input":"Reply with exactly: ping"}': status=200, id resp_4p_P4INL..., text ping, no tag
  2. ... -d '{"model":"gpt-5.6","stream":true,"input":"convert-me: reply with exactly: ping"}': status=200, response.completed, text ping, no tag
  3. ... -d '{"model":"claude","stream":true,"input":"convert-me: reply with exactly: ping"}' (bridged to chat): status=200, text ping, no tag, spend row under chatcmpl-def12d72-...

Hook raises on a converted stream

  1. $CHAT '{"model":"gpt-5.6","stream":true,"messages":[{"role":"user","content":"convert-me raise-me: reply with exactly: ping"}]}'
  2. status=200, id chatcmpl-EOt2hKWGuWitYNwdQoddRglzCk9RL, text ping, the hook never ran so the error never reached the caller
  3. Non-stream control $CHAT '{"model":"gpt-5.6","messages":[{"role":"user","content":"raise-me: reply with exactly: ping"}]}': status=500, {"error":{"message":"hook exploded","type":"internal_server_error","param":null,"code":"500"}}

Proxy post_call guardrail

  1. $CHAT '{"model":"gpt-5.6","messages":[{"role":"user","content":"Reply with exactly: pong"}],"guardrails":["block-pong"]}': status=500, BLOCKED by proxy post_call guardrail: response contains pong
  2. Same with "stream":true: status=200, id chatcmpl-EOt2lTldmpIW0a9b9t9ogvK5v9XrL, text pong, then one guardrail error event
  3. Same with "stream":true and convert-me: reply with exactly: pong: status=200, id chatcmpl-EOt2mfeDDjXBAgBqL0FJqdSGRbh6Q, text pong, no tag, then the guardrail error event

Provider errors, virtual key, management endpoints

  1. Unknown model status=400 Invalid model name passed in model=no-such-model; invalid provider key status=401 OpenAIException - Incorrect API key provided
  2. Converted stream with a freshly generated virtual key (no team): status=200, id chatcmpl-EOt2nEGEtDAIcDLkCsjIRoYH7IVTX, text ping, no tag
  3. POST /key/health with that key status=200 {"key":"healthy","logging_callbacks":null}; with a bad key status=401; POST /v1/no-such-route status=404
  4. GET /health/readiness status=200 {"status":"healthy","db":"connected"}, both worker processes alive after every cell

Repeated and edge requests

  1. Same converted request 3 times: ids chatcmpl-EOt7CZMS..., chatcmpl-EOt7D1YJ..., chatcmpl-EOt7Eodp..., all untagged, exactly one spend row each
  2. convert-me no-tag (hook returns None), "guardrails":[], "guardrails":null, "stream_options":{"include_usage":true} (usage chunk present, 18 tokens), "response_format":{"type":"json_object"} (text {"answer":"ping"}): all status=200, untagged, one spend row each

Chaos

  1. docker stop of the leg's Postgres during a 30 request mixed burst (chat, converted chat, Messages, Responses, streaming and not): 30/30 status=200, /health/readiness status=200 "db":"disconnected" while down; after docker start plus 30, 60, 90 and 120 s waits only 2/30 ids have a spend row, 28 missing, 0 duplicates
  2. Postgres pause, worker kill and proxy relaunch cells were run on the After leg only

After (62b6929)

Converted stream, /v1/chat/completions, curl

  1. $CHAT '{"model":"gpt-5.6","stream":true,"messages":[{"role":"user","content":"convert-me: reply with exactly: ping"}]}'
  2. status=200, id chatcmpl-EOswDc1KW3omh6uZekfUdQz21WuRR, 2 data chunks, first chunk
    data: {"id":"chatcmpl-EOswDc1KW3omh6uZekfUdQz21WuRR","created":1789599762,"model":"gpt-5.6","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"provider_specific_fields":{"refusal":null},"content":"ping [post_call_deployment_hook ran]","role":"assistant","annotations":[]}}]}
    
  3. $SPEND: 1|ping [post_call_deployment_hook ran]
  4. Same with "model":"claude","max_tokens":32: status=200, id chatcmpl-45b32ac9-4424-4b1c-951b-b64aceee27a3, text ping [post_call_deployment_hook ran], 1|ping [post_call_deployment_hook ran]

Converted stream, /v1/chat/completions, OpenAI SDK

  1. Same openai.OpenAI(...) call against port 16443, iterated to the end
  2. id chatcmpl-EOsyjipfc1Bx5PsPEOqWxoNm9lidI, text ping [post_call_deployment_hook ran], one spend row
  3. Same through openai.AsyncOpenAI: id chatcmpl-EOsyl0k6emvv8EXuK0PkqReILqHvk, text ping [post_call_deployment_hook ran], one spend row
  4. 8 concurrent AsyncOpenAI converted streams: 8/8 tagged, 8 distinct ids, exactly one spend row per id

Ordinary stream and non-stream, /v1/chat/completions

  1. Ordinary stream: status=200, id chatcmpl-EOswCt67WiQJTO59yVFinpUeI0xoU, 3 chunks, text ping, no tag (caller-requested streams still skip the hook)
  2. Non-stream: status=200, id chatcmpl-EOswBHjUa5C9HY9EaedI7LzLkFLG1, content ping [post_call_deployment_hook ran]

/v1/messages stream

  1. Same request against port 16443
  2. status=200, id msg_c5424263-8764-453c-a142-5ac76b5102e4, 6 events ending in message_stop, text ping, no tag (unchanged)

/v1/responses

  1. Non-stream: status=200, id resp_KrqqUlG9..., text ping, no tag (unchanged)
  2. Stream: status=200, response.completed, text ping, no tag (unchanged, the Responses iterator runs its own hooks)
  3. Stream bridged to claude: status=200, text ping [post_call_deployment_hook ran] in the output_text deltas, spend row under chatcmpl-415a0ebe-5e70-4ede-bf6a-8dd37321bec1 (bridge reaches the fixed chat path, so it follows the chat fix)

Hook raises on a converted stream

  1. Same convert-me raise-me stream request
  2. status=500, {"error":{"message":"hook exploded","type":"internal_server_error","param":null,"code":"500"}}
  3. Non-stream control: status=500, hook exploded (same as before)

Proxy post_call guardrail

  1. Non-stream: status=500, BLOCKED by proxy post_call guardrail: response contains pong (unchanged)
  2. Ordinary stream: status=200, id chatcmpl-EOt268hJVyUBohaZLwnjm1cUsDdSP, text pong, then one guardrail error event (unchanged)
  3. Converted stream: status=200, id chatcmpl-EOt27aIaUdQ9h8Sl9KYLcX90C0kIf, text pong [post_call_deployment_hook ran], then the same guardrail error event

Provider errors, virtual key, management endpoints

  1. Unknown model status=400, invalid provider key status=401, same bodies as before
  2. Converted stream with a fresh virtual key: status=200, id chatcmpl-EOt290D7epfm59MRtKLuTn765xRrw, text ping [post_call_deployment_hook ran]
  3. POST /key/health status=200 {"key":"healthy","logging_callbacks":null}; bad key status=401; unknown route status=404
  4. GET /health/readiness status=200 {"status":"healthy","db":"connected"}, both worker processes alive after every cell

Repeated and edge requests

  1. Same converted request 3 times: ids chatcmpl-EOt6u2u8..., chatcmpl-EOt6vkJ7..., chatcmpl-EOt6xiD3..., all tagged, exactly one spend row each
  2. convert-me no-tag (hook returns None): status=200, text ping, no tag, original response kept
  3. "guardrails":[], "guardrails":null, "stream_options":{"include_usage":true} (usage chunk present, 29 tokens), "response_format":{"type":"json_object"} (text {"answer":"ping"} [post_call_deployment_hook ran]): all status=200, tagged, one spend row each

Chaos

  1. docker stop of Postgres during the same 30 request burst: 30/30 status=200, readiness "db":"disconnected" while down; after docker start and 120 s of waits 14/30 ids have a spend row, 16 missing, 0 duplicates (same pre-existing loss as Before, LIT-7848)
  2. docker pause of Postgres during a 20 request mixed burst: 20/20 status=200, all 20 spend rows land exactly once after docker unpause, no duplicates
  3. kill -9 of one worker mid burst: the other worker keeps serving, a replacement worker appears, 20/20 requests complete, 20/20 spend rows exactly once
  4. Proxy relaunch mid burst at the same commit: 20/20 requests complete, 20/20 spend rows exactly once

Regression test tests/test_litellm/test_utils.py::test_wrapper_async_runs_success_deployment_hook_on_converted_chat_stream fails at the merge base (assert 0 == 1 on the hook call count) and passes here; a control test pins that a caller-requested fake stream still skips the hook, and a parametrized test pins the early returns for a real provider iterator and an unmapped call type

Type

🐛 Bug Fix

Caveats (if any)

Medium

  • A hook that raises now propagates on converted streams, matching the non-streaming path
    • Before, such a hook was never reached on converted streams, so any SDK caller relying on that gap now sees the error
  • Responses API converted streams are untouched; they already run post-success hooks in their own iterator

Low

  • Required misc / Run tests fails only on test_price_map_has_no_duplicate_keys, which flags six duplicate cache_read_input_token_cost keys in the price map
    • The run (attempt 3, 22:34 UTC) merged this branch with main at 9357491, which carried those duplicates; main fixed them in a6b10ad (landed 23:52 UTC via fix(gemini): map minimal thinking to low for Gemini 3.7 and 3.8 Flash #41201). This PR does not touch either price map and the test passes at both the merge base and this tip locally
    • A rerun of the failed job needs maintainer permissions on the Actions run; re-triggering by pushing would invalidate the bot reviews below
  • Bot reviews at 62b6929: Greptile 5/5 with no outstanding findings, Bugbot found no new issues, Devin Review found no issues; Veria had posted nothing on this PR at that tip
  • Chaos cell 4 above (spend rows dropped when Postgres dies mid flush) reproduces on the merge base with the same handle_response_errors AttributeError that update_spend_logs does not classify as transient; tracked in LIT-7848, not changed here
  • Skills and vector store post-call hooks were not driven live on a converted stream; they receive the same complete response the non-streaming path already hands them
  • Agentic follow-up depth > 0 with a converted outer stream was not driven live (needs a code interpreter tool round trip)
  • litellm.post_call_rules still skip converted streams, same as caller-requested streams; not in scope here

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

ran /live-pr-risk and found no regressions/backward incompatible risks

  • /live-pr-risk passed at 62b6929 (base vs head A/B on live proxies, 2 workers each, real OpenAI and Anthropic)

Note

Medium Risk
Changes when deployment hooks and hook-raised errors apply on converted chat streams; behavior now matches non-streaming calls, which may surface errors or modified output where hooks previously never ran.

Overview
Fixes a gap where stream=True requests converted to a non-stream provider call (then wrapped as a stream) never ran async_post_call_success_deployment_hook, so tagging, enrichment, and post-call guardrails could silently no-op on those streams.

The async wrapper now detects converted chat streams (streaming_requested is false but the result is a converted stream) and calls _run_success_deployment_hook_on_converted_chat_stream, which runs the hook against the underlying ModelResponse on MockResponseIterator and, when the hook returns a new response, rebinds completion_stream to a fresh MockResponseIterator so emitted chunks match the hooked body without replacing CustomStreamWrapper. Caller-requested streams are unchanged (hook still skipped there).

Tests cover rewritten converted mock streams, early exits for real provider iterators / unknown call types, and that requested fake streams (e.g. Langflow) still skip the hook.

Reviewed by Cursor Bugbot for commit e1cce94. Bugbot is set up for automated code reviews on this repo. Configure here.

Link to Devin session: https://app.devin.ai/sessions/b7fddcb21db14890a7e5eae9195f08b6
Open in Devin Desktop: https://app.devin.ai/desktop/session/b7fddcb21db14890a7e5eae9195f08b6?variant=devin
Requested by: @yucheng-berri

A pre-call deployment hook can turn a requested stream into a non-streaming provider call and the result is wrapped back into a fake stream. The async client wrapper treated that wrapper like a caller-requested stream and returned before async_post_call_success_deployment_hook, so SDK callers lost post-call deployment processing (including CustomGuardrail post_call enforcement) on converted streams. Run the hook on the complete ModelResponse behind the wrapper and rewrap a modified response so it reaches the emitted chunks.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot requested a review from a team September 16, 2026 21:51
@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@codspeed

codspeed Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_converted_stream_post_call_hook (e1cce94) with main (9e1eb54)

Open in CodSpeed

@greptile-apps

greptile-apps Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes converted asynchronous chat streams so successful deployment hooks run against the buffered response and any replacement response reaches emitted chunks while retaining the existing stream wrapper and metadata

  • Runs the post-call success deployment hook only when a non-streaming provider response was converted into a chat stream
  • Replaces only the wrapper's mock iterator when the hook returns a distinct ModelResponse
  • Leaves caller-requested streams, provider-backed iterators, and unsupported call types unchanged
  • Adds focused regression and skip-path coverage

Confidence Score: 5/5

The PR appears safe to merge, with no outstanding correctness or repository-rule failures

The converted-stream hook path is narrowly gated, preserves the original wrapper, and has focused coverage for rewritten and skipped cases. The provider-header finding and the in-place-mutation finding were manually resolved without explanation. The callback monkeypatch finding was correctly withdrawn after devin-ai-integration[bot] explained that the test patches the production registry and restores it afterward

Important Files Changed
Filename Overview
litellm/utils.py Adds targeted post-call hook processing for converted chat streams while preserving the existing wrapper and stream lifecycle
tests/test_litellm/test_utils.py Covers rewritten converted-stream output and verifies that unsupported wrappers and caller-requested streams remain unchanged

Reviews (5): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile

greptile-apps[bot]

This comment was marked as resolved.

@codecov

codecov Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

cursor[bot]

This comment was marked as resolved.

…ping

Keeps the original CustomStreamWrapper so response headers and the
correlation-context cleanup in __del__ are untouched when a deployment
hook rewrites the converted response. Covers the early-return branches
for real provider streams and unmapped call types

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

greptile-apps[bot]

This comment was marked as resolved.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

greptile-apps[bot]

This comment was marked as resolved.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration devin-ai-integration Bot added the backport-stable P0 regression fix only (Urgent ticket): cherry-pick onto the baking rc line before the stable tag label Sep 16, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Live audit UI evidence at 62b6929 versus merge base b3898df: Playground and Logs show the converted stream tagged only on head

head playground converted stream

base playground converted stream

head logs converted stream

base logs converted stream

head logs playground request detail

annotated recording

@yucheng-berri

Copy link
Copy Markdown
Contributor

@greptileai review latest head

@yucheng-berri

Copy link
Copy Markdown
Contributor

bugbot run

@yucheng-berri yucheng-berri removed the backport-stable P0 regression fix only (Urgent ticket): cherry-pick onto the baking rc line before the stable tag label Sep 17, 2026
@yucheng-berri
yucheng-berri merged commit 0add8c0 into main Sep 17, 2026
94 checks passed
@yucheng-berri
yucheng-berri deleted the litellm_converted_stream_post_call_hook branch September 17, 2026 00:49
@devin-ai-integration devin-ai-integration Bot added the backport-stable P0 regression fix only (Urgent ticket): cherry-pick onto the baking rc line before the stable tag label Sep 17, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 e1cce94. Configure here.

mateo-berri added a commit that referenced this pull request Sep 18, 2026
…rc_1_102_0

fix: backport eight backport-stable fixes to rc/1.102.0 (#40596, #41046, #41086, #41171, #41178, #41283, #41495, #41689)
tech-carrement pushed a commit to tech-carrement/litellm that referenced this pull request Sep 20, 2026
Backport of BerriAI#41495 to rc/1.102.0.
Cherry-picked from merge commit 0add8c0 (main), originally by app/devin-ai-integration.

The only conflict was the test import header: the rc line never gained the logging_executor import that main carries next to this change, so only the MockResponseIterator import comes along.
@mateo-berri mateo-berri removed the backport-stable P0 regression fix only (Urgent ticket): cherry-pick onto the baking rc line before the stable tag label Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants