[Feature]: Support reasoning effort for GPT-6 models with ChatGPT login
Summary
Let the openai-chatgpt provider set OPENWIKI_REASONING_EFFORT for the GPT-6 models (gpt-6-astra, gpt-6-sol, gpt-6-luna), including the new ultra level.
Motivation
The ChatGPT-backed Codex endpoint serves the GPT-6 models, and OpenWiki 0.6.0 already runs them when OPENWIKI_MODEL_ID names one. A one-shot openwiki -p call returned a normal answer for all three.
Reasoning effort is the blocker. REASONING_CAPABILITIES in src/config/reasoning.ts lists only the GPT-5.6 models, so any effort setting fails before the request is sent:
OPENWIKI_REASONING_EFFORT is not supported for provider "openai-chatgpt" and model "gpt-6-luna".Without an effort setting the models run at their server default (medium), so a scheduled wiki update cannot use deeper reasoning on GPT-6.
Proposed Solution
- Add
ultratoREASONING_EFFORT_VALUES, and keep the existing GPT-5.6 capabilities limited to their current values. - Add
openai-chatgptcapabilities that match the levels the Codex model catalog advertises:gpt-6-astraandgpt-6-sol:low,medium,high,xhigh,max,ultragpt-6-luna:low,medium,high,xhigh,max
- Document the new models and levels next to the existing reasoning-effort paragraph in the README.
The Codex CLI sends these values in the same Responses reasoning.effort field OpenWiki already uses. codex exec -m gpt-6-luna at max and codex exec -m gpt-6-sol at ultra both completed against the ChatGPT backend.
Alternatives Considered
- Also add the GPT-6 models to
OPENAI_MODEL_OPTIONS. That list is shared with the API-keyopenaiprovider, and I could only verify the ChatGPT-login path, so I'd keep that as a separate change. - Leave effort unset on GPT-6. That works today, but it locks every run to
medium.
Additional Context
Fast mode (service_tier: "priority") is a separate request, already tracked in #834.
I'd like to open a PR for this.
Source: langchain-ai/openwiki