diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index 9a99f9efc82..490f31138ec 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -1399,7 +1399,7 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig): or [] ) tools = self.add_code_execution_tool(messages=anthropic_messages, tools=_tools) - if len(tools) > 1: + if len(tools) >= 1: optional_params["tools"] = tools ## Load Config