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]

fixes - anthropic messages interface

Ishaan Jaff8499a88e4a45
diff --git a/litellm/llms/anthropic/experimental_pass_through/messages/handler.py b/litellm/llms/anthropic/experimental_pass_through/messages/handler.py
index fd7a3d60a86..8b4c947a7ce 100644
--- a/litellm/llms/anthropic/experimental_pass_through/messages/handler.py
+++ b/litellm/llms/anthropic/experimental_pass_through/messages/handler.py
@@ -141,8 +141,6 @@ async def anthropic_messages(
},
custom_llm_provider=_custom_llm_provider,
)
- litellm_logging_obj.model_call_details.update(kwargs)
-
# Prepare request body
request_body = locals().copy()
request_body = {
@@ -157,6 +155,7 @@ async def anthropic_messages(
request_body["stream"] = stream
request_body["model"] = model
litellm_logging_obj.stream = stream
+ litellm_logging_obj.model_call_details.update(request_body)
# Make the request
request_url = anthropic_messages_provider_config.get_complete_url(