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

This commit is contained in:
Devin AI 2026-07-14 17:11:37 +00:00
parent 93b5ca9612
commit 64ed78f657
3 changed files with 12 additions and 2 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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."""