mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(proxy_server.py): fix handling none value for existing spend object
This commit is contained in:
parent
f74ffbe1d4
commit
aeae42615f
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