Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions litellm/proxy/hooks/model_max_budget_limiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ async def async_log_success_event(self, kwargs, response_obj, start_time, end_ti
if standard_logging_payload is None:
raise ValueError("standard_logging_payload is required")

_litellm_params = kwargs.get("litellm_params", {})
_metadata = _litellm_params.get("metadata", {})
_litellm_params = kwargs.get("litellm_params", {}) or {}
_metadata = _litellm_params.get("metadata", {}) or {}
user_api_key_model_max_budget: Optional[dict] = _metadata.get(
"user_api_key_model_max_budget", None
)
Expand Down