Skip to content

Commit 5502340

Browse files
committed
Tool calls test
1 parent 711cf51 commit 5502340

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/integrations/huggingface_hub/test_huggingface_hub.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -607,11 +607,7 @@ def test_chat_completion_with_tools(
607607

608608
expected_data = {
609609
"gen_ai.operation.name": "chat",
610-
"gen_ai.request.available_tools": '[{"type": "function", "function": {"name": '
611-
'"get_weather", "description": "Get current '
612-
'weather", "parameters": {"type": "object", '
613-
'"properties": {"location": {"type": '
614-
'"string"}}, "required": ["location"]}}}]',
610+
"gen_ai.request.available_tools": '[{"type": "function", "function": {"name": "get_weather", "description": "Get current weather", "parameters": {"type": "object", "properties": {"location": {"type": "string"}}, "required": ["location"]}}}]',
615611
"gen_ai.request.model": "test-model",
616612
"gen_ai.response.finish_reasons": "tool_calls",
617613
"gen_ai.response.model": "test-model-123",

0 commit comments

Comments
 (0)