mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-29 01:48:57 +00:00
groq,openai,mistralai: fix unit tests (#28279)
This commit is contained in:
parent
9a717c9b32
commit
29f8a79ebe
@ -112,7 +112,7 @@ def test__convert_dict_to_message_tool_call() -> None:
|
||||
name="GenerateUsername",
|
||||
args="oops",
|
||||
id="call_wm0JY6CdwOMZ4eTxHWUThDNz",
|
||||
error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE", # noqa: E501
|
||||
error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE ", # noqa: E501
|
||||
type="invalid_tool_call",
|
||||
),
|
||||
],
|
||||
|
@ -212,7 +212,7 @@ def test__convert_dict_to_message_tool_call() -> None:
|
||||
InvalidToolCall(
|
||||
name="GenerateUsername",
|
||||
args="oops",
|
||||
error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE", # noqa: E501
|
||||
error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE ", # noqa: E501
|
||||
id="ssAbar4Dr",
|
||||
type="invalid_tool_call",
|
||||
),
|
||||
|
@ -168,7 +168,7 @@ def test__convert_dict_to_message_tool_call() -> None:
|
||||
"Function GenerateUsername arguments:\n\noops\n\nare not "
|
||||
"valid JSON. Received JSONDecodeError Expecting value: line 1 "
|
||||
"column 1 (char 0)\nFor troubleshooting, visit: https://python"
|
||||
".langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE"
|
||||
".langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE "
|
||||
),
|
||||
type="invalid_tool_call",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user