forked from phoenix/litellm-mirror
fix(proxy_server.py): fix handling none value for existing spend object
This commit is contained in:
parent
fe592aa7ec
commit
12b2ad9ed1
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ def prisma_client():
|
|||
|
||||
# Reset litellm.proxy.proxy_server.prisma_client to None
|
||||
litellm.proxy.proxy_server.custom_db_client = None
|
||||
litellm.proxy.proxy_server.litellm_proxy_budget_name = "litellm-proxy-budget"
|
||||
litellm.proxy.proxy_server.litellm_proxy_budget_name = (
|
||||
f"litellm-proxy-budget-{time.time()}"
|
||||
)
|
||||
|
||||
return prisma_client
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue