Repository navigation
fix(pricing): replace nonexistent apac.amazon.nova-2-lite-v1:0 with jp geo id (salvage of #33218, credit @vakudo) - #33776
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Greptile SummaryThis PR corrects a single model key in both pricing JSON files, replacing the non-existent
Confidence Score: 3/5The pricing key rename is correct, but the matching The pricing JSON fix is the right change, but the
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Renames model key from apac.amazon.nova-2-lite-v1:0 to jp.amazon.nova-2-lite-v1:0 to match the actual AWS Bedrock geo-routing prefix; the pricing data itself is unchanged. |
| litellm/model_prices_and_context_window_backup.json | Same single-key rename as the primary pricing file to keep the two files in sync; no content changes beyond the key name. |
Reviews (1): Last reviewed commit: "fix(pricing): replace nonexistent apac.a..." | Re-trigger Greptile
| "supports_prompt_caching": true, | ||
| "supports_reasoning": true, | ||
| "supports_response_schema": true, | ||
| "supports_video_input": true, |
There was a problem hiding this comment.
jp. prefix not stripped in _is_nova_2_model
AmazonConverseConfig._is_nova_2_model (in litellm/llms/bedrock/chat/converse_transformation.py, line 326) only strips us., eu., and apac. regional prefixes before checking whether a model name starts with amazon.nova-2-. After this rename, a user who calls with model jp.amazon.nova-2-lite-v1:0 hits the stripping logic, finds no match, and the function returns False — so reasoning parameters (reasoning_effort) are silently not mapped for Japan-region callers. The same gap affects the docstring example on line 296 (still shows apac.) and the tests in test_converse_transformation_nova_2.py (lines 209/302) and test_converse_transformation.py (line 3314) that still assert on the non-existent apac. model. The converse_transformation.py prefix list and all three test files should be updated alongside this pricing change.
|
Thanks @greptile-apps — good catch. The code-side fix was orphaned when the base PR #33469 was closed after a rebase left its diff stuck. I've folded it into this successor:
Pricing-map rename stays the core of this PR (salvage of #33218, credit @vakudo). |
|
Too many files changed for review. ( |
b674acf to
50858bb
Compare
|
Retargeted this PR to the current daily OSS branch ( |
783c00f to
a59279f
Compare
a59279f to
8d8794d
Compare
8d8794d to
8ff44d8
Compare
…p geo id (salvage of BerriAI#33218, credit @vakudo) Signed-off-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
8ff44d8 to
e007ae5
Compare
Signed-off-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |
Successor of #33470. Salvage #33218 credit @vakudo. Pricing map apac→jp for nova-2-lite.