From c0239a0a79f17095d87e87eddf5a8f169fcfca76 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 24 May 2025 20:50:09 -0700 Subject: [PATCH] feat - add code_execution tool to anthropic --- litellm/llms/anthropic/chat/transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index d7756bead0..e7f421e75b 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -63,7 +63,7 @@ else: LoggingClass = Any -ANTHROPIC_HOSTED_TOOLS = ["web_search", "bash", "text_editor"] +ANTHROPIC_HOSTED_TOOLS = ["web_search", "bash", "text_editor", "code_execution"] class AnthropicConfig(AnthropicModelInfo, BaseConfig):