mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
fix DBSpendUpdateWriter
This commit is contained in:
parent
a0fd508de4
commit
7995fd7c98
1 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
"""
|
||||
Module responsible for
|
||||
|
||||
1. Writing spend increments to either in memory list of transactions or to redis
|
||||
2. Reading increments from redis or in memory list of transactions and committing them to db
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import traceback
|
||||
|
@ -12,6 +19,12 @@ from litellm.proxy.utils import PrismaClient, ProxyUpdateSpend, hash_token
|
|||
|
||||
|
||||
class DBSpendUpdateWriter:
|
||||
"""
|
||||
Module responsible for
|
||||
|
||||
1. Writing spend increments to either in memory list of transactions or to redis
|
||||
2. Reading increments from redis or in memory list of transactions and committing them to db
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
async def update_database( # noqa: PLR0915
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue