mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Fix : Cost Tracking Callback Fails with KeyError: 'stream'
This commit is contained in:
parent
9a9315043f
commit
023e02bf73
1 changed files with 2 additions and 2 deletions
|
|
@ -202,8 +202,8 @@ class _ProxyDBLogger(CustomLogger):
|
|||
max_budget=end_user_max_budget,
|
||||
)
|
||||
else:
|
||||
if kwargs["stream"] is not True or (
|
||||
kwargs["stream"] is True and "complete_streaming_response" in kwargs
|
||||
if kwargs.get("stream") is not True or (
|
||||
kwargs.get("stream") is True and "complete_streaming_response" in kwargs
|
||||
):
|
||||
if sl_object is not None:
|
||||
cost_tracking_failure_debug_info: Union[dict, str] = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue