You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.48.0: _cache_buckets raises AttributeError on litellm PromptTokensDetailsWrapper #5099
bugSomething isn't workingllmAbout LLMs.priority:mediumFor bugs, a serious source of annoyance, but not blocking a large number of users.release-note-requiredPR requires explicit release-note coverage for behavioral or default changes
model_fields_set is not a safe test for this object. litellm's PromptTokensDetailsWrapper extends SafeAttributeModel, which removes
attributes whose value is None — but the field name stays in model_fields_set, because it was set at construction. So the guard passes
and the attribute access fails.
This issue does not yet meet the readiness criteria, so the ready-for-dev label has not been applied (or has been removed).
The criteria are type-specific:
An ### Acceptance Criteria section with at least one checklist item.
What is missing:
The issue has neither the bug nor enhancement label, so its readiness criteria cannot be evaluated. Add the appropriate label.
Edit the issue to address the gaps and the ready-for-dev label will be
applied automatically.
Note: Section headings require exact ### matches from the templates.
If a missing type label is reported, no action is needed from external
contributors — maintainers will add the label during triage.
This is an automated check — no AI was used to generate this comment.
@dongjb I hit the same crash with MiniMax and put up PR #5169 with a fix. If you get a chance, please test it against your provider. I also verified it with ZAI glm-5.3-flash and it works there too.
Heads up: this is being tracked canonically in #5168, which carries ready-for-dev, with fix PR #5169. Steps to test the fix locally before it merges are here: #5168 (comment)
Fixed by #5327 (v1.50.0): normalize_usage() in telemetry.py now checks hasattr as well as model_fields_set, so this no longer crashes on litellm 1.93–1.102. Please upgrade to ≥1.50.0.
bugSomething isn't workingllmAbout LLMs.priority:mediumFor bugs, a serious source of annoyance, but not blocking a large number of users.release-note-requiredPR requires explicit release-note coverage for behavioral or default changes
Activity
github-actions commentedon Sep 16, 2026
ready-for-devThis issue does not yet meet the readiness criteria, so the
ready-for-devlabel has not been applied (or has been removed).The criteria are type-specific:
Bug reports (
buglabel, see .github/ISSUE_TEMPLATE/bug_template.yml):### Actual Behaviorsection must describe reproducible SDK stepsand include a command such as
python,pytest,uv, orpip.### Acceptance Criteriasection with at least one checklist item (- [ ] …).Enhancements (
enhancementlabel, see .github/ISSUE_TEMPLATE/feature_request.yml):### Desired Behaviorsection.### Acceptance Criteriasection with at least one checklist item.What is missing:
bugnorenhancementlabel, so its readiness criteria cannot be evaluated. Add the appropriate label.Edit the issue to address the gaps and the
ready-for-devlabel will beapplied automatically.
Note: Section headings require exact
###matches from the templates.If a missing type label is reported, no action is needed from external
contributors — maintainers will add the label during triage.
This is an automated check — no AI was used to generate this comment.
dongjb commentedon Sep 17, 2026
I encountered the same problem.
carvalab commentedon Sep 18, 2026
@dongjb I hit the same crash with MiniMax and put up PR #5169 with a fix. If you get a chance, please test it against your provider. I also verified it with ZAI glm-5.3-flash and it works there too.
carvalab commentedon Sep 18, 2026
Heads up: this is being tracked canonically in #5168, which carries
ready-for-dev, with fix PR #5169. Steps to test the fix locally before it merges are here: #5168 (comment)VascoSch92 commentedon Oct 12, 2026
Fixed by #5327 (v1.50.0):
normalize_usage()intelemetry.pynow checkshasattras well asmodel_fields_set, so this no longer crashes on litellm 1.93–1.102. Please upgrade to ≥1.50.0.