Skip to content

feat(openai): add GPT-6 Sol and GPT-6 Luna - #42515

Merged
shin-berri merged 1 commit into
mainfrom
litellm_add_gpt_6_sol_luna
Sep 22, 2026
Merged

shin-berri merged 1 commit into
mainfrom
litellm_add_gpt_6_sol_luna

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • OpenAI's /v1/models lists gpt-6-sol and gpt-6-luna, the cost map does not
  • Requests to them return zero spend and unknown reasoning effort levels

How it solves it:

  • Adds gpt-6-sol and gpt-6-luna entries next to gpt-6-astra
  • Prices copied row by row from the OpenAI pricing page (standard, flex, priority, batch, above 272k)
  • Both advertise reasoning effort none through max, matching the OpenAI model pages

User Flow

Before: a developer calling the new models through the gateway sees them work but get logged at $0

  1. They send POST https://litellm-domain/v1/chat/completions with "model": "gpt-6-sol"
  2. The response comes back 200 with the completion
  3. https://litellm-domain/ui/?page=logs shows the request at $0 spend, and /model_group/info lists no supported reasoning efforts for it

After: the same request is priced and described

  1. They send POST https://litellm-domain/v1/chat/completions with "model": "gpt-6-sol"
  2. The response comes back 200 with the completion and a non-zero x-litellm-response-cost header
  3. https://litellm-domain/ui/?page=logs shows real spend, and /model_group/info lists none, low, medium, high, xhigh and max

Relevant issues

Model request from Slack (#litellm-provider-info-sync)

Affected release

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

Pricing evidence, parsed from the raw HTML of https://developers.openai.com/api/docs/pricing on 2026-09-22 (per 1M tokens, Input / Cached input / Cache writes / Output, then the same four above 272k):

Standard  gpt-6-sol   $2.00  $0.20  $2.50   $10.00 | $4.00  $0.40  $5.00  $15.00
Standard  gpt-6-luna  $0.10  $0.01  $0.125  $0.50  | $0.20  $0.02  $0.25  $0.75
Flex      gpt-6-sol   $1.00  $0.10  $1.25   $5.00  | $2.00  $0.20  $2.50  $7.50
Flex      gpt-6-luna  $0.05  $0.005 $0.0625 $0.25  | $0.10  $0.01  $0.125 $0.375
Priority  gpt-6-sol   $4.00  $0.40  $5.00   $20.00 | $8.00  $0.80  $10.00 $30.00
Priority  gpt-6-luna  $0.20  $0.02  $0.25   $1.00  | $0.40  $0.04  $0.50  $1.50

Batch is 50% of standard, same as the existing gpt-6-astra row. The model pages (https://developers.openai.com/api/docs/models/gpt-6-sol and /gpt-6-luna) give 1,050,000 context window, 128,000 max output, text and image input, and reasoning.effort supports none, low, medium (default), high, xhigh, and max. curl https://api.openai.com/v1/models lists both ids

The requester asked to skip the live smoke test for speed, so there is no before/after proxy run here

Type

🆕 New Feature

Caveats (if any)

Low

  • No live proxy call was made; pricing and flags come from the docs pages only
  • Azure, Bedrock and OpenRouter mirrors of these models are not added yet

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Link to Devin session: https://app.devin.ai/sessions/cbced8a2842b46449a1ce5c4f049492c
Open in Devin Desktop: https://app.devin.ai/desktop/session/cbced8a2842b46449a1ce5c4f049492c?variant=devin


Note

Low Risk
Catalog-only additions with regression tests; fixes under-billing and metadata gaps without changing request routing or auth.

Overview
Adds OpenAI gpt-6-sol and gpt-6-luna to the LiteLLM model cost map (model_prices_and_context_window.json and its backup), so gateway requests to these models get non-zero cost tracking and correct capability metadata instead of $0 spend and missing reasoning levels.

Each entry mirrors the existing GPT-6-style shape: standard / flex / priority / batch token rates (including above-272k and cache read/write variants), 922k input / 128k output limits, chat mode, and feature flags (tools, vision, PDF, prompt caching, web search, reasoning, etc.). gpt-6-luna is priced lower than gpt-6-sol on the same tier structure.

Tests lock in reasoning effort none through max for both models (unlike gpt-6-astra, which omits none) and extend priority long-context pricing cases for the new ids.

Reviewed by Cursor Bugbot for commit dc6273e. Bugbot is set up for automated code reviews on this repo. Configure here.

Add gpt-6-sol and gpt-6-luna to the model cost map with pricing from the OpenAI pricing page and reasoning effort levels none through max. Extend the long-context priority pricing and reasoning effort capability tests to cover both models

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from a team September 22, 2026 18:31
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

CLAassistant commented Sep 22, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@kerry-berri

Copy link
Copy Markdown
Contributor

@greptileai

@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@shin-berri
shin-berri merged commit e0c2cbf into main Sep 22, 2026
66 of 67 checks passed
@shin-berri
shin-berri deleted the litellm_add_gpt_6_sol_luna branch September 22, 2026 18:34
@greptile-apps

greptile-apps Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The metadata change appears safe to merge, with a non-blocking test-quality gap around executable long-context pricing coverage.

Findings

  1. P2 Pricing Cases Never Run ▶

Summary

This PR registers GPT-6 Sol and GPT-6 Luna as OpenAI chat models in both bundled model maps, including standard, flex, priority, batch, cache, and long-context pricing along with capability metadata.

  • Keeps the primary and backup model maps synchronized.
  • Adds an effective model-info test for the documented reasoning-effort levels.
  • Adds expected long-context priority pricing data, but does not execute assertions against those cases.

Reviews (1) · Last reviewed commit: "feat(openai): add GPT-6 Sol and GPT-6 Lu..."

Comment on lines +61 to +72
"gpt-6-sol": {
"input_cost_per_token_above_272k_tokens_priority": 8e-06,
"output_cost_per_token_above_272k_tokens_priority": 3e-05,
"cache_read_input_token_cost_above_272k_tokens_priority": 8e-07,
"cache_creation_input_token_cost_above_272k_tokens_priority": 1e-05,
},
"gpt-6-luna": {
"input_cost_per_token_above_272k_tokens_priority": 4e-07,
"output_cost_per_token_above_272k_tokens_priority": 1.5e-06,
"cache_read_input_token_cost_above_272k_tokens_priority": 4e-08,
"cache_creation_input_token_cost_above_272k_tokens_priority": 5e-07,
},

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.

P2 Pricing cases never run

The new GPT-6 Sol and Luna rates are only added to module-level dictionaries and lists. This file has no test function or assertion that consumes them, so CI can pass even if production selects a missing or incorrect priority long-context rate. Please add an executable test that calculates the cost for each model and asserts the result.

@cursor cursor Bot 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit dc6273e. Configure here.

@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!

@codspeed

codspeed Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_add_gpt_6_sol_luna (dc6273e) with main (ded69f8)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (2bab39e) during the generation of this report, so ded69f8 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

pamanseau pushed a commit to KubeTEE-AI/litellm that referenced this pull request Oct 25, 2026
…AI#43935)

Backport of BerriAI#43935 to stable/1.103.x.
Cherry-picked from d7620c7 (main).
Ported from the stable/1.104.x adaptation (54f9259): the bridge check lives in litellm/main.py and the effort helpers keep the line's private names. Cost-map edits replay only this PR's reasoning-effort flags (gpt-6-astra and gpt-5.3-codex rows), plus supports_none_reasoning_effort=false on the azure gpt-6.1-sol rows from BerriAI#46377, which the fix's tests key on. Tests built on gpt-6-sol rows (BerriAI#42515), the Foundry tools-to-Responses bridge, or a full azure/eu/gpt-6-astra row are dropped since none of those are on this line.
pamanseau pushed a commit to KubeTEE-AI/litellm that referenced this pull request Oct 25, 2026
…erriAI#47419)

Backport of BerriAI#47419 to stable/1.103.x.
Cherry-picked from 3124797 (main), via the stable/1.104.x port c88cf13cd3.
Adapted to the line: the cost-calc threshold changes are applied to this line's loop without the 1.104 base's batch-tier helpers; ModelNotMappedError from BerriAI#42497 is hand-ported (exception class plus the get_model_info raise and re-raise) so registration lookups can tell an unmapped model from a transient failure; tests whose catalog rows (gpt-6-sol, gpt-6-luna from BerriAI#42515) are not on this line are retargeted to amazon.nova-micro-v1:0 and gpt-5.6-sol profiles; the test conftest also snapshots _runtime_registered_fields. Billing checked unchanged on this line for a cross-provider alias (keeps cache prices) and for unpriced openai/ft: and bedrock/ap-northeast-1 deployments.
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