Skip to content

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]

Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_fix_health_scoped_results_and_serialization

mateo-berrid5bd78831403
diff --cc tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py
index bbcae2fb68f,e9e58347337..022cf1e5505
--- a/tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py
+++ b/tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py
@@@ -1,11 -1,9 +1,12 @@@
import asyncio
+import copy
import json
import time
-from typing import Final
+from collections.abc import Iterator, Mapping, Sequence
+from contextlib import contextmanager
from datetime import datetime, timedelta
from types import SimpleNamespace
++from typing import Final
from unittest.mock import AsyncMock, MagicMock, patch
import httpx
@@@ -18,9 -16,9 +19,10 @@@ from prisma.errors import ClientNotConn
import litellm
import litellm.proxy.health_endpoints._health_endpoints as _health_endpoints_module
from litellm.litellm_core_utils.health_check_helpers import TEST_IMAGE_BASE64
+ from litellm.models.credentials import CredentialItem
from litellm.proxy._types import LitellmUserRoles, ProxyException, UserAPIKeyAuth
from litellm.proxy.auth.user_api_key_auth import user_api_key_auth
+from litellm.router import Router
from litellm.proxy.health_endpoints._health_endpoints import (
_db_health_readiness_check,
_show_no_redis_warning,