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 error: Incompatible types (expression has type dict[Any, Any]

Sameer Kankutef23f15755676
diff --git a/litellm/llms/anthropic/chat/handler.py b/litellm/llms/anthropic/chat/handler.py
index 1f86e107d04..d0ec36e68f4 100644
--- a/litellm/llms/anthropic/chat/handler.py
+++ b/litellm/llms/anthropic/chat/handler.py
@@ -697,7 +697,7 @@ class ModelResponseIterator:
type="function",
function=ChatCompletionToolCallFunctionChunk(
name=content_block_start["content_block"]["name"],
- arguments=content_block_start["content_block"]["input"],
+ arguments=str(content_block_start["content_block"]["input"]),
),
index=self.tool_index,
)