mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
ignore template path
This commit is contained in:
parent
2c22a94aa4
commit
e37d87b521
3 changed files with 3 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ class ToolRecommender(BaseModel):
|
|||
repair_llm_raw_output(output=ranked_tools, req_keys=[None], repair_type=RepairType.JSON)
|
||||
)
|
||||
except json.JSONDecodeError:
|
||||
ranked_tools = await self.llm.aask(msg=JSON_REPAIR_PROMPT.format(json_data=rsp))
|
||||
ranked_tools = await LLM().aask(msg=JSON_REPAIR_PROMPT.format(json_data=rsp))
|
||||
ranked_tools = json.loads(CodeParser.parse_code(block=None, lang="json", text=ranked_tools))
|
||||
except Exception:
|
||||
tb = traceback.format_exc()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue