The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(alerting): type the _alerted helper
jesusbd9fdd77e99b
diff --git a/tests/test_litellm/proxy/test_proxy_utils.py b/tests/test_litellm/proxy/test_proxy_utils.pyindex bc86d3311af..94ccc2762c5 100644--- a/tests/test_litellm/proxy/test_proxy_utils.py+++ b/tests/test_litellm/proxy/test_proxy_utils.py@@ -13,7 +13,7 @@ from litellm.proxy.utils import PrismaClient, ProxyLoggingfrom litellm.types.guardrails import GuardrailEventHooks-from unittest.mock import MagicMock, patch+from unittest.mock import AsyncMock, MagicMock, patchfrom litellm.proxy.utils import get_custom_url, join_paths@@ -1305,9 +1305,8 @@ class TestPostCallFailureHookLLMExceptionAlerting:client errors must be excluded so a guardrail content-policy block neverpages on-call. 5xx proxy errors still alert."""- async def _alerted(self, exc):+ async def _alerted(self, exc: Exception) -> AsyncMock:import asyncio- from unittest.mock import AsyncMockfrom litellm.proxy._types import AlertType, UserAPIKeyAuth