mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
Fix _rotate_master_key
This commit is contained in:
parent
aa255c7e63
commit
ee7e5437f8
1 changed files with 2 additions and 2 deletions
|
|
@ -3096,8 +3096,8 @@ async def _rotate_master_key( # noqa: PLR0915
|
|||
)
|
||||
if new_model:
|
||||
_dumped = new_model.model_dump(exclude_none=True)
|
||||
_dumped["litellm_params"] = prisma.Json(_dumped["litellm_params"]) # type: ignore[attr-defined]
|
||||
_dumped["model_info"] = prisma.Json(_dumped["model_info"]) # type: ignore[attr-defined]
|
||||
_dumped["litellm_params"] = safe_dumps(_dumped["litellm_params"])
|
||||
_dumped["model_info"] = safe_dumps(_dumped["model_info"])
|
||||
new_models.append(_dumped)
|
||||
verbose_proxy_logger.debug("Resetting proxy model table")
|
||||
async with prisma_client.db.tx() as tx:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue