Update Controller_CoderFlow.py
Browse files- Controller_CoderFlow.py +1 -1
Controller_CoderFlow.py
CHANGED
|
@@ -117,7 +117,7 @@ class Controller_CoderFlow(ChatAtomicFlow):
|
|
| 117 |
response = json.loads(api_output)
|
| 118 |
return response
|
| 119 |
except (json.decoder.JSONDecodeError, json.JSONDecodeError):
|
| 120 |
-
new_goal = f"Here is your previous response {api_output}, it cannot be parsed with json.loads, please fix this issue."
|
| 121 |
new_input_data = input_data.copy()
|
| 122 |
new_input_data['result'] = new_goal
|
| 123 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|
|
|
|
| 117 |
response = json.loads(api_output)
|
| 118 |
return response
|
| 119 |
except (json.decoder.JSONDecodeError, json.JSONDecodeError):
|
| 120 |
+
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."
|
| 121 |
new_input_data = input_data.copy()
|
| 122 |
new_input_data['result'] = new_goal
|
| 123 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|