Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test_passing_tool_result_as_list

Ishaan Jafff522f40228fc
diff --git a/tests/local_testing/test_function_calling.py b/tests/local_testing/test_function_calling.py
index a3443499d0e..0c75e37134c 100644
--- a/tests/local_testing/test_function_calling.py
+++ b/tests/local_testing/test_function_calling.py
@@ -589,12 +589,12 @@ def test_anthropic_function_call_with_no_schema(model):
@pytest.mark.parametrize(
"model",
[
- "anthropic/claude-3-5-sonnet-20241022",
"bedrock/anthropic.claude-3-sonnet-20240229-v1:0",
],
)
def test_passing_tool_result_as_list(model):
litellm.set_verbose = True
+ litellm._turn_on_debug()
messages = [
{
"content": [
@@ -643,8 +643,7 @@ def test_passing_tool_result_as_list(model):
],
"role": "tool",
"tool_call_id": "toolu_01V1paXrun4CVetdAGiQaZG5",
- "name": "execute_bash",
- "cache_control": {"type": "ephemeral"},
+ "name": "execute_bash"
},
]
tools = [