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 has been archived by the owner on Aug 3, 2023. It is now read-only.
I have tried this EdgeGPT and it works fine for a limited amount of query. So far I have not got any solution for this as this is in development phase.
I tried to hit the api continuously and it gave me error after few iterations. I am trying to read an excel file and from there I am sending the queries to the api. its handling 2 to 3 rows fine, but after that its giving me 'sourceAttributions' error. If anyone can help with it, I would be grateful.
PFB the error snippet:
Traceback (most recent call last):
File "c:\Users\SJ\Desktop\Python_Exrcise\ChatGPT\chat_1.py", line 33, in
asyncio.run(main())
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "c:\Users\SJ\Desktop\Python_Exrcise\ChatGPT\chat_1.py", line 28, in main
processed_text = await get_processed_text(line)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\SJ\Desktop\Python_Exrcise\ChatGPT\chat_1.py", line 8, in get_processed_text
response = await bot.ask(
^^^^^^^^^^^^^^
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\EdgeGPT.py", line 132, in ask
"sources": message["sourceAttributions"],
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'sourceAttributions'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have tried this EdgeGPT and it works fine for a limited amount of query. So far I have not got any solution for this as this is in development phase.
I tried to hit the api continuously and it gave me error after few iterations. I am trying to read an excel file and from there I am sending the queries to the api. its handling 2 to 3 rows fine, but after that its giving me 'sourceAttributions' error. If anyone can help with it, I would be grateful.
PFB the error snippet:
Traceback (most recent call last):
File "c:\Users\SJ\Desktop\Python_Exrcise\ChatGPT\chat_1.py", line 33, in
asyncio.run(main())
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "c:\Users\SJ\Desktop\Python_Exrcise\ChatGPT\chat_1.py", line 28, in main
processed_text = await get_processed_text(line)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\SJ\Desktop\Python_Exrcise\ChatGPT\chat_1.py", line 8, in get_processed_text
response = await bot.ask(
^^^^^^^^^^^^^^
File "C:\Users\SJ\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\EdgeGPT.py", line 132, in ask
"sources": message["sourceAttributions"],
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'sourceAttributions'
Beta Was this translation helpful? Give feedback.
All reactions