Skip to content

feat(openai): add GPT-5.6 family (sol, terra, luna) support#876

Merged
taltas merged 2 commits into
mainfrom
feat/gpt-5.6-family-support
Jul 11, 2026
Merged

feat(openai): add GPT-5.6 family (sol, terra, luna) support#876
taltas merged 2 commits into
mainfrom
feat/gpt-5.6-family-support

Conversation

@navedmerchant

@navedmerchant navedmerchant commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Related GitHub Issue

Closes: #871

Description

This PR adds support for the GPT-5.6 model family from OpenAI, as requested in the linked issue. The three new models — gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna — are registered in both OpenAI provider paths:

  • OpenAI Codex (packages/types/src/providers/openai-codex.ts): The ChatGPT Plus/Pro subscription path. The three models are added with subscription-based pricing (input/output cost 0), a 400k context window, image support, prompt caching, and the full reasoning-effort ladder (nonemax). The default model id is updated from gpt-5.3-codex to gpt-5.6-sol.
  • OpenAI Native (packages/types/src/providers/openai.ts): The direct API path. The three models are added with per-token pricing, cache write/read pricing, long-context pricing tiers, and service-tier definitions (flex/priority). gpt-5.6-sol and gpt-5.6-terra use a 1.05M context window while gpt-5.6-luna uses 400k. The default model id is updated from gpt-5.1-codex-max to gpt-5.6-sol.

The default-model assertions in the existing unit tests (openai-codex.spec.ts and openai-native.spec.ts) were updated to match the new defaults. No other references to the old default ids required changes — remaining mentions of gpt-5.3-codex/gpt-5.1-codex-max are legitimate model definitions and dedicated test cases for those still-supported models.

Test Procedure

  1. From the src workspace, ran the affected provider test suites:
    cd src && npx vitest run api/providers/__tests__/openai-codex.spec.ts api/providers/__tests__/openai-native.spec.ts
    
    Result: 2 test files, 62 tests passed.
  2. The pre-commit hook (lint + type-check via turbo) passed on commit, and the pre-push hook (full turbo run build) passed on push.
  3. Reviewers can reproduce by checking out feat/gpt-5.6-family-support and re-running the command above.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to approved GitHub Issue Add Support For GPT 5.6 Family Open AI #871.
  • Scope: My changes are focused on the linked issue (adding the GPT-5.6 family).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: Updated unit tests cover the new default model ids; all tests pass.
  • Documentation Impact: I have considered if my changes require documentation updates (see below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Not applicable — this change adds provider model definitions and updates test assertions; no UI changes are involved.

Documentation Updates

  • No documentation updates are required.

Additional Notes

Model capability metadata (context windows, pricing, reasoning-effort ladders, service tiers) was modeled on the existing GPT-5.x entries and the OpenAI model documentation linked in the issue. The Codex (subscription) variants keep inputPrice/outputPrice at 0 to reflect subscription-based access, while the Native (API) variants carry per-token pricing consistent with OpenAI's published rates.

Get in Touch

Summary by CodeRabbit

  • New Features
    • Added three GPT-5.6 models: Sol, Terra, and Luna.
    • Updated the default OpenAI and Codex model to GPT-5.6 Sol.
    • Added support for image inputs, prompt caching, long context, and patch application, along with expanded reasoning and verbosity options.
  • Tests
    • Updated provider fallback behavior tests to expect the new default model.

Add the GPT-5.6 model family to both the OpenAI Codex (ChatGPT
subscription) and OpenAI Native (API) providers:

- gpt-5.6-sol: flagship frontier reasoning/coding model
- gpt-5.6-terra: balanced everyday model
- gpt-5.6-luna: fastest, most affordable family member

Update the default model id for both providers to gpt-5.6-sol and
update the corresponding unit test assertions.

Closes #871
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d4a42fd0-f6c1-446d-9229-0eb5ad613b7f

📥 Commits

Reviewing files that changed from the base of the PR and between d8ded0d and 1cb8ecd.

📒 Files selected for processing (1)
  • packages/types/src/providers/openai-codex.ts

📝 Walkthrough

Walkthrough

OpenAI native and Codex providers now support three GPT-5.6 models and select gpt-5.6-sol by default. Provider tests update fallback expectations accordingly.

Changes

OpenAI GPT-5.6 support

Layer / File(s) Summary
GPT-5.6 model registry and defaults
packages/types/src/providers/openai.ts, packages/types/src/providers/openai-codex.ts
Adds gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna configurations and changes both provider defaults to gpt-5.6-sol.
Default model expectations
src/api/providers/__tests__/openai-codex.spec.ts, src/api/providers/__tests__/openai-native.spec.ts
Updates provider tests to expect gpt-5.6-sol for fallback and undefined model identifiers.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels: awaiting-review

Suggested reviewers: taltas, JamesRobert20, hannesrudolph, edelauna

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding GPT-5.6 family support across OpenAI providers.
Description check ✅ Passed The description follows the template, links the issue, summarizes implementation details, and includes test and checklist sections.
Linked Issues check ✅ Passed The changes add the requested GPT-5.6 models and update defaults/tests, matching issue #871's scope.
Out of Scope Changes check ✅ Passed The PR stays focused on provider model metadata and test assertions, with no unrelated code changes evident.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/gpt-5.6-family-support

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.

@codecov

codecov Bot commented Jul 11, 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 left a comment

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.

One possible tweak to context window

export const openAiCodexModels = {
"gpt-5.6-sol": {
maxTokens: 128000,
contextWindow: 400000,

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 context windows are not accurate, the rest of the numbers right, but I would double check. Maybe I have interpreted things wrong.

@github-actions github-actions Bot added the awaiting-author PR is waiting for the author to address requested changes label Jul 11, 2026
Address review feedback on PR #876: the GPT-5.6 model context windows
in the Codex provider were set to 400000, but the OpenAI codex
models.json shows context_window and max_context_window of 372000 for
all three GPT-5.6 variants (sol, terra, luna). Updated accordingly.
@github-actions github-actions Bot removed the awaiting-author PR is waiting for the author to address requested changes label Jul 11, 2026
@taltas

taltas commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Luna is currently broken in from codex... not much we can do, its on openai's end

@taltas taltas left a comment

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.

Tested, works except Luna on codex, which is an OpenAi problem, not ours.

@github-actions github-actions Bot added the awaiting-review PR changes are ready and waiting for maintainer re-review label Jul 11, 2026
@taltas taltas added this pull request to the merge queue Jul 11, 2026
Merged via the queue into main with commit 01c1c99 Jul 11, 2026
14 checks passed
@taltas taltas deleted the feat/gpt-5.6-family-support branch July 11, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR changes are ready and waiting for maintainer re-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Support For GPT 5.6 Family Open AI

2 participants