liyongsea / parallel_corpus_mnbvc

parallel corpus dataset from the mnbvc project
Apache License 2.0
8 stars 5 forks source link

Found a pandas lib bug and tried to fix it #33

Closed Wzixiao closed 1 year ago

Wzixiao commented 1 year ago

20230614174233-1274x159

pandas version: 2.0.2

Wzixiao commented 1 year ago

utils.UnknownError: That model is currently overloaded with other requests. You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the request ID 12c6b2315f1e2707f8135445b5bc40c8 in your message.)

# utils.py line 101 
if 'error' in response_json:
  error = response_json['error']
  if 'code' in error and error['code'] == 'invalid_request_error':
      raise ExceededContextLength(error['message'])
  else:
      logging.error(error['message'])
      time.sleep(5)
      return gpt_detect_hard_line_breaks(line_break_text, use_proxy, retries)