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