also handle generic error while streaming response

This commit is contained in:
ned
2023-03-26 13:04:16 +02:00
parent 90365c6d9e
commit 50647ffdc0

View File

@@ -375,6 +375,10 @@ class ChatGPT3TelegramBot:
logging.warning(str(e))
await asyncio.sleep(1)
except Exception as e:
logging.warning(str(e))
continue
await asyncio.sleep(0.01)
i += 1