mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) when kwargs==None
This commit is contained in:
parent
d14d36af9a
commit
b0e18e92b6
1 changed files with 2 additions and 0 deletions
|
@ -8429,6 +8429,8 @@ def get_logging_payload(kwargs, response_obj, start_time, end_time):
|
||||||
from litellm.proxy._types import LiteLLM_SpendLogs
|
from litellm.proxy._types import LiteLLM_SpendLogs
|
||||||
from pydantic import Json
|
from pydantic import Json
|
||||||
|
|
||||||
|
if kwargs == None:
|
||||||
|
kwargs = {}
|
||||||
# standardize this function to be used across, s3, dynamoDB, langfuse logging
|
# standardize this function to be used across, s3, dynamoDB, langfuse logging
|
||||||
litellm_params = kwargs.get("litellm_params", {})
|
litellm_params = kwargs.get("litellm_params", {})
|
||||||
metadata = (
|
metadata = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue