fix : errors related to API based LLMs

This commit is contained in:
martin legrand
2025-05-01 18:17:03 +02:00
parent 68d471bfc6
commit 68ed1834a9
5 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ class PlannerAgent(Agent):
return []
agents_tasks = self.parse_agent_tasks(answer)
if agents_tasks == []:
prompt = f"Failed to parse the tasks. Please make a plan within ```json. Do not ask for clarification.\n"
prompt = f"Failed to parse the tasks. Please write down your task followed by a json plan within ```json. Do not ask for clarification.\n"
pretty_print("Failed to make plan. Retrying...", color="warning")
continue
self.show_plan(agents_tasks, answer)