fix: pass standalone issue API lint checks

This commit is contained in:
moe-berri 2026-11-05 15:46:00 +08:00 • committed by ishaan-j-berri
parent e98f2183cb
commit 466305d294
3 changed files with 3 additions and 6 deletions

View file

@ -424,11 +424,11 @@ from litellm.messages.dispatch import messages_target
from litellm.proxy._lazy_features import attach_lazy_features, reserve_lazy_slot
from litellm.proxy._types import *
from litellm.proxy.agent_endpoints.auth.agent_access_groups import CeilingResolver, resolve_agent_access_group_ceiling
from litellm.proxy.alerting_endpoints.issues import router as issues_router
from litellm.proxy.alerting_endpoints.model_deprecation_alerts import (
router as model_deprecation_alerts_router,
)
from litellm.proxy.alerting_endpoints.usage_alerts import router as usage_alerts_router
from litellm.proxy.alerting_endpoints.issues import router as issues_router
from litellm.proxy.analytics_endpoints.analytics_endpoints import (
router as analytics_router,
)

View file

@ -92,10 +92,6 @@ class _ModelIdentity(BaseModel, frozen=True):
model: str
class _Identifier(BaseModel, frozen=True):
id: str
class _Pending(_Record, frozen=True):
rule: Mapping[str, object]
notified_channels: tuple[UsageAlertChannel, ...]

View file

@ -67,7 +67,8 @@ def default_usage_rules(
min_history_days=policy.min_history_days,
notification_channels=(
()
if legacy_user_spend_alerts and (scope, policy.metric, policy.direction) == ("user", "spend", "increase")
if legacy_user_spend_alerts
and (scope, policy.metric, policy.direction) == ("user", "spend", "increase")
else channels
),
)