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.

fix(llm-gateway): allow glm-5.3-flash on the posthog_code free tier (#106033)

Alessandro Pogliaghi3aeb5771b77f
diff --git a/services/llm-gateway/src/llm_gateway/config.py b/services/llm-gateway/src/llm_gateway/config.py
index eed0e83f23cb..ee92e69c9b1b 100644
--- a/services/llm-gateway/src/llm_gateway/config.py
+++ b/services/llm-gateway/src/llm_gateway/config.py
@@ -236,6 +236,7 @@ class Settings(BaseSettings):
"@cf/zai-org/glm-5.2",
"deepseek-ai/deepseek-v4-flash-0731",
"moonshotai/kimi-k3",
+ "zai-org/glm-5.3-flash",
]
default_fallback_cost_usd: float = 0.01
diff --git a/services/llm-gateway/tests/test_models_api.py b/services/llm-gateway/tests/test_models_api.py
index 535caa3b4ce3..1193d333f1a2 100644
--- a/services/llm-gateway/tests/test_models_api.py
+++ b/services/llm-gateway/tests/test_models_api.py
@@ -388,6 +388,7 @@ class TestFreeTierModelListing:
assert {m["id"] for m in body["data"] if m["allowed"]} == {
"@cf/zai-org/glm-5.2",
"deepseek-ai/deepseek-v4-flash-0731",
+ "zai-org/glm-5.3-flash",
}
# codex reads the `models` mirror; the marks must be there too
assert body["models"] == body["data"]
diff --git a/services/llm-gateway/tests/test_product_config.py b/services/llm-gateway/tests/test_product_config.py
index 91de1b3f6e2a..ec7945fa8b21 100644
--- a/services/llm-gateway/tests/test_product_config.py
+++ b/services/llm-gateway/tests/test_product_config.py
@@ -603,6 +603,7 @@ class TestCheckFreeTierModelAccess:
("posthog_code", "@cf/zai-org/glm-5.2", False, False, True),
("posthog_code", "deepseek-ai/deepseek-v4-flash-0731", False, False, True),
("posthog_code", "moonshotai/kimi-k3", False, False, True),
+ ("posthog_code", "zai-org/glm-5.3-flash", False, False, True),
# The alias routes are the same surface - a URL spelling must not bypass
("array", "claude-fable-5", False, False, False),
("twig", "gpt-5.5", False, False, False),