You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2024. It is now read-only.
I installed the bot, added persona. When I refer to it, it adds reaction and starts typing but there is no any text.
In console I see this error:
[2023-10-04 19:54:23] [ERROR ] discord.client: Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Python\lib\site-packages\discord\client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "main.py", line 173, in on_message
response = await asyncio.to_thread(generate_response, instructions=instructions, search=search_results, history=history)
AttributeError: module 'asyncio' has no attribute 'to_thread'
Also right after starting I see this:
C:\Projects\AI\Discord-AI-Chatbot>python main.py Looks like the environment variables exists...
Discord Token environment variable is valid
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000206B9C5D4C0>
Traceback (most recent call last):
File "C:\Python\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Python\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Python\lib\asyncio\base_events.py", line 719, in call_soon
self._check_closed()
File "C:\Python\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Not sure whether it is normal or not.
The text was updated successfully, but these errors were encountered:
I installed the bot, added persona. When I refer to it, it adds reaction and starts typing but there is no any text.
In console I see this error:
Also right after starting I see this:
Not sure whether it is normal or not.
The text was updated successfully, but these errors were encountered: