mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
rename tests
This commit is contained in:
parent
93acfd5788
commit
9604dec795
2 changed files with 2 additions and 5 deletions
|
|
@ -28,11 +28,9 @@ RECORD_PATH = TASK_PATH.joinpath("record.txt")
|
|||
TASK_DESC_PATH = TASK_PATH.joinpath("task_desc.txt")
|
||||
DOCS_DIR = TASK_PATH.joinpath("storage")
|
||||
|
||||
testaction = Action(name="test")
|
||||
test_action = Action(name="test")
|
||||
|
||||
|
||||
# TODO test for parse record
|
||||
# 仅使用一张图像进行测试
|
||||
async def manual_test():
|
||||
img_before_base64 = encode_image(TEST_BEFORE_PATH)
|
||||
img_after_base64 = encode_image(TEST_AFTER_PATH)
|
||||
|
|
@ -90,10 +88,9 @@ async def manual_test():
|
|||
logger.info(f"Waiting for GPT-4V to generate documentation for the element {resource_id}")
|
||||
|
||||
node = await RECORD_PARSE_NODE.fill(
|
||||
context=context, llm=testaction.llm, images=[img_before_base64, img_after_base64]
|
||||
context=context, llm=test_action.llm, images=[img_before_base64, img_after_base64]
|
||||
)
|
||||
|
||||
# log_path = task_dir.joinpath(f"log_{app_name}_{demo_name}.txt")
|
||||
node.compile(context=context, schema="json", mode="auto")
|
||||
msg = node.content
|
||||
doc_content[action_type] = msg
|
||||
Loading…
Add table
Add a link
Reference in a new issue