#ChatCompletion get many timeout error and timeout attribute not working

3 messages · Page 1 of 1 (latest)

raven kettle
#

I'm encountering many error (timeout with no response) in requests in last few days while using ChatGPT api...Sometimes even the timeout attribute in ChatCompletion fails to work (set 30, wait 5 minutes until it timeout) so I have to implement a timeout by myself. It started few days ago and persist until now.

#
    def get_completion(self, message):
        return openai.ChatCompletion.create(model="gpt-3.5-turbo",
                                            messages=list(self.history.queue) + self.command(message),
                                            presence_penalty=1,
                                            frequency_penalty=1,
                                            temperature=constant.temperature, timeout=30)```
#

ChatCompletion get many timeout error and timeout attribute not working