mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-01 07:03:02 +00:00
fix(management_helpers): exclude budget_id from entity budget settings to prevent duplicate kwarg (#46999)
This commit is contained in:
parent
ef1cb19351
commit
1bed18c997
1 changed files with 2 additions and 2 deletions
|
|
@ -215,8 +215,8 @@ async def handle_budget_for_entity(
|
|||
update_budget,
|
||||
)
|
||||
|
||||
# Get all budget field names
|
||||
budget_params: Final = LiteLLM_BudgetTable.model_fields.keys()
|
||||
# Get all budget field names, excluding budget_id which selects the budget rather than a budget setting
|
||||
budget_params: Final = set(LiteLLM_BudgetTable.model_fields.keys()) - {"budget_id"}
|
||||
|
||||
# Extract budget fields from data
|
||||
_json_data: Final = _BUDGET_DATA_MAPPING.validate_python(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue