From 9c574585b3bba10b7e77cf331e02a019bda04c87 Mon Sep 17 00:00:00 2001 From: Shi Shuai <126407087+shuaills@users.noreply.github.com> Date: Sat, 24 May 2025 06:12:55 +0800 Subject: [PATCH] fix: remove content=none test when tool called (#6347) --- test/srt/test_function_calling.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/srt/test_function_calling.py b/test/srt/test_function_calling.py index 3b436ff92..9556cf87b 100644 --- a/test/srt/test_function_calling.py +++ b/test/srt/test_function_calling.py @@ -83,13 +83,8 @@ class TestOpenAIServerFunctionCalling(CustomTestCase): tools=tools, ) - content = response.choices[0].message.content tool_calls = response.choices[0].message.tool_calls - assert content is None, ( - "When function call is successful, message.content should be None, " - f"but got: {content}" - ) assert ( isinstance(tool_calls, list) and len(tool_calls) > 0 ), "tool_calls should be a non-empty list"