Repository navigation
feat(bedrock): add gpt-6-sol and gpt-6-luna model pricing - #42746
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
devin-ai-integration
Bot
requested review from
kerry-berri,
mateo-berri and
ryan-crabbe-berri
as code owners
September 23, 2026 14:49
Contributor
Contributor
|
bugbot run |
kerry-berri
enabled auto-merge (squash)
September 23, 2026 14:49
Contributor
Contributor
|
bugbot run |
Contributor
|
Contributor
There was a problem hiding this comment.
✅ 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.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
kerry-berri
approved these changes
Sep 23, 2026
kerry-berri
approved these changes
Sep 23, 2026
kerry-berri
disabled auto-merge
September 23, 2026 15:13
3 of 5 tasks
7 of 12 tasks
This was referenced Sep 24, 2026
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
Closed
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a proxy admin who deploys
bedrock/us.openai.gpt-6-solgets a 422 on every callbedrock/us.openai.gpt-6-solto their model list and start the proxy{"model":"gpt-6-sol","messages":[...]}BedrockException - Error processing ... 'NoneType' object is not subscriptablewithx-litellm-response-cost: 0After: the same deployment works and is billed
bedrock/us.openai.gpt-6-solto their model list and start the proxyx-litellm-response-cost: 7.92e-05(11 in, 5 out tokens)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
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@greptileaito 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 rowsDelays 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):Before (5028f9e)
gpt-6-sol
gpt-6-luna
Same 422 and
x-litellm-response-cost: 0After (32cd12c)
gpt-6-sol
11 x 2.2e-06 + 5 x 1.1e-05 = 7.92e-05
gpt-6-luna
11 x 1e-07 + 5 x 5e-07 = 3.6e-06
Type
🆕 New Feature
Caveats (if any)
Medium
sourceat the OpenAI model cards index since no per-model card existsFinal Attestation
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 /
$0cost when AWS has not yet published official prices.Both
model_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.jsongain six new model keys each:bedrock_mantle/openai.gpt-6-soland-luna(responses mode, OpenAI responses path, chat +/v1/responses), plusus.andglobal.variants routed throughbedrock_conversein 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.