mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 18:25:22 +00:00
test - setting extra headers for anthropic tool use
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user