shaocongma commited on
Commit
9476105
1 Parent(s): c104543
Files changed (1) hide show
  1. utils/gpt_interaction.py +1 -0
utils/gpt_interaction.py CHANGED
@@ -106,6 +106,7 @@ class GPTModel:
106
  assistant_message = response['choices'][0]["message"]["content"]
107
  usage = response['usage']
108
  log.info(assistant_message)
 
109
  if return_json:
110
  assistant_message = json.loads(assistant_message)
111
  return assistant_message, usage
 
106
  assistant_message = response['choices'][0]["message"]["content"]
107
  usage = response['usage']
108
  log.info(assistant_message)
109
+ time.sleep(15)
110
  if return_json:
111
  assistant_message = json.loads(assistant_message)
112
  return assistant_message, usage