mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Co-authored-by: Dan Siwiec <daniel.siwiec@gmail.com>
This commit is contained in:
parent
2f08341a08
commit
bcf2420e6d
1 changed files with 2 additions and 3 deletions
|
|
@ -1431,6 +1431,8 @@ class UserAPIKeyAuth(
|
|||
user_tpm_limit: Optional[int] = None
|
||||
user_rpm_limit: Optional[int] = None
|
||||
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
@model_validator(mode="before")
|
||||
@classmethod
|
||||
def check_api_key(cls, values):
|
||||
|
|
@ -1442,9 +1444,6 @@ class UserAPIKeyAuth(
|
|||
values.update({"api_key": hash_token(values.get("api_key"))})
|
||||
return values
|
||||
|
||||
class Config:
|
||||
arbitrary_types_allowed = True
|
||||
|
||||
|
||||
class UserInfoResponse(LiteLLMPydanticObjectBase):
|
||||
user_id: Optional[str]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue