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

Unexpected error: No API key provided. #12

Open
jackhou66 opened this issue Aug 23, 2024 · 1 comment
Open

Unexpected error: No API key provided. #12

jackhou66 opened this issue Aug 23, 2024 · 1 comment

Comments

@jackhou66
Copy link

jackhou66 commented Aug 23, 2024

ros2 foxy

where i can

[ROSGPT] Command received. I want that you move forward 1 meter speed 1 . Asking ChatGPT ...
Unexpected error: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.

when i set the bashrc file about API-key i got the error

[ROSGPT] Command received. I want that you move forward 1 meter speed 1 . Asking ChatGPT ...
Unexpected error: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
127.0.0.1 - - [23/Aug/2024 14:39:36] "POST /rosgpt HTTP/1.1" 500 -
Traceback (most recent call last):
File "/home/jjj/.local/lib/python3.8/site-packages/flask/app.py", line 1498, in call

@jackhou66
Copy link
Author

jackhou66 commented Aug 23, 2024

from chargpt help page:

This error message indicates that you hit your monthly usage limit for the API, or for prepaid credits customers that you've consumed all your credits. You can view your maximum usage limit on the limits page. This could happen for several reasons, such as:

You are using a high-volume or complex service that consumes a lot of credits or tokens.
Your monthly budget is set too low for your organization’s usage.
Your monthly budget is set too low for your project's usage.
To resolve this error, please follow these steps:

Check your current usage of your account, and compare that to your account's limits.
If you are on a free plan, consider upgrading to a paid plan to get higher limits.
Reach out to your organization owner to increase the budgets for your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant