litellm - 💡(How to fix) Fix [Bug]: max_budget is ignored after reset [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#27300Fetched 2026-05-07 03:33:13
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Error Message

15:21:57 - LiteLLM Proxy:ERROR: reset_budget_job.py:660 - Failed to reset budget windows for keys: Unable to match input value to any allowed input type for the field. Parse errors: [where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set] File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/common_utils/reset_budget_job.py", line 637, in reset_budget_windows where={"budget_limits": {"not": None}} # type: ignore[arg-type] prisma.errors.MissingRequiredValueError: Unable to match input value to any allowed input type for the field. Parse errors: [where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set] 15:21:57 - LiteLLM Proxy:ERROR: reset_budget_job.py:689 - Failed to reset budget windows for teams: Unable to match input value to any allowed input type for the field. Parse errors: [where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set] File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/common_utils/reset_budget_job.py", line 666, in reset_budget_windows where={"budget_limits": {"not": None}} # type: ignore[arg-type] prisma.errors.MissingRequiredValueError: Unable to match input value to any allowed input type for the field. Parse errors: [where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set, where.budget_limits.not: A value is required but not set]

Code Example

15:21:57 - LiteLLM Proxy:ERROR: reset_budget_job.py:660 - Failed to reset budget windows for keys: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]
  File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/common_utils/reset_budget_job.py", line 637, in reset_budget_windows
        where={"budget_limits": {"not": None}}  # type: ignore[arg-type]
prisma.errors.MissingRequiredValueError: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]
15:21:57 - LiteLLM Proxy:ERROR: reset_budget_job.py:689 - Failed to reset budget windows for teams: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]
  File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/common_utils/reset_budget_job.py", line 666, in reset_budget_windows
        where={"budget_limits": {"not": None}}  # type: ignore[arg-type]
prisma.errors.MissingRequiredValueError: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

After the monthly reset, the spend for each key is set to 0 again. And also in the last month it worked, that if a key reaches the max_budget, new requests are rejected due to the limit

But now after the reset, it seems to be ignored. We have already some key which run over the limits and can still send requests.

If a change the max_budget for a key (spend 193, old budget 200 to now 180) requests immediately fail due to budget limit.

Some logs I can found are posted below

Steps to Reproduce

  1. Define a budget
  2. Monthly reset happen
  3. Budget is ignored

Relevant log output

15:21:57 - LiteLLM Proxy:ERROR: reset_budget_job.py:660 - Failed to reset budget windows for keys: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]
  File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/common_utils/reset_budget_job.py", line 637, in reset_budget_windows
        where={"budget_limits": {"not": None}}  # type: ignore[arg-type]
prisma.errors.MissingRequiredValueError: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]
15:21:57 - LiteLLM Proxy:ERROR: reset_budget_job.py:689 - Failed to reset budget windows for teams: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]
  File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/common_utils/reset_budget_job.py", line 666, in reset_budget_windows
        where={"budget_limits": {"not": None}}  # type: ignore[arg-type]
prisma.errors.MissingRequiredValueError: Unable to match input value to any allowed input type for the field. Parse errors: [`where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set, `where.budget_limits.not`: A value is required but not set]

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

1.83.10

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING