From c46e3ce590b8afcd3f64df6da5d5db0dc396e74b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 10 Jul 2024 22:14:23 -0700 Subject: [PATCH] fix: fix linting error --- litellm/llms/anthropic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), ) )