Skip to content

feat(ai): add GPT-6 Sol and Luna and sync Claude pricing - #3931

Merged
Salazareo merged 4 commits into
mainfrom
codex/sync-openai-anthropic-chat-models
Sep 23, 2026
Merged

Salazareo merged 4 commits into
mainfrom
codex/sync-openai-anthropic-chat-models

Conversation

@404oops

@404oops 404oops commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Adds GPT-6 Sol and GPT-6 Luna to both OpenAI chat providers with their aliases, pricing, context windows, output limits, and release metadata. GPT-6 Responses requests now map reasoning and verbosity options into the upstream API's nested fields, including when a namespaced alias is used.

Corrects Claude Sonnet 5 to its published $2/$10 per million input/output token pricing and 128K output limit, uses its required adaptive thinking mode, and corrects Opus 5.5 cache reads to $0.20 per million tokens. Existing versioned model IDs and default models are preserved; no SDK signatures change.

OpenAI usage now bills prompt-cache writes at 1.25x input on GPT-5.6 and later, split out of input_tokens_details.cache_write_tokens / prompt_tokens_details.cache_write_tokens. GPT-6, GPT-5.6, GPT-5.5 and GPT-5.4 (including Pro) declare long_context_pricing: a request with more than 272K input tokens is billed at 2x input (cached reads and cache writes included) and 1.5x output for the whole request. The metering overrides, the reported usd_cents, and the credit gate all apply the multipliers.

GPT-5.6 Sol moves from GPT-5.5's $5/$0.50/$30 to OpenAI's promotional $4/$0.40/$20 per million input/cached/output tokens. OpenAI guarantees this price only through November 21, 2026. PUT-1943 tracks re-checking it, with an SLA of November 20, 2026.

Validation:

  • AI chat provider, driver, and utility tests pass; live API tests are skipped without provider test keys.
  • npm run typecheck passes with no new errors.
  • ESLint passes for the modified provider source files; existing no-explicit-any warnings remain.
  • git diff --check passes.

Specifications verified against official documentation: OpenAI pricing, OpenAI prompt caching, GPT-5.6 Sol, GPT-6 Sol, GPT-6 Luna, Claude pricing, and Sonnet 5.

@github-actions

github-actions Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 94.2%
⬇️ -0.01%
31530 / 33468
🔵 Statements 92.2%
🟰 ±0%
34328 / 37230
🔵 Functions 91.18%
⬇️ -0.02%
5817 / 6379
🔵 Branches 81.63%
⬆️ +0.02%
23143 / 28349
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/backend/drivers/ai-chat/ChatCompletionDriver.ts 96.53%
⬆️ +0.01%
89.55%
⬇️ -0.12%
97.67%
🟰 ±0%
97.77%
🟰 ±0%
229-232, 374, 404, 420, 484-486, 515-519, 554, 569, 602, 670, 814, 838, 844, 851, 1534
src/backend/drivers/ai-chat/types.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/drivers/ai-chat/providers/claude/ClaudeProvider.ts 82.1%
🟰 ±0%
68.9%
⬆️ +0.11%
86.11%
🟰 ±0%
82.84%
🟰 ±0%
22, 90-93, 99, 117, 120-121, 145-157, 161-165, 186-189, 357-359, 388-393, 401-403, 409-412, 417, 428, 432-436, 491-492, 538, 542
src/backend/drivers/ai-chat/providers/claude/models.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/drivers/ai-chat/providers/openai/OpenAiChatCompletionsProvider.ts 92.59%
⬆️ +0.29%
81.03%
⬆️ +0.68%
92.3%
🟰 ±0%
92.3%
⬆️ +0.30%
73-80, 91
src/backend/drivers/ai-chat/providers/openai/OpenAiChatResponsesProvider.ts 96.15%
⬆️ +0.24%
85.14%
⬆️ +4.03%
91.66%
🟰 ±0%
96.15%
⬆️ +0.24%
83, 100
src/backend/drivers/ai-chat/providers/openai/models.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/drivers/ai-chat/utils/pricing.ts 100%
🟰 ±0%
93.33%
⬆️ +0.23%
100%
🟰 ±0%
100%
🟰 ±0%
Generated in workflow #1945 for commit 9c9130b by the Vitest Coverage Report Action

404oops and others added 2 commits September 22, 2026 23:38
GPT-5.6 and later bill prompt-cache writes at 1.25x input and report them
in `cache_write_tokens`, inside the input total. Both OpenAI calculators now
split them out of the prompt count and meter them under their own key, and
the six GPT-5.6+ models carry the rate.

GPT-6, GPT-5.6, GPT-5.5 and GPT-5.4 (incl. Pro) bill a request with more
than 272K input tokens at 2x input (cached reads and cache writes included)
and 1.5x output for the whole request. Models declare this as
`long_context_pricing`, and the ledger overrides, the reported `usd_cents`
and the credit gate all apply the multipliers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The catalog carried GPT-5.5's $5/$0.50/$30, but OpenAI bills GPT-5.6 Sol
at $4/$0.40/$20 per million input/cached/output tokens, promotional
through at least 2026-11-21. PUT-1943 tracks re-checking before then.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Salazareo
Salazareo merged commit bc0f4dc into main Sep 23, 2026
13 checks passed
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.

3 participants