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: non-dict tool result content falls back to outputs=None
Andrzej Pomirski3962fbc33ac1
diff --git a/litellm/llms/anthropic/chat/handler.py b/litellm/llms/anthropic/chat/handler.pyindex 0b84830a8b0..387901588f0 100644--- a/litellm/llms/anthropic/chat/handler.py+++ b/litellm/llms/anthropic/chat/handler.py@@ -713,7 +713,7 @@ class ModelResponseIterator:parts.append(f"STDERR: {content['stderr']}")logs = "".join(parts)else:- logs = str(content)+ logs = ""tool_input = self._server_tool_inputs.get(call_id, {})code = tool_input.get("command", "") if isinstance(tool_input, dict) else ""log_outputs = (diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.pyindex 99b02e7ab46..238d72eda44 100644--- a/litellm/llms/anthropic/chat/transformation.py+++ b/litellm/llms/anthropic/chat/transformation.py@@ -1777,7 +1777,7 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):parts.append(f"STDERR: {content['stderr']}")logs = "".join(parts)else:- logs = str(content)+ logs = ""log_outputs = ([OutputCodeInterpreterCallLog(type="logs", logs=logs)]if logs