Skip to content

feat(bedrock): add gpt-6-sol and gpt-6-luna model pricing - #42746

Merged
kerry-berri merged 1 commit into
mainfrom
litellm_bedrock_gpt6_sol_luna
Sep 23, 2026
Merged

kerry-berri merged 1 commit into
mainfrom
litellm_bedrock_gpt6_sol_luna

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Bedrock serves openai.gpt-6-sol and gpt-6-luna but litellm has no cost map rows for them
  • Requests through the proxy fail with 422 and $0 spend
  • The provider sync cannot add them: AWS has published no model card or price yet

How it solves it:

  • Adds global., us. and bedrock_mantle/ rows for both models
  • Copies the matching gpt-6-astra rows, replacing only the 8 price fields
  • Prices follow the astra pattern: global = OpenAI list, us. and mantle = 1.1x

User Flow

Before: a proxy admin who deploys bedrock/us.openai.gpt-6-sol gets a 422 on every call

  1. They add bedrock/us.openai.gpt-6-sol to their model list and start the proxy
  2. They send POST http://localhost:4000/v1/chat/completions with {"model":"gpt-6-sol","messages":[...]}
  3. Bedrock answers, but the proxy returns 422 BedrockException - Error processing ... 'NoneType' object is not subscriptable with x-litellm-response-cost: 0
  4. GET http://localhost:4000/v1/model/info shows every price field for the model as null

After: the same deployment works and is billed

  1. They add bedrock/us.openai.gpt-6-sol to their model list and start the proxy
  2. They send the same POST http://localhost:4000/v1/chat/completions
  3. They get 200 with the completion and x-litellm-response-cost: 7.92e-05 (11 in, 5 out tokens)
  4. GET http://localhost:4000/v1/model/info shows $2.20/M input and $11/M output for the us. profile

Relevant issues

Requested in 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)

No new test: this is data only, and the existing cost map schema tests (tests/test_litellm/test_model_prices_schema.py, tests/test_litellm/test_cost_map_guard.py, 85 passed) cover the new rows

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

Proxy config used for both runs (real Bedrock calls in us-east-1, LITELLM_LOCAL_MODEL_COST_MAP=True):

model_list:
  - model_name: gpt-6-sol
    litellm_params:
      model: bedrock/us.openai.gpt-6-sol
      aws_region_name: us-east-1
  - model_name: gpt-6-luna
    litellm_params:
      model: bedrock/global.openai.gpt-6-luna
      aws_region_name: us-east-1

Before (5028f9e)

gpt-6-sol

$ curl -i -s http://localhost:4001/v1/chat/completions -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -d '{"model":"gpt-6-sol","messages":[{"role":"user","content":"Say hi in one word"}]}'
HTTP/1.1 422 Unprocessable Entity
x-litellm-response-cost: 0
{"error":{"message":"litellm.BadRequestError: BedrockException - Error processing={\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"message\":{\"content\":\"Hi\",\"role\":\"assistant\"}}],... 'NoneType' object is not subscriptable", ...}}

gpt-6-luna

Same 422 and x-litellm-response-cost: 0

After (32cd12c)

gpt-6-sol

$ curl -i -s http://localhost:4000/v1/chat/completions -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -d '{"model":"gpt-6-sol","messages":[{"role":"user","content":"Say hi in one word"}]}'
HTTP/1.1 200 OK
x-litellm-model-name: bedrock/us.openai.gpt-6-sol
x-litellm-response-cost: 7.92e-05
x-litellm-response-cost-input: 2.4200000000000002e-05
x-litellm-response-cost-output: 5.4999999999999995e-05
llm_provider-x-amzn-requestid: 2058e8f8-0627-48af-b991-e6173826e45f

{"id":"chatcmpl-12060396-7f5a-42de-bcbe-0a4a62148895","model":"gpt-6-sol","choices":[{"finish_reason":"stop","index":0,"message":{"content":"Hi","role":"assistant"}}],"usage":{"completion_tokens":5,"prompt_tokens":11,"total_tokens":16}}

11 x 2.2e-06 + 5 x 1.1e-05 = 7.92e-05

gpt-6-luna

$ curl -i -s http://localhost:4000/v1/chat/completions -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -d '{"model":"gpt-6-luna","messages":[{"role":"user","content":"Say hi in one word"}]}'
HTTP/1.1 200 OK
x-litellm-model-name: bedrock/global.openai.gpt-6-luna
x-litellm-response-cost: 3.6e-06
x-litellm-response-cost-input: 1.1e-06
x-litellm-response-cost-output: 2.4999999999999998e-06
llm_provider-x-amzn-requestid: e9215958-6124-4d8d-86ad-0664a7a78246

{"id":"chatcmpl-84708c79-6b4c-46f3-b53c-091040d1bcff","model":"gpt-6-luna","choices":[{"finish_reason":"stop","index":0,"message":{"content":"Hi","role":"assistant"}}],"usage":{"completion_tokens":5,"prompt_tokens":11,"total_tokens":16}}

11 x 1e-07 + 5 x 5e-07 = 3.6e-06

Type

🆕 New Feature

Caveats (if any)

Medium

  • Prices are derived, not published by AWS
    • AWS pricing page lists GPT-6 Sol and GPT-6 Luna but links no model card and no price table (model-card-openai-gpt-6-sol.md and -luna.md return 404 as of 2026-09-23)
    • Rows use the same ratio the published gpt-6-astra rows have to OpenAI list price (global = list, us. and mantle = 1.1x)
    • If AWS publishes different prices, the provider sync will correct the rows
  • bedrock_mantle rows point source at the OpenAI model cards index since no per-model card exists
  • Capability flags are copied from gpt-6-astra and were not individually verified beyond text chat

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/96e1d21266c443d2b1c802f4a31daa94
Open in Devin Desktop: https://app.devin.ai/desktop/session/96e1d21266c443d2b1c802f4a31daa94?variant=devin
Requested by: @kerry-berri


Note

Low Risk
Data-only additions to the model cost map; wrong derived prices could mis-bill until AWS sync updates them, but no runtime logic changes.

Overview
Adds cost-map entries for Bedrock OpenAI GPT-6 Sol and GPT-6 Luna so the proxy can compute spend and return successful responses instead of 422 / $0 cost when AWS has not yet published official prices.

Both model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json gain six new model keys each: bedrock_mantle/openai.gpt-6-sol and -luna (responses mode, OpenAI responses path, chat + /v1/responses), plus us. and global. variants routed through bedrock_converse in chat mode. Non-price metadata (limits, modalities, reasoning/tools/vision flags) follows the existing gpt-6-astra rows; only the eight token price fields differ, using the same global = list / us. & mantle = 1.1× pattern described in the PR.

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

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@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 23, 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

@kerry-berri
kerry-berri enabled auto-merge (squash) September 23, 2026 14:49
@kerry-berri

Copy link
Copy Markdown
Contributor

@greptileai

@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge with no actionable correctness, synchronization, or routing issues identified

Summary

Adds matching Bedrock cost-map metadata for GPT-6 Sol and GPT-6 Luna

  • Adds global and US Bedrock Converse entries
  • Adds Bedrock Mantle Responses entries
  • Keeps the primary and packaged fallback cost maps synchronized

Reviews (1) · Last reviewed commit: "feat(bedrock): add gpt-6-sol and gpt-6-l..."

@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 32cd12c. Configure here.

@codspeed

codspeed Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_bedrock_gpt6_sol_luna (32cd12c) with main (2dccc0d)1

Open in CodSpeed

Footnotes

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

@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kerry-berri
kerry-berri merged commit 75a6bca into main Sep 23, 2026
95 checks passed
@kerry-berri
kerry-berri deleted the litellm_bedrock_gpt6_sol_luna branch September 23, 2026 15:13
kimnamu added a commit to kimnamu/litellm that referenced this pull request Sep 24, 2026
… repo rule and BerriAI#39834 do

The GPT-6 Sol, Luna and Astra Converse rows now set supports_sampling_params false in both cost map files, like the GPT-5.6 rows. Tools and tool choice already come from the rows BerriAI#42746 and BerriAI#42798 added, so the name-based checks in converse_transformation.py are removed
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