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]

chore(auto-router): merge main budget fix into JEV classifier

Moe Khalil93dddbf0475f
diff --cc tests/test_litellm/proxy/management_endpoints/test_auto_router_endpoints.py
index 03325d5296e,6b784166c19..931531441d3
--- a/tests/test_litellm/proxy/management_endpoints/test_auto_router_endpoints.py
+++ b/tests/test_litellm/proxy/management_endpoints/test_auto_router_endpoints.py
@@@ -3,17 -3,16 +3,20 @@@ Unit tests for auto router management e
"""
from collections.abc import Mapping, Sequence
+ from functools import partial
from pathlib import Path
from typing import Final
+ from unittest.mock import AsyncMock, MagicMock
+import httpx
import pytest
+import respx
from fastapi import HTTPException, Request
from pydantic import ValidationError
+ import litellm
+import litellm.llms.custom_httpx.http_handler as http_handler
+import litellm.router_strategy.complexity_router.complexity_router as complexity_module
from litellm.proxy import proxy_server
from litellm.proxy._types import (
LitellmUserRoles,