Skip to content

Commit d9b1d2f

Browse files
nodeeeeeeclaude
andcommitted
Default codex-cli model to gpt-5.1
Matches NOTE_MODEL used by the OpenAI code path elsewhere in the pipeline. AUTONOTE_CODEX_MODEL overrides for accounts where gpt-5.1 isn't available (ChatGPT-only plans expose gpt-5.4 / gpt-5.5 etc.). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2498868 commit d9b1d2f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

note_generation.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,10 @@ def _call(model: str, system: str, user: str, max_tokens: int,
594594
# capture only the agent's final message via `-o <file>` so we don't
595595
# have to parse the streaming event log on stdout.
596596
# The caller's ~/.codex/config.toml default (e.g. gpt-5.2-codex) is
597-
# often not available on a ChatGPT-plan login, so we override to a
598-
# model that is — gpt-5.4 by default; set AUTONOTE_CODEX_MODEL to
599-
# pick a different one (e.g. gpt-5.5, gpt-5.4-mini).
597+
# often not available on a ChatGPT-plan login, so we override to
598+
# gpt-5.1 (matches NOTE_MODEL used elsewhere in the pipeline).
599+
# Set AUTONOTE_CODEX_MODEL to pick a different one when needed
600+
# (e.g. gpt-5.4, gpt-5.5, gpt-5.4-mini on ChatGPT-only accounts).
600601
if _provider(model) == "codex-cli":
601602
import subprocess as _sp
602603
import tempfile as _tf
@@ -605,7 +606,7 @@ def _call(model: str, system: str, user: str, max_tokens: int,
605606
_os2.close(out_fd)
606607
try:
607608
prompt_text = f"{system}\n\n{user}" if system else user
608-
codex_model = _os2.environ.get("AUTONOTE_CODEX_MODEL", "gpt-5.4")
609+
codex_model = _os2.environ.get("AUTONOTE_CODEX_MODEL", "gpt-5.1")
609610
cmd = [
610611
"codex", "exec",
611612
"-m", codex_model,

0 commit comments

Comments
 (0)