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;