Tachi67 commited on
Commit
b6d6570
·
1 Parent(s): 2dc4064

Update CodeWriterCtrlFlow.py

Browse files
Files changed (1) hide show
  1. CodeWriterCtrlFlow.py +1 -1
CodeWriterCtrlFlow.py CHANGED
@@ -85,7 +85,7 @@ class CodeWriterCtrlFlow(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()