Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def is_reasoning(model_name: str) -> bool:

def get_model_name(model_name: str) -> str:
"""Extract base model name from region-prefixed model identifier."""
# Check for region prefixes (us, eu, apac)
REGION_PREFIXES = ["us.", "eu.", "apac."]
# Check for region prefixes (us, eu, apac, global)
REGION_PREFIXES = ["us.", "eu.", "apac.", "global."]

# If no region prefix, return the original model name
if not any(prefix in model_name for prefix in REGION_PREFIXES):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dev = [

[project]
name = "llama-index-llms-bedrock-converse"
version = "0.10.1"
version = "0.10.2"
description = "llama-index llms bedrock converse integration"
authors = [{name = "Your Name", email = "[email protected]"}]
requires-python = ">=3.9,<4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ def test_get_model_name_translates_us():
)


def test_get_model_name_translates_global():
assert (
get_model_name("global.anthropic.claude-sonnet-4-5-20250929-v1:0")
== "anthropic.claude-sonnet-4-5-20250929-v1:0"
)


def test_get_model_name_does_nottranslate_cn():
assert (
get_model_name("cn.meta.llama3-2-3b-instruct-v1:0")
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.