mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix: fix linting error
This commit is contained in:
parent
2b83882c07
commit
f0d047a0e4
1 changed files with 3 additions and 2 deletions
|
@ -249,6 +249,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915
|
|||
parent_otel_span: Optional[Span] = None
|
||||
start_time = datetime.now()
|
||||
route: str = get_request_route(request=request)
|
||||
valid_token: Optional[UserAPIKeyAuth] = None
|
||||
|
||||
try:
|
||||
|
||||
|
@ -393,7 +394,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915
|
|||
parent_otel_span=parent_otel_span,
|
||||
)
|
||||
|
||||
valid_token: Optional[UserAPIKeyAuth] = UserAPIKeyAuth(
|
||||
valid_token = UserAPIKeyAuth(
|
||||
api_key=None,
|
||||
team_id=team_id,
|
||||
team_tpm_limit=(
|
||||
|
@ -425,7 +426,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915
|
|||
)
|
||||
|
||||
# return UserAPIKeyAuth object
|
||||
return valid_token
|
||||
return cast(UserAPIKeyAuth, valid_token)
|
||||
|
||||
#### ELSE ####
|
||||
## CHECK PASS-THROUGH ENDPOINTS ##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue