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.

chore(llm-gateway): add signals user cost limits (#59433)

Joshua Snyder3ac9c0f525fd
diff --git a/services/llm-gateway/src/llm_gateway/config.py b/services/llm-gateway/src/llm_gateway/config.py
index 415f7bf5d039..d4e14dbf0dba 100644
--- a/services/llm-gateway/src/llm_gateway/config.py
+++ b/services/llm-gateway/src/llm_gateway/config.py
@@ -51,6 +51,12 @@ DEFAULT_USER_COST_LIMITS: dict[str, "UserCostLimit"] = {
sustained_limit_usd=1000.0,
sustained_window_seconds=2592000,
),
+ "signals": UserCostLimit(
+ burst_limit_usd=500.0,
+ burst_window_seconds=604800,
+ sustained_limit_usd=1000.0,
+ sustained_window_seconds=2592000,
+ ),
}
FREE_PLAN_COST_LIMIT = UserCostLimit(