mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-24 21:48:52 +00:00
test: updating HuggingFaceAPIChatGenerator tests
This commit is contained in:
parent
34bd31ef32
commit
425ce9b98f
@ -540,7 +540,7 @@ class TestHuggingFaceAPIChatGenerator:
|
||||
assert "Paris" in tool_call.arguments["city"]
|
||||
assert message.meta["finish_reason"] == "stop"
|
||||
|
||||
new_messages = chat_messages + [message, ChatMessage.from_tool(tool_result="22° C", origin=tool_call)]
|
||||
new_messages = chat_messages + [message, ChatMessage.from_tool(tool_result="22°", origin=tool_call)]
|
||||
|
||||
# the model tends to make tool calls if provided with tools, so we don't pass them here
|
||||
results = generator.run(new_messages, generation_kwargs={"max_tokens": 50})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user