mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
style: format with ruff
This commit is contained in:
parent
881f7742ac
commit
562f5f8cc2
2 changed files with 4 additions and 7 deletions
|
|
@ -85,9 +85,8 @@ class LiteLLMCompletionTransformationHandler:
|
|||
)
|
||||
)
|
||||
|
||||
converted_stream: Final = (
|
||||
converted_stream_requested(kwargs)
|
||||
or converted_stream_requested(litellm_completion_request)
|
||||
converted_stream: Final = converted_stream_requested(kwargs) or converted_stream_requested(
|
||||
litellm_completion_request
|
||||
)
|
||||
if converted_stream and not kwargs.get("_agentic_loop_depth"):
|
||||
return MockResponsesAPIStreamingIterator(
|
||||
|
|
@ -143,9 +142,8 @@ class LiteLLMCompletionTransformationHandler:
|
|||
)
|
||||
)
|
||||
|
||||
converted_stream: Final = (
|
||||
converted_stream_requested(kwargs)
|
||||
or converted_stream_requested(litellm_completion_request)
|
||||
converted_stream: Final = converted_stream_requested(kwargs) or converted_stream_requested(
|
||||
litellm_completion_request
|
||||
)
|
||||
if converted_stream and not kwargs.get("_agentic_loop_depth"):
|
||||
return MockResponsesAPIStreamingIterator(
|
||||
|
|
|
|||
|
|
@ -314,4 +314,3 @@ def test_sync_fallback_wraps_converted_stream_as_synthetic_stream(converted_stre
|
|||
events = list(response)
|
||||
assert len(events) > 0
|
||||
assert getattr(events[-1], "type", None) == "response.completed"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue