mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 17:56:23 +02:00
test: set temperature=0.0
This commit is contained in:
parent
2dd754d977
commit
9d49caa8cc
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ async def test_write_code_reuse_code_long():
|
|||
Message(content=structural_context, role="user"),
|
||||
]
|
||||
trials_num = 5
|
||||
trials = [WriteCodeByGenerate().run(context=context) for _ in range(trials_num)]
|
||||
trials = [WriteCodeByGenerate().run(context=context, temperature=0.0) for _ in range(trials_num)]
|
||||
trial_results = await asyncio.gather(*trials)
|
||||
print(*trial_results, sep="\n\n***\n\n")
|
||||
success = ["load_iris" not in result and "iris_data" in result \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue