:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(llm-gateway): use global fable profile in eu (#72158)
Richard Solomou266a72955d65
diff --git a/services/llm-gateway/src/llm_gateway/bedrock.py b/services/llm-gateway/src/llm_gateway/bedrock.pyindex ae774ff94f16..891138f3e246 100644--- a/services/llm-gateway/src/llm_gateway/bedrock.py+++ b/services/llm-gateway/src/llm_gateway/bedrock.py@@ -68,7 +68,7 @@ ANTHROPIC_TO_BEDROCK_MODEL_MAP: Final[dict[str, dict[str, str]]] = {},"claude-fable-5": {"us": "us.anthropic.claude-fable-5",- "eu": "eu.anthropic.claude-fable-5",+ "eu": "global.anthropic.claude-fable-5",},"claude-sonnet-4-5": {"us": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",diff --git a/services/llm-gateway/tests/test_bedrock.py b/services/llm-gateway/tests/test_bedrock.pyindex 0468d6ed07d7..1a70cbc2b118 100644--- a/services/llm-gateway/tests/test_bedrock.py+++ b/services/llm-gateway/tests/test_bedrock.py@@ -879,10 +879,17 @@ class TestModelMapping:assert map_to_bedrock_model("us.anthropic.claude-sonnet-4-6") == "us.anthropic.claude-sonnet-4-6"- def test_maps_to_eu_profile_for_eu_regions(self) -> None:+ @pytest.mark.parametrize(+ "anthropic_model,expected_bedrock_model",+ [+ pytest.param("claude-opus-4-6", "eu.anthropic.claude-opus-4-6-v1", id="opus_4_6"),+ pytest.param("claude-fable-5", "global.anthropic.claude-fable-5", id="fable_5"),+ ],+ )+ def test_maps_to_available_profile_for_eu_regions(self, anthropic_model: str, expected_bedrock_model: str) -> None:from llm_gateway.api.anthropic import map_to_bedrock_model- assert map_to_bedrock_model("claude-opus-4-6", region_name="eu-west-1") == "eu.anthropic.claude-opus-4-6-v1"+ assert map_to_bedrock_model(anthropic_model, region_name="eu-west-1") == expected_bedrock_modeldef test_raises_for_unknown_model(self) -> None:from llm_gateway.api.anthropic import map_to_bedrock_model