mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
fix: pass standalone issue API lint checks
This commit is contained in:
parent
e98f2183cb
commit
466305d294
3 changed files with 3 additions and 6 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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, ...]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue