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): raise wizard daily product cost cap (#69958)

Richard Solomouf6aa24a4507d
diff --git a/services/llm-gateway/src/llm_gateway/config.py b/services/llm-gateway/src/llm_gateway/config.py
index 24853e768333..09d223304d41 100644
--- a/services/llm-gateway/src/llm_gateway/config.py
+++ b/services/llm-gateway/src/llm_gateway/config.py
@@ -27,7 +27,7 @@ DEFAULT_USER_COST_LIMIT = UserCostLimit(
DEFAULT_PRODUCT_COST_LIMITS: dict[str, "ProductCostLimit"] = {
"llm_gateway": ProductCostLimit(limit_usd=1000.0, window_seconds=86400),
"ci": ProductCostLimit(limit_usd=1000.0, window_seconds=2592000), # $1000 / 30 days
- "wizard": ProductCostLimit(limit_usd=2000.0, window_seconds=86400),
+ "wizard": ProductCostLimit(limit_usd=10000.0, window_seconds=86400),
"posthog_code": ProductCostLimit(limit_usd=5000.0, window_seconds=3600),
"background_agents": ProductCostLimit(limit_usd=1000.0, window_seconds=3600),
"django": ProductCostLimit(limit_usd=5000.0, window_seconds=86400),
diff --git a/services/llm-gateway/tests/test_cost_throttles.py b/services/llm-gateway/tests/test_cost_throttles.py
index d66c9c100f77..52feb5c4fb0f 100644
--- a/services/llm-gateway/tests/test_cost_throttles.py
+++ b/services/llm-gateway/tests/test_cost_throttles.py
@@ -152,7 +152,7 @@ class TestProductCostThrottle:
ctx_wizard = make_context(product="wizard")
ctx_posthog_code = make_context(product="posthog_code")
- await throttle.record_cost(ctx_wizard, 2000.0)
+ await throttle.record_cost(ctx_wizard, 10000.0)
result_wizard = await throttle.allow_request(ctx_wizard)
result_posthog_code = await throttle.allow_request(ctx_posthog_code)