feat: (0.6)New UI (#1855)

Co-authored-by: 夏姜 <wenfengjiang.jwf@digital-engine.com>
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: wb-lh513319 <wb-lh513319@alibaba-inc.com>
Co-authored-by: csunny <cfqsunny@163.com>
This commit is contained in:
明天
2024-08-21 17:37:45 +08:00
committed by GitHub
parent 3fc82693ba
commit b124ecc10b
824 changed files with 93371 additions and 2515 deletions

View File

@@ -112,8 +112,10 @@ async def test_function_tool_sync_with_args() -> None:
f"sample: Call this tool to interact with the sample API. What is the "
f"sample API useful for? Add two numbers. Parameters: {json_params}"
)
assert await ft.get_prompt() == expected_prompt
assert await ft1.get_prompt() == expected_prompt
pmt, info = await ft.get_prompt()
pmt1, info1 = await ft1.get_prompt()
assert pmt == expected_prompt
assert pmt1 == expected_prompt
assert ft.execute(1, 2) == 3
with pytest.raises(ValueError):
await ft.async_execute(1, 2)