Skip to content

Forum in maintenance, we will back soon 🙂

api error,rate;imit...
 
Notifications
Clear all

api error,rate;imited eroor

3 Posts
3 Users
2 Reactions
178 Views
(@google-shovochowedhury)
Posts: 7
Active Member
Topic starter
 

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>

 
Posted : 05/27/2024 7:36 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@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

 
Posted : 05/27/2024 8:01 pm
(@husein)
Posts: 532
Member Moderator
 

@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>

 
It clearly says that you exceeded your limit and you have to fund your API.
 
Posted : 05/28/2024 9:35 am
SSAdvisor reacted
Share: