Unverified Commit 9c574585 authored by Shi Shuai's avatar Shi Shuai Committed by GitHub
Browse files

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

parent 8233cc10
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment