From 64ed78f6576ac42fe7b9119cd871d8b45d8f154d Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 17:11:37 +0000 Subject: [PATCH] fix(bedrock): correct Nova 2 Lite Japan inference ID --- litellm/model_prices_and_context_window_backup.json | 2 +- model_prices_and_context_window.json | 2 +- tests/test_litellm/test_utils.py | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index a6f59abc140..791aa2bf1f1 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -394,7 +394,7 @@ "supports_video_input": true, "supports_vision": true }, - "apac.amazon.nova-2-lite-v1:0": { + "jp.amazon.nova-2-lite-v1:0": { "cache_read_input_token_cost": 8.25e-08, "input_cost_per_token": 3.3e-07, "litellm_provider": "bedrock_converse", diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 08a452be844..575dbfb7281 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -394,7 +394,7 @@ "supports_video_input": true, "supports_vision": true }, - "apac.amazon.nova-2-lite-v1:0": { + "jp.amazon.nova-2-lite-v1:0": { "cache_read_input_token_cost": 8.25e-08, "input_cost_per_token": 3.3e-07, "litellm_provider": "bedrock_converse", diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py index 1a5c419754b..ec6d895a504 100644 --- a/tests/test_litellm/test_utils.py +++ b/tests/test_litellm/test_utils.py @@ -1097,6 +1097,16 @@ def test_get_model_info_bedrock_regional_profile_without_entry_falls_back_to_bas assert info["key"] == "anthropic.claude-opus-4-8" +def test_nova_2_lite_jp_geo_inference_profile_cost_map(local_model_cost_map): + assert "apac.amazon.nova-2-lite-v1:0" not in litellm.model_cost + assert litellm.model_cost["jp.amazon.nova-2-lite-v1:0"] == litellm.model_cost[ + "eu.amazon.nova-2-lite-v1:0" + ] + + info = litellm.get_model_info(model="bedrock/jp.amazon.nova-2-lite-v1:0") + assert info["key"] == "jp.amazon.nova-2-lite-v1:0" + + def test_get_model_info_bedrock_double_provider_prefix_resolves(local_model_cost_map): """A doubled bedrock/ prefix routes at runtime via strip_bedrock_routing_prefix, so model info must resolve it to the same entry the request actually bills as."""