BerriAI/litellm · error · HTTPException
Specify list of budget id's to query. Passed in={data.budget
Error message
Specify list of budget id's to query. Passed in={data.budgets} What it means
Error "Specify list of budget id's to query. Passed in={data.budgets}" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/budget_management_endpoints.py:211
@router.post(
"/budget/info",
tags=["budget management"],
dependencies=[Depends(user_api_key_auth)],
)
async def info_budget(data: BudgetRequest):
"""
Get the budget id specific information
Parameters:
- budgets: List[str] - The list of budget ids to get information for
"""
from litellm.proxy.proxy_server import prisma_client
if prisma_client is None:
raise HTTPException(status_code=500, detail={"error": "No db connected"})
if len(data.budgets) == 0:
raise HTTPException(
status_code=400,
detail={"error": f"Specify list of budget id's to query. Passed in={data.budgets}"},
)
response: Final = await BudgetRepository(prisma_client).table.find_many(
where={"budget_id": {"in": data.budgets}},
)
return response
@router.get(
"/budget/settings",
tags=["budget management"],
dependencies=[Depends(user_api_key_auth)],
)
async def budget_settings(
budget_id: str,
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),View on GitHub (pinned to 77b7c6c40c)
Solutions
- Pass a non-empty list of budget ids in the budgets field of the request.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/budget_management_endpoints.py:211 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/a6b59b97b2fa1a79.
Report an issue: GitHub.