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]

Fix black

Sameer Kankutee34036045020
diff --git a/litellm/proxy/management_helpers/object_permission_utils.py b/litellm/proxy/management_helpers/object_permission_utils.py
index 1e5c575a23b..023009d1989 100644
--- a/litellm/proxy/management_helpers/object_permission_utils.py
+++ b/litellm/proxy/management_helpers/object_permission_utils.py
@@ -404,6 +404,7 @@ async def validate_key_mcp_servers_against_team(
},
)
+
def _extract_requested_search_tools(object_permission: Optional[dict]) -> List[str]:
"""Return search_tool_name values from a key's object_permission dict."""
if not object_permission or not isinstance(object_permission, dict):
@@ -446,4 +447,4 @@ async def validate_key_search_tools_against_team(
f"{sorted(disallowed)}. Team allows: {sorted(team_tools)}."
)
},
- )
\ No newline at end of file
+ )