Skip to content

[Feat] Add GPT-6 Sol and Luna to OpenAI model catalogs - #1755

Merged
taltas merged 3 commits into
mainfrom
feature/gpt-6-sol-luna-0hjoxeqy7rfgi
Sep 24, 2026
Merged

taltas merged 3 commits into
mainfrom
feature/gpt-6-sol-luna-0hjoxeqy7rfgi

Conversation

@zoomote

@zoomote zoomote Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

​Opened on behalf of Toray Altas. Follow up by mentioning @roomote, in the web UI, or in Discord.

Related GitHub Issue

No linked issue: this PR was requested directly (via Discord) in response to OpenAI's GPT-6 Sol/Luna release announcement: https://openai.com/index/introducing-gpt-6-sol-and-luna/

Description

Adds gpt-6-sol and gpt-6-luna to the OpenAI model catalogs, mirroring how the GPT-5.6 family (sol/terra/luna) was added in #876:

  • packages/types/src/providers/openai.ts — both models in openAiNativeModels with verified pricing from OpenAI's model docs (gpt-6-sol, gpt-6-luna):
    • gpt-6-sol: $2 input / $10 output per MTok, cache writes $2.50 (1.25× input), cached reads $0.20 (90% off), flex tier at 50%, priority tier at 2×, >272K long-context pricing (2× input/cache, 1.5× output)
    • gpt-6-luna: $0.10 input / $0.50 output per MTok, cache writes $0.125, cached reads $0.01, same tier and long-context structure
    • Both: 1.05M context, 128K max output, reasoning efforts none/low/medium/high/xhigh/max (default medium), image input, verbosity, prompt caching
  • packages/types/src/providers/openai-codex.ts — both models in the Codex (ChatGPT subscription) catalog with subscription pricing ($0), using the 372K context window of their GPT-5.6 predecessors (the Codex backend model metadata is not publicly verifiable; announced availability covers Plus, Pro, Business, Enterprise, and Edu)
  • packages/types/src/__tests__/openai-models.test.ts — catalog assertions for both models

Reviewer notes / deliberate scope decisions:

  • Default model IDs are unchanged (gpt-5.6-sol).
  • No fetcher special-cases added for OpenRouter / Vercel AI Gateway / NanoGPT / LiteLLM: those exist only for gpt-6-astra's required-reasoning curation, and gateway availability of the new models is not yet verified — gateways will pick them up dynamically like the GPT-5.6 family.
  • opencode-go untouched: it curates only gpt-5.6-luna because the Go gateway catalogue lacks metadata; Go gateway support for the GPT-6 models is unverified.
  • The new models are not added to the Codex RESPONSES_LITE_MODEL_IDS set (an internal wire-format requirement that can't be verified without Codex backend access).

Test Procedure

  • pnpm test from the repo root: all 13 turbo tasks pass (including packages/types 435 tests and webview 1866 tests).
  • Targeted: packages/types vitest for openai-models.test.ts (3/3), src vitest for openai-codex / openai-native / openai-native-usage specs (158/158).
  • eslint --max-warnings=0 on the three touched files: clean; tsc --noEmit in packages/types: clean.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Visual Snapshot (UI changes only): If a user would notice this change at a glance (layout, theme tokens, brand elements, empty/error states), I've added or updated a *.visual.tsx snapshot in webview-ui/. See webview-ui/AGENTS.md → "When a UI change needs a snapshot".
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Visual Snapshots

N/A — catalog data only; no UI rendering changes.

Videos (interaction / animation only)

N/A

Documentation Updates

Additional Notes

Pricing and capability values were taken from OpenAI's announcement and the official per-model API docs pages (cached input at 10% of input rate, cache writes at 1.25× input, Flex/Batch at 50% of standard rates, Fast/priority at 2×, and >272K long-context multipliers).

Related PRs

Get in Touch

Discord: taltas1

Add gpt-6-sol and gpt-6-luna to the OpenAI native and OpenAI Codex
(ChatGPT subscription) model catalogs, announced by OpenAI on
September 22, 2026:

- gpt-6-sol: $2 input / $10 output per MTok, 1.05M context, 128K max
  output, cache writes 1.25x input, cached reads 90% off, flex 50% /
  priority 2x tiers, >272K long-context pricing
- gpt-6-luna: $0.10 input / $0.50 output per MTok with the same
  context, caching, tier, and long-context structure

Both support reasoning effort levels none through max (default medium),
image input, and verbosity, mirroring the GPT-5.6 family entries.
Codex catalog entries use subscription pricing with the 372K context
window of their GPT-5.6 predecessors.
@zoomote zoomote Bot assigned taltas Sep 22, 2026
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: Zoo-Code-Org/Zoo-Code/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 5b0805e4-4567-4940-be90-948083f1b53d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Review status

This PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging.

Current step: Required CI passed. Waiting for automated review of the latest commit.

If automated review does not start, a maintainer must restart it.

Review-state labels are managed by this workflow; do not edit them manually.

@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@taltas
taltas marked this pull request as ready for review September 23, 2026 01:22
@github-actions github-actions Bot added coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit labels Sep 23, 2026
Comment on lines +43 to +75
"gpt-6-sol": {
maxTokens: 128000,
contextWindow: 372000,
includedTools: ["apply_patch"],
excludedTools: ["apply_diff", "write_to_file"],
supportsImages: true,
supportsPromptCache: true,
supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh", "max"],
reasoningEffort: "medium",
// Subscription-based: no per-token costs
inputPrice: 0,
outputPrice: 0,
supportsVerbosity: true,
supportsTemperature: false,
description:
"GPT-6 Sol: OpenAI's cost-efficient frontier model for complex coding and agentic workflows via ChatGPT subscription",
},
"gpt-6-luna": {
maxTokens: 128000,
contextWindow: 372000,
includedTools: ["apply_patch"],
excludedTools: ["apply_diff", "write_to_file"],
supportsImages: true,
supportsPromptCache: true,
supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh", "max"],
reasoningEffort: "medium",
// Subscription-based: no per-token costs
inputPrice: 0,
outputPrice: 0,
supportsVerbosity: true,
supportsTemperature: false,
description: "GPT-6 Luna: The fastest, most affordable member of the GPT-6 family via ChatGPT subscription",
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These are the only new catalog entries in this PR without test coverage — nothing in the test suite imports openAiCodexModels, so a typo in contextWindow or the tool filters would ship silently. Would it make sense to lock these alongside the native entries in openai-models.test.ts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Done

Comment on lines +50 to +103
expect(openAiNativeModels["gpt-6-sol"]).toMatchObject({
maxTokens: 128_000,
contextWindow: 1_050_000,
supportsImages: true,
supportsPromptCache: true,
supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh", "max"],
reasoningEffort: "medium",
supportsTemperature: false,
inputPrice: 2,
cacheWritesPrice: 2.5,
cacheReadsPrice: 0.2,
outputPrice: 10,
longContextPricing: {
thresholdTokens: 272_000,
inputPriceMultiplier: 2,
outputPriceMultiplier: 1.5,
cacheWritesPriceMultiplier: 2,
cacheReadsPriceMultiplier: 2,
appliesToServiceTiers: ["default", "flex", "priority"],
},
})

expect(openAiNativeModels["gpt-6-sol"].tiers).toEqual([
{
name: "flex",
contextWindow: 1_050_000,
inputPrice: 1,
outputPrice: 5,
cacheWritesPrice: 1.25,
cacheReadsPrice: 0.1,
},
{
name: "priority",
contextWindow: 1_050_000,
inputPrice: 4,
outputPrice: 20,
cacheWritesPrice: 5,
cacheReadsPrice: 0.4,
},
])

expect(openAiNativeModels["gpt-6-luna"]).toMatchObject({
maxTokens: 128_000,
contextWindow: 1_050_000,
supportsImages: true,
supportsPromptCache: true,
supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh", "max"],
reasoningEffort: "medium",
supportsTemperature: false,
inputPrice: 0.1,
cacheWritesPrice: 0.125,
cacheReadsPrice: 0.01,
outputPrice: 0.5,
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The toMatchObject assertions here leave includedTools/excludedTools, supportsVerbosity, and Luna's longContextPricing unpinned (Sol's is checked), so mutations to those fields would pass CI. Would switching both to full-entry toEqual — as the tiers asserts already do — close that in one move?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added full tests for both Codex model entries.

@github-actions github-actions Bot added awaiting-author PR is waiting for the author to address requested changes and removed coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit labels Sep 23, 2026
@github-actions github-actions Bot added awaiting-author PR is waiting for the author to address requested changes and removed awaiting-author PR is waiting for the author to address requested changes labels Sep 23, 2026
@taltas
taltas requested a review from edelauna September 23, 2026 20:04
@github-actions github-actions Bot added coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit and removed awaiting-author PR is waiting for the author to address requested changes labels Sep 24, 2026
@github-actions github-actions Bot added coderabbit-review-active Required CI passed; CodeRabbit review is active and removed coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit labels Sep 24, 2026
@github-actions github-actions Bot added the awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit label Sep 24, 2026
@taltas
taltas added this pull request to the merge queue Sep 24, 2026
Merged via the queue into main with commit 9176f2f Sep 24, 2026
16 of 17 checks passed
@taltas
taltas deleted the feature/gpt-6-sol-luna-0hjoxeqy7rfgi branch September 24, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit coderabbit-review-active Required CI passed; CodeRabbit review is active

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants