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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix mypy errors
Sameer Kankuteb9564834e6ee
diff --git a/litellm/llms/anthropic/chat/handler.py b/litellm/llms/anthropic/chat/handler.pyindex 7dce72f1e82..a2389f44295 100644--- a/litellm/llms/anthropic/chat/handler.py+++ b/litellm/llms/anthropic/chat/handler.py@@ -897,7 +897,9 @@ class ModelResponseIterator:args = ""for block in self.content_blocks:if block["delta"]["type"] == "input_json_delta":- args += block["delta"].get("partial_json", "")+ partial_json = block["delta"].get("partial_json")+ if isinstance(partial_json, str):+ args += partial_jsonif args:try:self._server_tool_inputs[