From b08248694175dfc3dd13540f712f7a7f7274c435 Mon Sep 17 00:00:00 2001 From: Tomoya Tabuchi Date: Tue, 9 Jun 2026 16:27:33 +0900 Subject: [PATCH] feat(team_endpoints): Apply suggestions from greptile * Set greater-than constraint on key-limit * Fix type --- litellm/proxy/management_endpoints/team_endpoints.py | 4 ++-- ui/litellm-dashboard/src/lib/http/schema.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.py index 22c60e0db50..175cf60d7e9 100644 --- a/litellm/proxy/management_endpoints/team_endpoints.py +++ b/litellm/proxy/management_endpoints/team_endpoints.py @@ -3470,8 +3470,8 @@ async def team_info( team_id: str = fastapi.Query( default=None, description="Team ID in the request parameters" ), - key_limit: int = fastapi.Query( - default=None, description="Limit the number of keys returned" + key_limit: Optional[int] = fastapi.Query( + default=None, description="Limit the number of keys returned", gt=0 ), user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), ): diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 7a7ed62f511..8da77bb3e57 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -48528,7 +48528,7 @@ export interface operations { /** @description Team ID in the request parameters */ team_id?: string; /** @description Limit the number of keys returned */ - key_limit?: number; + key_limit?: number | null; }; header?: never; path?: never;