Repository navigation
fix(openai): probe the key with gpt-6-luna before gpt-4o-mini shuts down - #182
brunobuddy wants to merge 1 commit into
Conversation
After the shutdown, the OpenAI key smoke test in the Codex setup would send gpt-4o-mini, which no longer exists, so the check could no longer confirm a working key. This moves the probe to gpt-6-luna, the replacement OpenAI names.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 70a3fb7f07
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| --config - \ | ||
| -X POST \ | ||
| -d '{"model":"gpt-4o-mini","input":"test"}' \ | ||
| -d '{"model":"gpt-6-luna","input":"test"}' \ |
There was a problem hiding this comment.
Probe a supported Responses model
For API-key Codex setup, gpt-6-luna is not a published OpenAI model identifier, so this POST receives a model-not-found 4xx response instead of exercising the Responses API. Because _smoke_test_openai_key treats every response status other than 401/403 as success, the wizard then reports that API access was verified even though no response was generated; use a documented, generally available replacement model (or require a successful response status).
Useful? React with 👍 / 👎.
Problem
After the shutdown, the OpenAI key smoke test in the Codex setup would send gpt-4o-mini, which no longer exists, so the check could no longer confirm a working key.
OpenAI: gpt-4o-mini stops working (takes effect on 14 Jan 2027, source).
Fix
This moves the probe to gpt-6-luna, the replacement OpenAI names.
lib/codex-setup.sh:123How I checked
The calls now follow Openai's announcement.
bash -n lib/codex-setup.shpasses.Not checked
The probe only reads the HTTP status (401/403 mean failure) and sends no token cap or temperature, so no parameter needs changing; gpt-6-luna was not called from the sandbox.
Okapi is an API watcher: it prevents API breaking changes by opening pull requests like this one.