Tachi67 commited on
Commit
1c2c11a
·
1 Parent(s): 2ccdbc0

Update Controller_CoderFlow.py

Browse files
Files changed (1) hide show
  1. 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()