From e19e475c9f6d33e63354c3df10cd10fe839eff4f Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 16 May 2024 14:41:26 -0700 Subject: [PATCH] test - setting extra headers for anthropic tool use --- litellm/tests/test_completion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py index 120a65acb..439f549d1 100644 --- a/litellm/tests/test_completion.py +++ b/litellm/tests/test_completion.py @@ -278,7 +278,8 @@ def test_completion_claude_3_function_call(): model="anthropic/claude-3-opus-20240229", messages=messages, tools=tools, - tool_choice="auto", + tool_choice={"type": "tool", "name": "get_weather"}, + extra_headers={"anthropic-beta": "tools-2024-05-16"}, ) # Add any assertions, here to check response args print(response)