mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
Merge branch 'data_analyst_ldy' into 'mgx_ops'
restrict to json lang See merge request pub/MetaGPT!180
This commit is contained in:
commit
2f3bb0e697
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ class DataAnalyst(DataInterpreter):
|
|||
# print(*context, sep="\n" + "*" * 5 + "\n")
|
||||
async with ThoughtReporter(enable_llm_stream=True):
|
||||
rsp = await self.llm.aask(context)
|
||||
self.commands = json.loads(CodeParser.parse_code(block=None, text=rsp))
|
||||
self.commands = json.loads(CodeParser.parse_code(block=None, lang='json', text=rsp))
|
||||
self.rc.working_memory.add(Message(content=rsp, role="assistant"))
|
||||
|
||||
await run_commands(self, self.commands, self.rc.working_memory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue