fixes - anthropic messages interface

This commit is contained in:
Ishaan Jaff 2025-03-26 17:45:47 -07:00
parent 9eb9a369bb
commit 8499a88e4a

View file

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