mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
(fix) /key/update overwriting metadata
This commit is contained in:
parent
76af479dea
commit
fc1eb36f24
1 changed files with 3 additions and 1 deletions
|
|
@ -134,6 +134,8 @@ class GenerateKeyRequest(LiteLLMBase):
|
|||
|
||||
|
||||
class UpdateKeyRequest(LiteLLMBase):
|
||||
# Note: the defaults of all Params here MUST BE NONE
|
||||
# else they will get overwritten
|
||||
key: str
|
||||
duration: Optional[str] = None
|
||||
models: Optional[list] = None
|
||||
|
|
@ -142,7 +144,7 @@ class UpdateKeyRequest(LiteLLMBase):
|
|||
spend: Optional[float] = None
|
||||
user_id: Optional[str] = None
|
||||
max_parallel_requests: Optional[int] = None
|
||||
metadata: Optional[dict] = {}
|
||||
metadata: Optional[dict] = None
|
||||
|
||||
|
||||
class UserAPIKeyAuth(LiteLLMBase): # the expected response object for user api key auth
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue