mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
reformat
This commit is contained in:
parent
d2f6fc2594
commit
70bddcfd3c
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class WriteAnalysisCode(Action):
|
|||
|
||||
rsp = await self._aask(reflection_prompt, system_msgs=[REFLECTION_SYSTEM_MSG])
|
||||
reflection = json.loads(CodeParser.parse_code(text=rsp))
|
||||
if '```python' in reflection["improved_impl"]:
|
||||
if "```python" in reflection["improved_impl"]:
|
||||
reflection["improved_impl"] = CodeParser.parse_code(text=reflection["improved_impl"], lang="python")
|
||||
|
||||
return reflection["improved_impl"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue