mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix - access metadata (#7523)
This commit is contained in:
parent
4899ed1b42
commit
6e31bcf5a7
1 changed files with 2 additions and 2 deletions
|
|
@ -155,8 +155,8 @@ class _PROXY_VirtualKeyModelMaxBudgetLimiter(RouterBudgetLimiting):
|
|||
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: dict = kwargs.get("litellm_params", {}) or {}
|
||||
_metadata: dict = _litellm_params.get("metadata", {}) or {}
|
||||
user_api_key_model_max_budget: Optional[dict] = _metadata.get(
|
||||
"user_api_key_model_max_budget", None
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue