Merge branch 'main' into litellm_spend_per_user

This commit is contained in:
Ishaan Jaff 2024-01-24 12:24:15 -08:00 committed by GitHub
commit f76620b1d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 204 additions and 67 deletions

View file

@ -897,6 +897,10 @@ def get_logging_payload(kwargs, response_obj, start_time, end_time):
from pydantic import Json
import uuid
verbose_proxy_logger.debug(
f"SpendTable: get_logging_payload - kwargs: {kwargs}\n\n"
)
if kwargs == None:
kwargs = {}
# standardize this function to be used across, s3, dynamoDB, langfuse logging