Improve error messaging (#3236)

* Update error language and corresponding tests

* Updated another test to use the new error message
This commit is contained in:
Umer Mansoor
2024-07-29 07:50:46 -07:00
committed by GitHub
parent d3d4cc0c2f
commit 36ead68c9a
3 changed files with 7 additions and 7 deletions

View File

@@ -94,11 +94,11 @@ _tool_use_message_1_bad_json_expected_reply = {
{
"tool_call_id": "1",
"role": "tool",
"content": "Error: Expecting property name enclosed in double quotes: line 1 column 37 (char 36)\n You argument should follow json format.",
"content": "Error: Expecting property name enclosed in double quotes: line 1 column 37 (char 36)\n The argument must be in JSON format.",
},
{"tool_call_id": "2", "role": "tool", "content": "_tool_func_2: value3 value4"},
],
"content": "Error: Expecting property name enclosed in double quotes: line 1 column 37 (char 36)\n You argument should follow json format.\n\n_tool_func_2: value3 value4",
"content": "Error: Expecting property name enclosed in double quotes: line 1 column 37 (char 36)\n The argument must be in JSON format.\n\n_tool_func_2: value3 value4",
}
_tool_use_message_1_error_expected_reply = {
@@ -154,7 +154,7 @@ _function_use_message_1_expected_reply = {
_function_use_message_1_bad_json_expected_reply = {
"name": "_tool_func_1",
"role": "function",
"content": "Error: Expecting property name enclosed in double quotes: line 1 column 37 (char 36)\n You argument should follow json format.",
"content": "Error: Expecting property name enclosed in double quotes: line 1 column 37 (char 36)\n The argument must be in JSON format.",
}
_function_use_message_1_error_expected_reply = {