Skip to content

fix(bedrock): correct Nova 2 Lite Japan inference ID - #33239

Closed
devin-ai-integration[bot] wants to merge 1 commit into
litellm_internal_stagingfrom
litellm_fix_nova_2_lite_jp_inference_id
Closed

devin-ai-integration[bot] wants to merge 1 commit into
litellm_internal_stagingfrom
litellm_fix_nova_2_lite_jp_inference_id

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Relevant issues

Fixes #33211

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • 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

Commit 64ed78f657

apac present: False
jp present: True
resolved key: jp.amazon.nova-2-lite-v1:0

Type

Bug Fix

Test

Changes

Replaces the invalid apac.amazon.nova-2-lite-v1:0 cost-map key with AWS's valid jp.amazon.nova-2-lite-v1:0 key in both bundled maps

Adds a regression test that rejects the invalid key, verifies Japan pricing matches the other regional profile pricing, and confirms bedrock/jp.amazon.nova-2-lite-v1:0 resolves to the exact regional entry

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/3b7d02d671a74f5eaaafa1ef792abc16

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR corrects the AWS Bedrock Japan geo-inference profile key for Nova 2 Lite from the invalid apac.amazon.nova-2-lite-v1:0 to the correct jp.amazon.nova-2-lite-v1:0 in both the primary and backup model cost JSON files.

  • Both model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json are updated consistently; all pricing fields are unchanged.
  • A new regression test verifies the old apac key is absent, that jp pricing matches the eu regional profile, and that bedrock/jp.amazon.nova-2-lite-v1:0 resolves to the correct cost-map entry — all using the local cost-map fixture with no network calls.

Confidence Score: 5/5

Safe to merge — the change is a one-line key rename in two JSON files with a targeted regression test that locks in the correct behavior.

The change is minimal and isolated: the wrong apac key is replaced with the correct jp key in both JSON files, pricing values are untouched, and the new test covers both the negative (old key absent) and positive (new key resolves correctly) cases using the existing local_model_cost_map fixture with no network calls.

No files require special attention.

Important Files Changed

Filename Overview
model_prices_and_context_window.json Renames apac.amazon.nova-2-lite-v1:0 key to jp.amazon.nova-2-lite-v1:0; pricing values are unchanged
litellm/model_prices_and_context_window_backup.json Same key rename applied to the backup JSON, keeping both files in sync
tests/test_litellm/test_utils.py Adds test_nova_2_lite_jp_geo_inference_profile_cost_map which asserts apac key absent, jp pricing matches eu, and model-info resolution works — all via the local-cost-map fixture with no network calls

Reviews (1): Last reviewed commit: "fix(bedrock): correct Nova 2 Lite Japan ..." | Re-trigger Greptile

@codecov

codecov Bot commented Jul 14, 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 Jul 14, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_fix_nova_2_lite_jp_inference_id (64ed78f) with litellm_internal_staging (93b5ca9)

Open in CodSpeed

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

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.

[Bug]: Incorrect Bedrock geo cross-region inference ID for Amazon Nova 2 Lite (apac. doesn't exist, jp. is missing)

1 participant