mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
fix(responses): allow phase lookup fallback
This commit is contained in:
parent
498999fec6
commit
07cfd1a2d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue