Forum in maintenance, we will back soon 🙂
api error,rate;imited eroor
how to fix this @admin
PS C:\Users\saidul islam\OneDrive\Desktop> & "c:/Users/saidul islam/OneDrive/Desktop/.venv/Scripts/python.exe" "c:/Users/saidul islam/OneDrive/Desktop/prompt_engenering.py/main.py"
Traceback (most recent call last):
File "c:\Users\saidul islam\OneDrive\Desktop\prompt_engenering.py\main.py", line 17, in <module>
response=generate_text_with_openai(prompt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\saidul islam\OneDrive\Desktop\prompt_engenering.py\main.py", line 8, in generate_text_with_openai
completion = openai.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\saidul islam\OneDrive\Desktop\.venv\Lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\saidul islam\OneDrive\Desktop\.venv\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File "C:\Users\saidul islam\OneDrive\Desktop\.venv\Lib\site-packages\openai\api_requestor.py", line 298, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\saidul islam\OneDrive\Desktop\.venv\Lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response
self._interpret_response_line(
File "C:\Users\saidul islam\OneDrive\Desktop\.venv\Lib\site-packages\openai\api_requestor.py", line 765, in _interpret_response_line
raise self.handle_error_response(
openai.error.RateLimitError: 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.
PS C:\Users\saidul islam\OneDrive\Desktop>
@google-shovochowedhury you need to fund your API use. https://openai.com/api/pricing/
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@google-shovochowedhury Try reading the error and at the end you'll see this:
openai.error.RateLimitError: 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.
PS C:\Users\saidul islam\OneDrive\Desktop>