From 70a3fb7f079c935fb2c7ee19d8d5adbb0af3f335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20P=C3=A9rez?= Date: Fri, 6 Nov 2026 10:42:02 +0100 Subject: [PATCH] fix(openai): probe the key with gpt-6-luna before gpt-4o-mini shuts down 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. --- lib/codex-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codex-setup.sh b/lib/codex-setup.sh index 68857ef..e6e0fdf 100644 --- a/lib/codex-setup.sh +++ b/lib/codex-setup.sh @@ -123,7 +123,7 @@ _smoke_test_openai_key() { curl -s --max-time 10 -o /dev/null -w '%{http_code}' \ --config - \ -X POST \ - -d '{"model":"gpt-4o-mini","input":"test"}' \ + -d '{"model":"gpt-6-luna","input":"test"}' \ https://api.openai.com/v1/responses 2>/dev/null || echo "000")" [[ "$_models_code" == "200" ]] && [[ "$_responses_code" != "401" ]] && [[ "$_responses_code" != "403" ]] }