fix: remove content=none test when tool called (#6347)
This commit is contained in:
@@ -83,13 +83,8 @@ class TestOpenAIServerFunctionCalling(CustomTestCase):
|
|||||||
tools=tools,
|
tools=tools,
|
||||||
)
|
)
|
||||||
|
|
||||||
content = response.choices[0].message.content
|
|
||||||
tool_calls = response.choices[0].message.tool_calls
|
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 (
|
assert (
|
||||||
isinstance(tool_calls, list) and len(tool_calls) > 0
|
isinstance(tool_calls, list) and len(tool_calls) > 0
|
||||||
), "tool_calls should be a non-empty list"
|
), "tool_calls should be a non-empty list"
|
||||||
|
|||||||
Reference in New Issue
Block a user