[CI][RFC] Replace black-jupyter with ruff-format (#37210)
Co-authored-by: Alison Shao <a.shao@wustl.edu>
This commit is contained in:
co-authored by
Alison Shao
parent
2641e427be
commit
28262c20df
@@ -110,9 +110,9 @@ class TestOpenAIServerFunctionCalling(CustomTestCase):
|
||||
|
||||
tool_calls = response.choices[0].message.tool_calls
|
||||
|
||||
assert (
|
||||
isinstance(tool_calls, list) and len(tool_calls) > 0
|
||||
), "tool_calls should be a non-empty list"
|
||||
assert isinstance(tool_calls, list) and len(tool_calls) > 0, (
|
||||
"tool_calls should be a non-empty list"
|
||||
)
|
||||
|
||||
function_name = tool_calls[0].function.name
|
||||
assert function_name == "add", "Function name should be 'add'"
|
||||
@@ -191,9 +191,9 @@ class TestOpenAIServerFunctionCalling(CustomTestCase):
|
||||
tools=tools,
|
||||
)
|
||||
|
||||
assert (
|
||||
"8" in final_response.choices[0].message.content
|
||||
), "tool_call response should have the sum 8 in the content"
|
||||
assert "8" in final_response.choices[0].message.content, (
|
||||
"tool_call response should have the sum 8 in the content"
|
||||
)
|
||||
|
||||
def test_function_calling_streaming_simple(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user