-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Description
Attempting to use this with gpt-5 gives me this error in the test
Run uv run main.py --debug
Using CPython 3.***.***0
Creating virtual environment at: .venv
Installed 66 packages in 250ms
2025-08-22 09:09:48.493 | **mDEBUG | __main__:<module>:***52 - **mDebug mode is on.
2025-08-22 09:09:48.494 | **mINFO | __main__:<module>:***57 - **mRetrieving Zotero corpus...
2025-08-22 09:***0:0***.740 | **mINFO | __main__:<module>:***59 - **mRetrieved ***52 papers from Zotero.
2025-08-22 09:***0:0***.74*** | **mINFO | __main__:<module>:***64 - **mRetrieving Arxiv papers...
2025-08-22 09:***0:02.286 | **mDEBUG | __main__:get_arxiv_paper:66 - **mRetrieve 5 arxiv papers regardless of the date.
2025-08-22 09:***0:02.504 | **mINFO | __main__:<module>:***7*** - **mReranking papers...
2025-08-22 09:***0:23.409 | **mINFO | __main__:<module>:***76 - **mUsing OpenAI API as global LLM.
2025-08-22 09:***0:24.849 | **m**mERROR | llm:generate:3*** - **m**mAttempt *** failed: Error code: 400 - {'error': {'message': "Unsupported value: 'temperature' does not support 0 with this model. Only the default (***) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}
2025-08-22 09:***0:28.307 | **m**mERROR | llm:generate:3*** - **m**mAttempt 2 failed: Error code: 400 - {'error': {'message': "Unsupported value: 'temperature' does not support 0 with this model. Only the default (***) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}
2025-08-22 09:***0:3***.406 | **m**mERROR | llm:generate:3*** - **m**mAttempt 3 failed: Error code: 400 - {'error': {'message': "Unsupported value: 'temperature' does not support 0 with this model. Only the default (***) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}
Rendering Email: 0%| | 0/5 [00:00<?, ?it/s]
Rendering Email: 0%| | 0/5 [00:07<?, ?it/s]
Traceback (most recent call last):
File "/home/runner/work/zotero-arxiv-daily-wigster/zotero-arxiv-daily-wigster/main.py", line ***82, in <module>
html = render_email(papers)
^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily-wigster/zotero-arxiv-daily-wigster/construct_email.py", line ***35, 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-wigster/zotero-arxiv-daily-wigster/paper.py", line 225, in affiliations
affiliations = llm.generate(
^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily-wigster/zotero-arxiv-daily-wigster/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-wigster/zotero-arxiv-daily-wigster/.venv/lib/python3.***/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily-wigster/zotero-arxiv-daily-wigster/.venv/lib/python3.***/site-packages/openai/resources/chat/completions.py", line 829, in create
return self._post(
^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily-wigster/zotero-arxiv-daily-wigster/.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-wigster/zotero-arxiv-daily-wigster/.venv/lib/python3.***/site-packages/openai/_base_client.py", line 957, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/runner/work/zotero-arxiv-daily-wigster/zotero-arxiv-daily-wigster/.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.BadRequestError: Error code: 400 - {'error': {'message': "Unsupported value: 'temperature' does not support 0 with this model. Only the default (***) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}
Error: Process completed with exit code ***.
Metadata
Metadata
Assignees
Labels
No labels