diff --git a/litellm/llms/anthropic.py b/litellm/llms/anthropic.py index 5fe527c694..ca93a85b71 100644 --- a/litellm/llms/anthropic.py +++ b/litellm/llms/anthropic.py @@ -422,7 +422,7 @@ class AnthropicConfig: AnthropicResponseContentBlockToolUse( type="tool_use", id=tool_call.id, - name=tool_call.function.name, + name=tool_call.function.name or "", input=json.loads(tool_call.function.arguments), ) )