Update PlanGeneratorAtomicFlow.py
Browse files
PlanGeneratorAtomicFlow.py
CHANGED
|
@@ -44,7 +44,7 @@ class PlanGeneratorAtomicFlow(ChatAtomicFlow):
|
|
| 44 |
response = json.loads(api_output)
|
| 45 |
return response
|
| 46 |
except json.decoder.JSONDecodeError:
|
| 47 |
-
new_goal = f"Here is your previous response {api_output}, it cannot be parsed with json.loads, please fix this issue."
|
| 48 |
new_input_data = input_data.copy()
|
| 49 |
new_input_data['goal'] = new_goal
|
| 50 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|
|
|
|
| 44 |
response = json.loads(api_output)
|
| 45 |
return response
|
| 46 |
except json.decoder.JSONDecodeError:
|
| 47 |
+
new_goal = f"Here is your previous response {api_output}, it cannot be parsed with json.loads, please fix this issue. Provide your response only in JSON format."
|
| 48 |
new_input_data = input_data.copy()
|
| 49 |
new_input_data['goal'] = new_goal
|
| 50 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|