mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +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,
|
||||
)
|
||||
|
||||
assert responses.choices[0].message.content is None
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user