We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7216983 commit 6a9ebe8Copy full SHA for 6a9ebe8
litellm/litellm_core_utils/streaming_handler.py
@@ -1619,11 +1619,12 @@ def __next__(self): # noqa: PLR0915
1619
completion_start_time=datetime.datetime.now()
1620
)
1621
## LOGGING
1622
- executor.submit(
1623
- self.run_success_logging_and_cache_storage,
1624
- response,
1625
- cache_hit,
1626
- ) # log response
+ if not litellm.disable_streaming_logging:
+ executor.submit(
+ self.run_success_logging_and_cache_storage,
+ response,
+ cache_hit,
1627
+ ) # log response
1628
choice = response.choices[0]
1629
if isinstance(choice, StreamingChoices):
1630
self.response_uptil_now += choice.delta.get("content", "") or ""
0 commit comments