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: pass request to config update test
mateo29f0110fe08d
diff --git a/tests/proxy_unit_tests/test_proxy_server.py b/tests/proxy_unit_tests/test_proxy_server.pyindex 47554913419..54cce9cdd78 100644--- a/tests/proxy_unit_tests/test_proxy_server.py+++ b/tests/proxy_unit_tests/test_proxy_server.py@@ -3076,7 +3076,9 @@ async def test_update_config_success_callback_normalization():admin_user = UserAPIKeyAuth(user_role=LitellmUserRoles.PROXY_ADMIN, api_key="sk-test")- await proxy_server.update_config(config_update, user_api_key_dict=admin_user)+ request = MagicMock()+ request.json = AsyncMock(return_value={"litellm_settings": {"success_callback": ["SQS", "sQs"]}})+ await proxy_server.update_config(config_update, request=request, user_api_key_dict=admin_user)assert ("litellm_settings" in upserted