Forum in maintenance, we will back soon 🙂
cannt connect with api
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'}}
"
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