Update PlanWriterCtrlFlow.py
Browse files- PlanWriterCtrlFlow.py +1 -1
PlanWriterCtrlFlow.py
CHANGED
|
@@ -85,7 +85,7 @@ class PlanWriterCtrlFlow(ChatAtomicFlow):
|
|
| 85 |
response = json.loads(api_output)
|
| 86 |
return response
|
| 87 |
except json.decoder.JSONDecodeError:
|
| 88 |
-
new_goal = f"Here is your previous response {api_output}, it cannot be parsed with json.loads, please fix this issue."
|
| 89 |
new_input_data = input_data.copy()
|
| 90 |
new_input_data['goal'] = new_goal
|
| 91 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|
|
|
|
| 85 |
response = json.loads(api_output)
|
| 86 |
return response
|
| 87 |
except json.decoder.JSONDecodeError:
|
| 88 |
+
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."
|
| 89 |
new_input_data = input_data.copy()
|
| 90 |
new_input_data['goal'] = new_goal
|
| 91 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|