marcolardera / chatgpt-cli

Simple yet effective command line client for chatting with ChatGPT using the official API
MIT License
432 stars 79 forks source link

Rate limit or maximum monthly limit exceeded #70

Open francly opened 2 weeks ago

francly commented 2 weeks ago

first use of the CLI getting this error but my API key have no limit set

`ChatGPT CLI Supplier: openai Model in use: gpt-3.5-turbo-16k ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [0] >>> Hello Rate limit or maximum monthly limit exceeded [0] >>>

Total tokens used: 0 Estimated expense: $0.000000`

marcolardera commented 2 weeks ago

This error message happens in case of a 429 response from the API. This is what OpenAI says about it:

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.

https://platform.openai.com/docs/guides/error-codes/api-errors

Maybe you have used all your pre-paid credits?