Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] File "main.py", line 86, in generate_response #17

Closed
meowsynth opened this issue Aug 11, 2023 · 1 comment
Closed

[BUG] File "main.py", line 86, in generate_response #17

meowsynth opened this issue Aug 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@meowsynth
Copy link

meowsynth commented Aug 11, 2023

I downloaded your repository, installed dependencies via bat file, wrote my promt in instructions, wrote channel in channels.txt, wrote my token and word trigger
I tried to get some kind of response by replying to my message, but the bot gives an error in the console and doesn't respond, on the default settings from the repository everything worked a week ago when testing, but when I wrote my promt and my trigger words it stopped working.

image image
  • OS: Windows 11 last version, python 3.11
    "
    Add any other context about the problem here.
    AI Selfbot successfully logged in as 9w8.
    Task exception was never retrieved
    future: <Task finished name='Task-55' coro=<on_message..generate_response_in_thread() done, defined at main.py:252> exception=KeyError('choices')>
    Traceback (most recent call last):
    File "main.py", line 253, in generate_response_in_thread
    response = await generate_response(prompt, history)
    File "main.py", line 86, in generate_response
    choices = response_data["choices"]
    KeyError: 'choices'"

my discord id: 9w8
btw, if you can help...

@meowsynth meowsynth added the bug Something isn't working label Aug 11, 2023
@Najmul190
Copy link
Owner

This should now be fixed, make sure to update to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants