Skip to content

Commit 83e86c5

Browse files
committed
[unit tests] Adding a space in the model output
Signed-off-by: avigny <[email protected]>
1 parent 7cbfaef commit 83e86c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tool_use/test_mistral_tool_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def _test_extract_tool_calls_streaming(
494494
"",
495495
),
496496
(
497-
"""[TOOL_CALLS][{"name": "add", "arguments": {"a": 3.5, "b": 4}}, {"name": "get_current_weather", "arguments":{"city": "San Francisco", "state": "CA", "unit": "celsius"}}]""", # noqa: E501
497+
"""[TOOL_CALLS] [{"name": "add", "arguments": {"a": 3.5, "b": 4}}, {"name": "get_current_weather", "arguments":{"city": "San Francisco", "state": "CA", "unit": "celsius"}}]""", # noqa: E501
498498
[
499499
ToolCall(
500500
function=FunctionCall(
@@ -790,7 +790,7 @@ def test_extract_tool_calls_streaming_one_chunk(
790790
"",
791791
),
792792
(
793-
"""[TOOL_CALLS][{"arguments": {"a": 3.5, "b": 4}, "name": "add"}, {"arguments":{"city": "San Francisco", "state": "CA", "unit": "celsius"}, "name": "get_current_weather"}]""", # noqa: E501
793+
"""[TOOL_CALLS] [{"arguments": {"a": 3.5, "b": 4}, "name": "add"}, {"arguments":{"city": "San Francisco", "state": "CA", "unit": "celsius"}, "name": "get_current_weather"}]""", # noqa: E501
794794
[
795795
ToolCall(
796796
function=FunctionCall(

0 commit comments

Comments
 (0)