labteral/chatgpt-python

timeout

kazu-321 opened this issue · 3 comments

It takes time to respond and is canceled.
Is it possible to set a timeout?

i want to use it for my discord bot.
...
async with message.channel.typing():
await message.reply(chat.chat(message.content))
but it takes time and there are no reply....

Hello kazu, with the next version this problem will be solved. You will be able to control the timeout yourself.

I looked at this gits code and understood that i can control timeout by giving args like Conversation(timeout=500)
Thank you