mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(router): justify fallback stream cast
This commit is contained in:
parent
bf37cd221a
commit
d569e2b91f
1 changed files with 3 additions and 1 deletions
|
|
@ -5207,7 +5207,9 @@ class Router:
|
|||
wrapper.adopt_fallback_source(fallback_response)
|
||||
if hasattr(fallback_response, "__aiter__"):
|
||||
fallback_stream: Final = await self._aanthropic_messages_streaming_iterator(
|
||||
response=cast("AsyncIterator[bytes]", fallback_response),
|
||||
response=cast( # cast-ok: __aiter__ check established the streaming fallback shape
|
||||
"AsyncIterator[bytes]", fallback_response
|
||||
),
|
||||
initial_kwargs=initial_kwargs,
|
||||
allow_fallback=False,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue