diff --git a/utils/chatgpt.py b/utils/chatgpt.py index 4472390..8c8e44a 100644 --- a/utils/chatgpt.py +++ b/utils/chatgpt.py @@ -132,6 +132,7 @@ class ChatGPT: r = requests.post( url, headers=self.headers, json=data, proxies=self.proxies, stream=True ) + if r.status_code != 200: # wait for 20s logger.error(r.text)