From 5e8aff70f7fa5215876f19e0b2d974c090bb7e91 Mon Sep 17 00:00:00 2001 From: Stephen Chin <1290231+steveonjava@users.noreply.github.com> Date: Thu, 13 Aug 2026 15:51:57 -0700 Subject: [PATCH] fix: document stream logging mutation --- litellm/llms/custom_httpx/llm_http_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py index 8eee81faa4e..1cc5cf6693a 100644 --- a/litellm/llms/custom_httpx/llm_http_handler.py +++ b/litellm/llms/custom_httpx/llm_http_handler.py @@ -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