mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix: document stream logging mutation
This commit is contained in:
parent
91534fa481
commit
5e8aff70f7
1 changed files with 2 additions and 2 deletions
|
|
@ -2544,7 +2544,7 @@ class BaseLLMHTTPHandler:
|
|||
if extra_body:
|
||||
data.update(extra_body)
|
||||
stream = bool(stream or data.get("stream"))
|
||||
logging_obj.stream = stream
|
||||
logging_obj.stream = stream # rebind-ok: record provider-resolved stream mode
|
||||
logging_obj.model_call_details.update(stream=stream)
|
||||
|
||||
# Preserve the OpenAI-style request context (not sent to the provider) for streaming
|
||||
|
|
@ -2724,7 +2724,7 @@ class BaseLLMHTTPHandler:
|
|||
if extra_body:
|
||||
data.update(extra_body)
|
||||
stream = bool(stream or data.get("stream"))
|
||||
logging_obj.stream = stream
|
||||
logging_obj.stream = stream # rebind-ok: record provider-resolved stream mode
|
||||
logging_obj.model_call_details.update(stream=stream)
|
||||
|
||||
# Preserve the OpenAI-style request context (not sent to the provider) for streaming
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue