Closed Delamcode closed 1 year ago
Unless it already exists and I'm stupid?
https://github.com/acheong08/Bard/releases/tag/1.3.0
I just finished it
Do you have docs for it?
Nvm I got it
I got the #31 error but works without async…
Now I’m getting “this event loop is already running” without even using async, but it’s trying to call async still!
Might happen if you run sync inside an async function
I got the #31 error but works without async…
That literally makes no sense. The sync class runs async code. It's just hiding it from you
Might happen if you run sync inside an async function
Oh…. Lol
I got the #31 error but works without async…
That literally makes no sense. The sync class runs async code. It's just hiding it from you
Yeah yeah was using old version on that instance
With async, you need to call create
instead of the standard initialization.
It's a restriction of Python, you can't have async in class init
Could you explain how I’m supposed to do it then? With a code example please. On Jun 3, 2023, 3:58 AM +0200, Antonio Cheong @.***>, wrote:
It's a restriction of Python, you can't have async in class init — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Replace chatbot = AsyncChatbot(...)
with chatbot = await AsyncChatbot.create(...)
title ;)