This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Replies: 1 comment
-
Should be fixed by #504 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I ask a question that requires searching for an answer on the Internet, for example, "Who won the elections in Turkey?", then I get an error (full error below) If the message is like "Hello, world", then everything works fine
Traceback (most recent call last):
File "C:\Users\79005\PycharmProjects\pythonProject2\EdgeGPT\src\test\main.py", line 17, in
asyncio.run(main())
File "C:\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\79005\PycharmProjects\pythonProject2\EdgeGPT\src\test\main.py", line 10, in main
json_obj = await bot.ask(prompt="Who won the elections in Turkey?", conversation_style=ConversationStyle.creative)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\BING\Lib\site-packages\EdgeGPT\EdgeGPT.py", line 98, in ask
async for final, response in self.chat_hub.ask_stream(
File "E:\BING\Lib\site-packages\EdgeGPT\chathub.py", line 163, in ask_stream
raise Exception(
Exception: InvalidRequest: Culture is not supported. (Parameter 'name')
Russian-Russia is an invalid culture identifier.
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0000027A67030990>
Exception ignored in: <function ClientResponse.del at 0x0000027A654E4400>
Traceback (most recent call last):
File "E:\BING\Lib\site-packages\aiohttp\client_reqrep.py", line 811, in del
File "E:\BING\Lib\site-packages\aiohttp\connector.py", line 178, in release
File "E:\BING\Lib\site-packages\aiohttp\connector.py", line 663, in _release
File "E:\BING\Lib\site-packages\aiohttp\client_proto.py", line 63, in close
File "C:\Python311\Lib\asyncio\sslproto.py", line 112, in close
File "C:\Python311\Lib\asyncio\sslproto.py", line 619, in _start_shutdown
File "C:\Python311\Lib\asyncio\base_events.py", line 727, in call_later
File "C:\Python311\Lib\asyncio\base_events.py", line 740, in call_at
File "C:\Python311\Lib\asyncio\base_events.py", line 519, in _check_closed
RuntimeError: Event loop is closed
Process finished with exit code 1
Beta Was this translation helpful? Give feedback.
All reactions