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(router): assert the auto-router max_input_chars kwarg
Yuneng Jiang495eb7e7f428
diff --git a/tests/router_unit_tests/test_router_helper_utils.py b/tests/router_unit_tests/test_router_helper_utils.pyindex bcc70fae67c..0655763d41b 100644--- a/tests/router_unit_tests/test_router_helper_utils.py+++ b/tests/router_unit_tests/test_router_helper_utils.py@@ -15,6 +15,7 @@ from unittest.mock import patch, MagicMock, AsyncMockfrom create_mock_standard_logging_payload import create_standard_logging_payloadfrom litellm.types.utils import StandardLoggingPayloadfrom litellm.types.router import Deployment, LiteLLM_Params, ModelInfo+from litellm.constants import DEFAULT_AUTO_ROUTER_MAX_INPUT_CHARS@pytest.fixture@@ -1816,6 +1817,7 @@ def test_init_auto_router_deployment_success(mock_auto_router, model_list):default_model="gpt-5-mini",embedding_model="text-embedding-3-small",litellm_router_instance=router,+ max_input_chars=DEFAULT_AUTO_ROUTER_MAX_INPUT_CHARS,)# Verify the auto-router was added to the router's auto_routers dict