fix: remove content=none test when tool called (#6347)

This commit is contained in:
Shi Shuai
2025-05-24 06:12:55 +08:00
committed by GitHub
parent 8233cc10fd
commit 9c574585b3

View File

@@ -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"