Skip to content

: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.

feat(llm-gateway): allow claude-fable-5 model (#62497)

Peter Kirkham5a23122a3933
diff --git a/services/llm-gateway/src/llm_gateway/bedrock.py b/services/llm-gateway/src/llm_gateway/bedrock.py
index 4e47f368ba33..d14ead0e1cad 100644
--- a/services/llm-gateway/src/llm_gateway/bedrock.py
+++ b/services/llm-gateway/src/llm_gateway/bedrock.py
@@ -48,6 +48,10 @@ ANTHROPIC_TO_BEDROCK_MODEL_MAP: Final[dict[str, dict[str, str]]] = {
"us": "us.anthropic.claude-opus-4-8",
"eu": "eu.anthropic.claude-opus-4-8",
},
+ "claude-fable-5": {
+ "us": "us.anthropic.claude-fable-5",
+ "eu": "eu.anthropic.claude-fable-5",
+ },
"claude-sonnet-4-5": {
"us": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
"eu": "eu.anthropic.claude-sonnet-4-5-20250929-v1:0",
diff --git a/services/llm-gateway/src/llm_gateway/products/config.py b/services/llm-gateway/src/llm_gateway/products/config.py
index 5e510e19b32b..a8c10e3826a8 100644
--- a/services/llm-gateway/src/llm_gateway/products/config.py
+++ b/services/llm-gateway/src/llm_gateway/products/config.py
@@ -41,6 +41,7 @@ _POSTHOG_CODE_AGENT_MODELS: Final[frozenset[str]] = frozenset(
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8",
+ "claude-fable-5",
"claude-sonnet-4-5",
"claude-sonnet-4-6",
"claude-haiku-4-5",
@@ -71,6 +72,7 @@ PRODUCTS: Final[dict[str, ProductConfig]] = {
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8",
+ "claude-fable-5",
"claude-sonnet-4-5",
"claude-haiku-4-5",
"gpt-5.4",
diff --git a/services/llm-gateway/tests/test_bedrock.py b/services/llm-gateway/tests/test_bedrock.py
index af94267bf95f..934f517e6e24 100644
--- a/services/llm-gateway/tests/test_bedrock.py
+++ b/services/llm-gateway/tests/test_bedrock.py
@@ -117,6 +117,7 @@ class TestBedrockSpecific:
pytest.param("claude-sonnet-4-6", "bedrock/us.anthropic.claude-sonnet-4-6", id="anthropic_name_mapped"),
pytest.param("claude-opus-4-7", "bedrock/us.anthropic.claude-opus-4-7", id="opus_4_7_inference_profile"),
pytest.param("claude-opus-4-8", "bedrock/us.anthropic.claude-opus-4-8", id="opus_4_8_inference_profile"),
+ pytest.param("claude-fable-5", "bedrock/us.anthropic.claude-fable-5", id="fable_5_inference_profile"),
pytest.param(
"us.anthropic.claude-sonnet-4-6", "bedrock/us.anthropic.claude-sonnet-4-6", id="already_bedrock_id"
),
diff --git a/services/llm-gateway/tests/test_product_config.py b/services/llm-gateway/tests/test_product_config.py
index 10d01718ad2f..b72ef325ecbe 100644
--- a/services/llm-gateway/tests/test_product_config.py
+++ b/services/llm-gateway/tests/test_product_config.py
@@ -92,6 +92,7 @@ class TestCheckProductAccess:
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8",
+ "claude-fable-5",
"claude-sonnet-4-5",
"claude-sonnet-4-6",
"claude-haiku-4-5",
@@ -129,6 +130,7 @@ class TestCheckProductAccess:
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8",
+ "claude-fable-5",
"claude-sonnet-4-5",
"claude-sonnet-4-6",
"claude-haiku-4-5",
@@ -203,6 +205,7 @@ class TestCheckProductAccess:
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8",
+ "claude-fable-5",
"claude-sonnet-4-5",
"claude-haiku-4-5",
"gpt-5.3-codex",