Skip to content

Forum in maintenance, we will back soon 🙂

cannt connect with ...
 
Notifications
Clear all

cannt connect with api

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

showed this:

"

Traceback (most recent call last):
File "F:\ai-agent\test.py", line 5, in <module>
response = generate_text_basic(prompt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\ai-agent\openai_module.py", line 13, in generate_text_basic
response = openai_client.chat.completions.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_utils\_utils.py", line 274, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\resources\chat\completions.py", line 668, in create
return self._post(
^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_base_client.py", line 1260, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_base_client.py", line 937, in request
return self._request(
^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_base_client.py", line 1026, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_base_client.py", line 1075, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_base_client.py", line 1026, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_base_client.py", line 1075, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "F:\ai-agent\venv\Lib\site-packages\openai\_base_client.py", line 1041, in _request
raise self._make_status_error_from_response(err.response) from None
openai.RateLimitError: Error code: 429 - {'error': {'message': '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 .', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

"

 
Posted : 08/21/2024 10:37 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

You need to fund your OpenAI account. https://platform.openai.com/docs/guides/rate-limits

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 08/21/2024 3:37 pm
Share: