forked from phoenix/litellm-mirror
fix(proxy_server.py): fix pydantic versioning issue
This commit is contained in:
parent
2602102ce6
commit
eedd446a6a
1 changed files with 2 additions and 4 deletions
|
@ -5451,9 +5451,7 @@ async def new_organization(
|
||||||
updated_by=user_api_key_dict.user_id or litellm_proxy_admin_name,
|
updated_by=user_api_key_dict.user_id or litellm_proxy_admin_name,
|
||||||
)
|
)
|
||||||
|
|
||||||
new_budget = prisma_client.jsonify_object(
|
new_budget = prisma_client.jsonify_object(budget_row.json(exclude_none=True))
|
||||||
budget_row.model_dump(exclude_none=True)
|
|
||||||
)
|
|
||||||
|
|
||||||
_budget = await prisma_client.db.litellm_budgettable.create(data={**new_budget}) # type: ignore
|
_budget = await prisma_client.db.litellm_budgettable.create(data={**new_budget}) # type: ignore
|
||||||
|
|
||||||
|
@ -5461,7 +5459,7 @@ async def new_organization(
|
||||||
|
|
||||||
response = await prisma_client.db.litellm_organizationtable.create(
|
response = await prisma_client.db.litellm_organizationtable.create(
|
||||||
data={
|
data={
|
||||||
**data.model_dump(exclude_none=True), # type: ignore
|
**data.json(exclude_none=True), # type: ignore
|
||||||
"created_by": user_api_key_dict.user_id,
|
"created_by": user_api_key_dict.user_id,
|
||||||
"updated_by": user_api_key_dict.user_id,
|
"updated_by": user_api_key_dict.user_id,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue