forked from phoenix/litellm-mirror
fix(utils.py): fix double hashing issue on spend logs, streaming usage metadata logging iss
ue for spend logs
This commit is contained in:
parent
f8870fb48e
commit
d52f5234b4
3 changed files with 23 additions and 9 deletions
|
@ -699,6 +699,7 @@ async def update_database(
|
|||
valid_token.spend = new_spend
|
||||
user_api_key_cache.set_cache(key=token, value=valid_token)
|
||||
|
||||
### UPDATE SPEND LOGS ###
|
||||
async def _insert_spend_log_to_db():
|
||||
# Helper to generate payload to log
|
||||
verbose_proxy_logger.debug("inserting spend log to db")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue