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(anthropic): state the async entry's first-pass judgment explicitly

Tin Chi Loecff0c0a7de4
diff --git a/litellm/main.py b/litellm/main.py
index ab07da7528b..f96064c0591 100644
--- a/litellm/main.py
+++ b/litellm/main.py
@@ -522,6 +522,7 @@ async def acompletion(
model=model,
custom_llm_provider=cast(Optional[str], custom_llm_provider), # cast-ok: read from untyped kwargs
tools=tools,
+ is_first_pass=True,
)
if isinstance(litellm_logging_obj, LiteLLMLoggingObj) and (