mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(fix) setting model_max_budget
This commit is contained in:
parent
d65c6d3869
commit
e8dcf8fa13
1 changed files with 5 additions and 0 deletions
|
@ -1763,6 +1763,11 @@ async def generate_key_helper_fn(
|
|||
saved_token["metadata"] = json.loads(saved_token["metadata"])
|
||||
if isinstance(saved_token["permissions"], str):
|
||||
saved_token["permissions"] = json.loads(saved_token["permissions"])
|
||||
if isinstance(saved_token["model_max_budget"], str):
|
||||
saved_token["model_max_budget"] = json.loads(
|
||||
saved_token["model_max_budget"]
|
||||
)
|
||||
|
||||
if saved_token.get("expires", None) is not None and isinstance(
|
||||
saved_token["expires"], datetime
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue