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(test_proxy_server.py): fix test to specify user role
Krrish Dholakia5ba517819cef
diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.pyindex 8f8ad610a80..d3c2e3e839b 100644--- a/litellm/proxy/management_endpoints/team_endpoints.py+++ b/litellm/proxy/management_endpoints/team_endpoints.py@@ -488,7 +488,8 @@ async def team_member_add(status_code=403,detail={"error": "Call not allowed. User not proxy admin OR team admin. route={}, team_id={}".format(- "/team/member_add", complete_team_data.team_id+ "/team/member_add",+ complete_team_data.team_id,)},)diff --git a/litellm/tests/test_proxy_server.py b/litellm/tests/test_proxy_server.pyindex 79da5bf7c55..c4d9afbbdb3 100644--- a/litellm/tests/test_proxy_server.py+++ b/litellm/tests/test_proxy_server.py@@ -909,7 +909,7 @@ async def test_create_team_member_add(prisma_client, new_member_method):await team_member_add(data=team_member_add_request,- user_api_key_dict=UserAPIKeyAuth(),+ user_api_key_dict=UserAPIKeyAuth(user_role="proxy_admin"),http_request=Request(scope={"type": "http", "path": "/user/new"},),