mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix: expect simple message when no tool is selected
This commit is contained in:
parent
dfc4559017
commit
88121b3e4e
@ -237,8 +237,8 @@ async def test_flash_llama_grammar_tools_insufficient_information(
|
|||||||
stream=False,
|
stream=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert responses.choices[0].message.content is None
|
|
||||||
assert (
|
assert (
|
||||||
responses.choices[0].message.tool_calls[0]["function"]["name"] == "notify_error"
|
responses.choices[0].message.content
|
||||||
|
== "Cannot get current weather forecast from specified location and temperature unit. Please try again with different options."
|
||||||
)
|
)
|
||||||
assert responses == response_snapshot
|
assert responses == response_snapshot
|
||||||
|
Loading…
Reference in New Issue
Block a user