Troubleshooting of OpenAI API: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 307: Line 307:
# 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.
# 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.
# See more details on [[Sleep]] random seconds in programming
# See more details on [[Sleep]] random seconds in programming
=== How to fix "You exceeded your current quota, please check your plan and billing details." ===
Error message: You exceeded your current quota, please check your plan and billing details.
<pre>
{
  "error": {
    "message": "You exceeded your current quota, please check your plan and billing details.",
    "type": "insufficient_quota",
    "param": null,
    "code": null
  }
}
</pre>
Solution:
# Visit https://platform.openai.com/account/usage to review your API usage.
# Look for the "OpenAI API - Hard Limit Notice" email, which contains information on requesting a quota increase by completing the provided form.
# Once your quota has been increased, navigate to https://platform.openai.com/account/billing/limits to adjust your hard limit accordingly.




Line 333: Line 352:


The backslash {{kbd | key=<nowiki>\</nowiki>}} at the end of each line indicates that the command is not yet finished and will continue on the next line. Ensure that there are no extra characters or commands after the -d parameter or any other parameters to avoid similar errors.
The backslash {{kbd | key=<nowiki>\</nowiki>}} at the end of each line indicates that the command is not yet finished and will continue on the next line. Ensure that there are no extra characters or commands after the -d parameter or any other parameters to avoid similar errors.
=== How to fix "You exceeded your current quota, please check your plan and billing details." ===
Error message: You exceeded your current quota, please check your plan and billing details.
<pre>
{
  "error": {
    "message": "You exceeded your current quota, please check your plan and billing details.",
    "type": "insufficient_quota",
    "param": null,
    "code": null
  }
}
</pre>
Solution:
# Visit https://platform.openai.com/account/usage to review your API usage.
# Look for the "OpenAI API - Hard Limit Notice" email, which contains information on requesting a quota increase by completing the provided form.
# Once your quota has been increased, navigate to https://platform.openai.com/account/billing/limits to adjust your hard limit accordingly.


=== 強制保持繁體中文輸出 ===
=== 強制保持繁體中文輸出 ===

Navigation menu