From c8d248c8247cb2d664e6caffe3dc4ca057e2c413 Mon Sep 17 00:00:00 2001 From: Krish Dholakia Date: Tue, 22 Oct 2024 09:50:47 -0700 Subject: [PATCH] fix(anthropic/chat/transformation.py): fix anthropic header (#6365) --- litellm/llms/anthropic/chat/transformation.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index a7beef69941..4d01698ad3f 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -274,9 +274,6 @@ class AnthropicConfig: ## Handle Tool Calling if "tools" in optional_params: _is_function_call = True - if "anthropic-beta" not in headers: - # default to v1 of "anthropic-beta" - headers["anthropic-beta"] = "tools-2024-05-16" anthropic_tools = [] for tool in optional_params["tools"]: if "input_schema" in tool: # assume in anthropic format