Description
I just ran the new example code for version 2.1.0, and this is what I get. I've tried it in two different computers, with no result
Steps to Reproduce
Execute the code for V2 in README.md
Get the error
Expected behavior
The program gets the actual response
Output
D:\Users\perez\Documents\progra\web_2bach>python -u "d:\Users\perez\Documents\progra\web_2bach\web5\losingmysanitytest.py"
Traceback (most recent call last):
File "d:\Users\perez\Documents\progra\web_2bach\web5\losingmysanitytest.py", line 10, in
asyncio.run(main())
File "C:\Users\perez\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\perez\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\perez\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "d:\Users\perez\Documents\progra\web_2bach\web5\losingmysanitytest.py", line 5, in main
response =await chatbot.ask("Hello")
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object async_generator can't be used in 'await' expression
Environment
revChatGPT-2.1.0
Windows 10
Python 3.11.2
Description I just ran the new example code for version 2.1.0, and this is what I get. I've tried it in two different computers, with no result
Steps to Reproduce
Expected behavior The program gets the actual response
Output
D:\Users\perez\Documents\progra\web_2bach>python -u "d:\Users\perez\Documents\progra\web_2bach\web5\losingmysanitytest.py" Traceback (most recent call last): File "d:\Users\perez\Documents\progra\web_2bach\web5\losingmysanitytest.py", line 10, in
asyncio.run(main())
File "C:\Users\perez\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\perez\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\perez\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "d:\Users\perez\Documents\progra\web_2bach\web5\losingmysanitytest.py", line 5, in main
response =await chatbot.ask("Hello")
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object async_generator can't be used in 'await' expression
Environment revChatGPT-2.1.0 Windows 10 Python 3.11.2