Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(types): log AdapterCompletionStreamWrapper errors lazily

mateo-berri66373eb25f13
diff --git a/litellm/types/utils.py b/litellm/types/utils.py
index eccdc7427dc..3c77b06365c 100644
--- a/litellm/types/utils.py
+++ b/litellm/types/utils.py
@@ -2594,7 +2594,7 @@ class AdapterCompletionStreamWrapper:
except StopIteration:
raise StopIteration
except Exception as e:
- verbose_logger.debug(f"AdapterCompletionStreamWrapper - {e}")
+ verbose_logger.debug("AdapterCompletionStreamWrapper - %s", e)
async def __anext__(self):
try: