Discord-AI-Selfbot icon indicating copy to clipboard operation
Discord-AI-Selfbot copied to clipboard

[BUG] KeyError: 'choices'

Open C0DE4ME opened this issue 3 months ago • 2 comments

think its just an issue with api/cookies, dunno...? Bard is now Gemini and ChatGPT has had major upgrades, neither seem to work with this now.

ive looked at #41 , #17 , and #36 didnt help much :(

i get:

Task exception was never retrieved future: <Task finished name='Task-22' coro=<on_message..generate_response_in_thread() done, defined at C:\Users\Me\Discord-AI-Selfbot\main.py:253> exception=KeyError('choices')> Traceback (most recent call last): File "C:\Users\Me\Discord-AI-Selfbot\main.py", line 254, in generate_response_in_thread response = await generate_response(prompt, history) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Me\Discord-AI-Selfbot\main.py", line 87, in generate_response choices = response_data["choices"] ~~~~~~~~~~~~~^^^^^^^^^^^ KeyError: 'choices'

C0DE4ME avatar Mar 25 '24 06:03 C0DE4ME