mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
restrict to json lang
This commit is contained in:
parent
329f078b9a
commit
97e9409ead
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