Troubleshooting of OpenAI API: Difference between revisions

Jump to navigation Jump to search
Line 183: Line 183:
Solution:
Solution:
* Ensure that the payload you sent to the API is properly formatted as JSON.
* Ensure that the payload you sent to the API is properly formatted as JSON.
== How to fix "RateLimitError: Rate limit reached for default-gpt-3.5-turbo" ==
Error message: RateLimitError: Rate limit reached for default-gpt-3.5-turbo
<pre>
RateLimitError: Rate limit reached for default-gpt-3.5-turbo in organization org-XXX on requests per min. Limit: 3 / min. Please try again in 20s. Contact [email protected] if you continue to have issues. Please add a payment method to your account to increase your rate limit. Visit https://platform.openai.com/account/billing to add a payment method.
</pre>
Solution:
# Revise the frequency of API requests. To achieve this, incorporate a [[Sleep]] function between each API request within the script. For more information on rate limits, consult OpenAI's documentation at the following link: https://platform.openai.com/docs/guides/rate-limits.


=== How to fix "You exceeded your current quota, please check your plan and billing details." ===
=== How to fix "You exceeded your current quota, please check your plan and billing details." ===
Anonymous user

Navigation menu