fix: document stream logging mutation

This commit is contained in:
Stephen Chin 2026-08-13 15:51:57 -07:00
parent 91534fa481
commit 5e8aff70f7

View file

@ -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