Skip to content

fix(openai): probe the key with gpt-6-luna before gpt-4o-mini shuts down - #182

Open
brunobuddy wants to merge 1 commit into
cloudnative-co:mainfrom
brunobuddy:fix/probe-the-key-with-gpt-6-luna-before-gpt-33f9
Open

brunobuddy wants to merge 1 commit into
cloudnative-co:mainfrom
brunobuddy:fix/probe-the-key-with-gpt-6-luna-before-gpt-33f9

Conversation

@brunobuddy

Copy link
Copy Markdown

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:123

How I checked

The calls now follow Openai's announcement.

bash -n lib/codex-setup.sh passes.

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.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T09:43:49.874188Z 70a3fb7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread lib/codex-setup.sh
--config - \
-X POST \
-d '{"model":"gpt-4o-mini","input":"test"}' \
-d '{"model":"gpt-6-luna","input":"test"}' \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant