A Discord chatbot / selfbot that allows users to talk to AI powered by Groq API which uses Meta Llama-3 or use your own ChatGPT API key. The AI runs on a genuine Discord account, not a bot account and so it can be put in any server without any permissions! Try it out at: https://discord.gg/yUWmzQBV4P
GNU General Public License v3.0
104
stars
31
forks
source link
[BUG] File "main.py", line 86, in generate_response #17
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.
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'"
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.
my discord id: 9w8 btw, if you can help...