Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/codex-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"}' \

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

https://api.openai.com/v1/responses 2>/dev/null || echo "000")"
[[ "$_models_code" == "200" ]] && [[ "$_responses_code" != "401" ]] && [[ "$_responses_code" != "403" ]]
}
Expand Down