From 07cfd1a2d21e2cc1f9a7d84fc7857630b3a04fc4 Mon Sep 17 00:00:00 2001 From: Fran Montiel Date: Tue, 15 Sep 2026 09:07:37 +0200 Subject: [PATCH] fix(responses): allow phase lookup fallback --- .../litellm_responses_transformation/transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/completion_extras/litellm_responses_transformation/transformation.py b/litellm/completion_extras/litellm_responses_transformation/transformation.py index da23b91006b..862837fb8cb 100644 --- a/litellm/completion_extras/litellm_responses_transformation/transformation.py +++ b/litellm/completion_extras/litellm_responses_transformation/transformation.py @@ -268,7 +268,7 @@ def _phase_for_output_text_delta( output_item_phases: Mapping[tuple[Literal["id", "index"], str | int], _ResponsesOutputItemPhase], ) -> _ResponsesOutputItemPhase | None: if isinstance(item_id := parsed_chunk.get("item_id"), str): - phase: Final = output_item_phases.get(("id", item_id)) + phase = output_item_phases.get(("id", item_id)) if phase is not None: return phase if (output_index := _output_index(parsed_chunk)) is not None: