Skip to content

Commit 425ce9b

Browse files
test: updating HuggingFaceAPIChatGenerator tests
1 parent 34bd31e commit 425ce9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/components/generators/chat/test_hugging_face_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def test_live_run_with_tools(self, tools):
540540
assert "Paris" in tool_call.arguments["city"]
541541
assert message.meta["finish_reason"] == "stop"
542542

543-
new_messages = chat_messages + [message, ChatMessage.from_tool(tool_result="22° C", origin=tool_call)]
543+
new_messages = chat_messages + [message, ChatMessage.from_tool(tool_result="22°", origin=tool_call)]
544544

545545
# the model tends to make tool calls if provided with tools, so we don't pass them here
546546
results = generator.run(new_messages, generation_kwargs={"max_tokens": 50})

0 commit comments

Comments
 (0)