mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
fix: document stream logging mutation
This commit is contained in:
parent
ff9563eb17
commit
814d5874f9
1 changed files with 2 additions and 2 deletions
|
|
@ -2423,7 +2423,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
|
||||
|
|
@ -2613,7 +2613,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