Skip to content

🤖 feat: add GPT-6 Sol and Luna model support - #4348

Merged
ammario merged 4 commits into
mainfrom
model-catalog-xra9
Sep 22, 2026
Merged

ammario merged 4 commits into
mainfrom
model-catalog-xra9

Conversation

@ammar-agent

@ammar-agent ammar-agent commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add GPT-6 Sol and GPT-6 Luna, released September 22, to the curated model catalog. Promote gpt/sol and luna to the new tiers while preserving older model strings. Today's Anthropic release, Claude Opus 5.5, is already supported on main by #3993; this PR completes the missing OpenAI additions rather than duplicating that work.

Implementation

  • Add published pricing, cache rates, the 272K long-context pricing threshold, 922K maximum input, and 128K output limits.
  • Support none through native max reasoning and Pro mode on supported Responses API routes, without broadening Astra's always-on reasoning rule or matching unannounced variants.
  • Send explicit none reasoning for Sol/Luna on opt-in Chat Completions routes so agent function calls remain supported; preserve selected reasoning on Responses. Cover canonical IDs, dated IDs, and mapped aliases.
  • Allow Sol/Luna through Codex OAuth, assuming Codex serves them like Astra, with Astra's 372K Codex context cap. The workspace-naming fallback moves to GPT-6 Luna. Explicit-cache opt-in remains GPT-5.6-only.
  • Keep GPT-5.6 Sol/Luna tokenizer overrides so older model strings still count tokens correctly.
  • Update model documentation and generated built-in help.

Sources: OpenAI release notes, Sol, Luna, reasoning modes, Opus 5.5.

Validation

  • Targeted model, pricing, reasoning, context, auth-gating, and Codex OAuth routing tests passed, along with the full local bun test src run.
  • Reasoning selector and thinking-persistence UI integration tests passed (persistence rerun in isolation after a shared-process Jest global-setter recursion).
  • make static-check and make static-check-full passed, including documentation links.
  • No live provider API calls were made.

Risks

The short OpenAI aliases now select the newer tiers. Existing fully-qualified model IDs remain usable. Codex OAuth availability and the 372K cap for Sol/Luna are assumptions, not yet confirmed by a published Codex catalog. If either is wrong, OAuth-only users of gpt/sol/luna get request errors or early compaction until the allowlist is adjusted.


Generated with xum • Model: openai:gpt-6-astra • Thinking: high • Cost: $24.87

Complete September 22 model coverage alongside the Opus 5.5 support already on main.

---

_Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `high` • Cost: `$12.61`_

<!-- mux-attribution: model=openai:gpt-6-astra thinking=high costs=12.61 -->
@mintlify

mintlify Bot commented Sep 22, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Mux 🟢 Ready View Preview Sep 22, 2026, 8:06 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 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-09-22T20:56:04.017565Z 2e46d26 Manual request
🔒 Security Review Completed 2026-09-22T20:53:47.453908Z 2e46d26 Manual request
ℹ️ 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

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 23bdfc2909

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@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: 23bdfc2909

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/common/utils/tokens/models-extra.ts
Disable Sol/Luna reasoning on Chat Completions while retaining the selected effort on Responses.

---

_Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `high` • Cost: `$12.61`_

<!-- mux-attribution: model=openai:gpt-6-astra thinking=high costs=12.61 -->
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 6a070448c3

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 6a070448c3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

GPT alias now tracks GPT-6 Sol, which is not yet OAuth-allowlisted.
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: fcf07b311d

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: fcf07b311d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Assume Codex serves the new tiers like Astra (372K cap); restore GPT-6 Luna as the naming fallback.

---

_Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `high` • Cost: `$24.87`_

<!-- mux-attribution: model=openai:gpt-6-astra thinking=high costs=24.87 -->
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@ammario
ammario merged commit bd66643 into main Sep 22, 2026
18 of 20 checks passed
@ammario
ammario deleted the model-catalog-xra9 branch September 22, 2026 20:51
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 2e46d26ef2

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@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: 2e46d26ef2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +121 to +122
"gpt-6-sol",
"gpt-6-luna",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep unverified GPT-6 tiers off Codex OAuth

When either new model is selected and Codex OAuth is connected—including API-key users whose default auth remains oauth—these entries make providerModelFactory.ts route the request to the ChatGPT Codex endpoint. The current Codex catalog does not advertise these IDs, and the adjacent comment explicitly labels their availability as assumed, so the promoted gpt/sol and luna choices can return unsupported-model errors instead of using a configured API key; OAuth-only users also see unusable entries. Keep them API-key-only until Codex endpoint support is verified.

Useful? React with 👍 / 👎.

ThomasK33 added a commit that referenced this pull request Sep 22, 2026
…their Codex context cap

#4348 added GPT-6 Sol/Luna and clamps their Chat Completions reasoning
effort to "none" in buildProviderOptions, but @ai-sdk/openai@4.0.71
strips "none" for every gpt-6 model, so the clamp never reached the
request body and tool-bearing turns were rejected upstream. This adds a
Bun patch that accepts "none" for exact Sol/Luna ids only, enforces the
same clamp at the model boundary for headless tool loops (including
Coder openai-compat aliases resolved through their scoped mapping), and
replaces the assumed 372K Codex OAuth cap with the 272K published in the
pinned Codex catalog. Wire-level regressions cover both.

_Generated with `xum` • Model: `coder:anthropic/claude-fable-5-1` • Thinking: `xhigh` • Cost: `$174.60`_

<!-- mux-attribution: model=coder:anthropic/claude-fable-5-1 thinking=xhigh costs=174.60 -->
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.

2 participants