mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-03 01:54:44 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user