Fix openai (#34)

This commit is contained in:
yasirarism 2023-04-03 11:05:18 +07:00 committed by GitHub
parent 0e7924c8db
commit 8c7b57c03d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,7 @@ async def chatbot(c, m, strings):
await editPesan(msg, answer)
await asyncio.sleep(1.5)
num = 0
await editPesan(msg, answer)
await openai.aiosession.get().close()
except MessageTooLong:
answerlink = await post_to_telegraph(False, "MissKaty ChatBot ", answer)