Update Controller_JarvisFlow.py
Browse files- Controller_JarvisFlow.py +2 -1
Controller_JarvisFlow.py
CHANGED
|
@@ -105,7 +105,8 @@ class Controller_JarvisFlow(ChatAtomicFlow):
|
|
| 105 |
response = json.loads(api_output)
|
| 106 |
return response
|
| 107 |
except json.decoder.JSONDecodeError:
|
|
|
|
| 108 |
new_input_data = input_data.copy()
|
| 109 |
-
new_input_data['
|
| 110 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|
| 111 |
return json.loads(new_api_output)
|
|
|
|
| 105 |
response = json.loads(api_output)
|
| 106 |
return response
|
| 107 |
except json.decoder.JSONDecodeError:
|
| 108 |
+
new_goal = f"Here is your previous response {api_output}, it cannot be parsed with json.loads, please fix this issue."
|
| 109 |
new_input_data = input_data.copy()
|
| 110 |
+
new_input_data['goal'] = new_goal
|
| 111 |
new_api_output = super().run(new_input_data)["api_output"].strip()
|
| 112 |
return json.loads(new_api_output)
|