aniskoubaa / rosgpt

ROSGPT is a pioneering approach that combines the power of ChatGPT and ROS (Robot Operating System) to redefine human-robot interaction. By leveraging large language models like ChatGPT, ROSGPT enables the conversion of unstructured human language into actionable robotic commands. T
314 stars 73 forks source link

Unexpected error: No API key provided. #12

Open jackhou66 opened 3 months ago

jackhou66 commented 3 months ago

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 commented 3 months ago

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.