-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
照着文档走,但就是报出找不到模型,想问问这怎么解决
Run uv run main.py --debug
Using CPython 3..
Creating virtual environment at: .venv
Installed 66 packages in 298ms
2025-09-07 07:***5:***4.768 | **mDEBUG | main::***52 - **mDebug mode is on.
2025-09-07 07:***5:***4.768 | **mINFO | main::***57 - **mRetrieving Zotero corpus...
2025-09-07 07:***5:***6.***60 | **mINFO | main::***59 - **mRetrieved 28 papers from Zotero.
2025-09-07 07:***5:***6.***60 | **mINFO | main::***64 - **mRetrieving Arxiv papers...
2025-09-07 07:5:6.362 | mDEBUG | main:get_arxiv_paper:66 - mRetrieve 5 arxiv papers regardless of the date.
2025-09-07 07:5:6.732 | mINFO | main::7 - mReranking papers...
2025-09-07 07:5:22.39 | mINFO | main::76 - mUsing OpenAI API as global LLM.
2025-09-07 07:5:25.486 | mmERROR | llm:generate:3 - mmAttempt *** failed: Error code: 400 - {'code': 2002, 'message': 'Model does not exist. Please check it carefully.', 'data': None}
2025-09-07 07:5:28.796 | mmERROR | llm:generate:3 - mmAttempt 2 failed: Error code: 400 - {'code': 2002, 'message': 'Model does not exist. Please check it carefully.', 'data': None}
2025-09-07 07:5:32. | mmERROR | llm:generate:3 - mmAttempt 3 failed: Error code: 400 - {'code': 2002, 'message': 'Model does not exist. Please check it carefully.', 'data': None}
Rendering Email: 0%| | 0/5 [00:00<?, ?it/s]
Rendering Email: 0%| | 0/5 [00:09<?, ?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 35, in render_email
if p.affiliations is not None:
^^^^^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3..-linux-x86_64-gnu/lib/python3./functools.py", line 0, 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 6, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'code': 2002, 'message': 'Model does not exist. Please check it carefully.', 'data': None}
Error: Process completed with exit code ***.