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
(wikibot) who is jesus?
Traceback (most recent call last):
File "main.py", line 196, in
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "main.py", line 191, in main
await answer_question(question)
File "main.py", line 153, in answer_question
page_search_query = await question_to_page_search_query(question)
File "main.py", line 61, in question_to_page_search_query
return await gen_completion(prompt)
File "main.py", line 48, in gen_completion
return sanitize_response((await resp.json())["choices"][0]["text"])
KeyError: 'choices'
program ends
Any idea on what may trigger this behaviour?
The text was updated successfully, but these errors were encountered:
Python 3.8.10
Ubuntu 20.04.5 LTS
log:
Welcome to Wikipedia GPT-3 Bot. Ask any question.
(wikibot) who is jesus?
Traceback (most recent call last):
File "main.py", line 196, in
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "main.py", line 191, in main
await answer_question(question)
File "main.py", line 153, in answer_question
page_search_query = await question_to_page_search_query(question)
File "main.py", line 61, in question_to_page_search_query
return await gen_completion(prompt)
File "main.py", line 48, in gen_completion
return sanitize_response((await resp.json())["choices"][0]["text"])
KeyError: 'choices'
program ends
Any idea on what may trigger this behaviour?
The text was updated successfully, but these errors were encountered: