-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Unroll notify error into generate response" (#2605)
- Loading branch information
Showing
4 changed files
with
44 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 22 additions & 10 deletions
32
...snapshots__/test_tools_llama/test_flash_llama_grammar_tools_insufficient_information.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
{ | ||
"choices": [ | ||
{ | ||
"finish_reason": "stop", | ||
"finish_reason": "eos_token", | ||
"index": 0, | ||
"logprobs": null, | ||
"message": { | ||
"content": "There is a huge storm in the ocean", | ||
"content": null, | ||
"name": null, | ||
"role": "assistant", | ||
"tool_calls": null | ||
"tool_calls": [ | ||
{ | ||
"function": { | ||
"arguments": { | ||
"error": "Cannot get current weather forecast from specified location and temperature unit. Please try again with different options." | ||
}, | ||
"description": null, | ||
"name": "notify_error" | ||
}, | ||
"id": 0, | ||
"type": "function" | ||
} | ||
] | ||
}, | ||
"usage": null | ||
} | ||
], | ||
"created": 1727796440, | ||
"created": 1712852597, | ||
"id": "", | ||
"model": "meta-llama/Llama-3.1-8B-Instruct", | ||
"object": "chat.completion", | ||
"system_fingerprint": "2.3.1-dev0-native", | ||
"model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", | ||
"object": "text_completion", | ||
"system_fingerprint": "1.4.5-native", | ||
"usage": { | ||
"completion_tokens": 25, | ||
"prompt_tokens": 600, | ||
"total_tokens": 625 | ||
"completion_tokens": 39, | ||
"prompt_tokens": 496, | ||
"total_tokens": 535 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters