mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-23 15:48:11 +02:00
update CodeParser.parse_code.
This commit is contained in:
parent
31813f2512
commit
a06d8023d6
3 changed files with 4 additions and 3 deletions
|
|
@ -139,6 +139,7 @@ class TestOpenAI:
|
|||
assert "code" in code
|
||||
assert "language" in code
|
||||
assert "hello world" in code["code"]
|
||||
logger.info(f'code is : {code["code"]}')
|
||||
|
||||
if "Completed a python code for hello world!" == code["code"]:
|
||||
code["language"] == "markdown"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue