-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
我开启的是GPT-Plus会员,并且最近都没有使用GPT的api,为什么会报“'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'}}”呢
具体如下:
Run uv run main.py --debug
Using CPython 3.***.0
Creating virtual environment at: .venv
Installed 66 packages in 25ms
2025-08-03 ***4:04:57.305 | **mDEBUG | main::***52 - **mDebug mode is on.
2025-08-03 ***4:04:57.305 | **mINFO | main::***57 - **mRetrieving Zotero corpus...
2025-08-03 ***4:05:25.608 | **mINFO | main::**59 - mRetrieved 69 papers from Zotero.
2025-08-03 ***4:05:25.608 | **mINFO | main::***64 - **mRetrieving Arxiv papers...
2025-08-03 ***4:05:25.945 | **mDEBUG | main:get_arxiv_paper:66 - **mRetrieve 5 arxiv papers regardless of the date.
2025-08-03 ***4:05:26.689 | **mINFO | main::7 - **mReranking papers...
2025-08-03 4:06:4.202 | **mINFO | main::***76 - **mUsing OpenAI API as global LLM.
2025-08-03 4:06:45.572 | mmERROR | llm:generate:3 - mmAttempt *** failed: 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'}}
2025-08-03 4:06:52.025 | mmERROR | llm:generate:3 - mmAttempt 2 failed: 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'}}
2025-08-03 4:06:56.73 | mmERROR | llm:generate:3*** - mmAttempt 3 failed: 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'}}
Rendering Email: 0%| | 0/5 [00:00<?, ?it/s]
Rendering Email: 0%| | 0/5 [00:5<?, ?it/s]
Traceback (most recent call last):
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/main.py", line 82, in
html = render_email(papers)
^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/construct_email.py", line 32, in render_email
if p.affiliations is not None:
^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3..0-linux-x86_64-gnu/lib/python3./functools.py", line 00, in get
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/paper.py", line 225, in affiliations
affiliations = llm.generate(
^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/llm.py", line 28, in generate
response = self.llm.chat.completions.create(messages=messages, temperature=0, model=self.model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/resources/chat/completions.py", line 829, in create
return self._post(
^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/_base_client.py", line 280, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/_base_client.py", line 957, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3.***/site-packages/openai/_base_client.py", line 046, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/_base_client.py", line 095, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/_base_client.py", line 046, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/_base_client.py", line 095, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/.venv/lib/python3./site-packages/openai/_base_client.py", line 06, 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'}}
Error: Process completed with exit code ***.