-
Notifications
You must be signed in to change notification settings - Fork 23
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
API error #24
Comments
I am experiencing the same issue. |
If you are a new OpenAI API user, you may have exceeded your free credits. Please check your OpenAI account. Also, the installation is not working well with the new Raspberry Pi OS released on December 5, 2023. For best results, please use a Raspberry Pi 4 (not Raspberry Pi 5) and the legacy OS. Please refer to the new Important - Please read file on this repository. |
Hi, I followed your guide yesterday using a Pi 4 and the legacy 64bit OS with a brand new unused OpenAI account and I'm having this exact same issue. I also went back and made new AWS keys using the addendum but to no avail. Do you have any more possible suggestions as to what the cause might be? |
Please tell me more about the error so that I can see if I can help. Are you getting a voice response when you first say "DaVinci". If not, what is the exact written error that is displayed in your terminal? |
I ran into this. The problem was that with a new free OpenAI account you do not have access to GPT-4, change it to
|
I changed to gpt-3.5-turbo but still get the same error. |
@LavaSlider - Thank you for figuring this out and for the suggested code snippet. @SprocketHub - Please send a copy of the code change for verification. Or sign up with OpenAI for a paid account. With normal usage, you should incur just a few dollars charge per month (much less expensive than ChatGPT Plus). |
Ok so, I've been busy for a few days and just came back to this and it's now working! I bought some credit so that must have been the issue I guess, thank you so much for helping Dev and Lava. As a side note, when I ssh into my pi and manually run this script I get a text output of the interaction which is great. However I made a shortcut on the pi desktop to run the script but now I don't get that text output which is very handy to save me repeating questions, is there a way to run this from the desktop and have a terminal open with a chat transcrcipt? Or maybe even output the text to a pi screen? |
Are you getting any error messages? If not, you can enable VNC [https://www.raspberrypi.com/documentation/computers/remote-access.html#vnc] to remotely log into the Raspberry Pi from your computer. That will allow you to check the audio settings and adjust the volume. Additionally, this will allow you to keep a terminal open with a chat transcript. |
No error messages at all now. I did try it straight away after buying credit a few days ago and it didn't work but today it has been flawless so I guess it takes a little time to register that you've just paid. VNC was very helpful and I have it added to my teamviewer account now, thank you. |
Very happy to hear that you got it working. Enjoy. |
I added this to my code and it helped greatly. Thank you! |
so close to getting it running, responds with wake word but then says api error
admin@raspberrypi:~ $ cd /home/admin/DaVinci
admin@raspberrypi:~/DaVinci $ python3 DaVinci.py
jarvis detected
Listening...
Voice detected
End of query detected
What would happen if the moon were to disappear.
There was an API error. Please try again in a few minutes.
The text was updated successfully, but these errors were encountered: