MiniMax streaming token usage gaps and fixes

NousResearch/hermes-agent · cluster 8337 · agent

Data as of

2 open items. Fix merged in #121554. Check it covers your case.

The short answer

2open issues
0open PRs
11items grouped
Known?
Yes. 11 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #121554. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this partially resolved, deciding PR #121554. That is separate from the fix event.
Still open
2 issues and 0 PRs.

These issues and PRs center on missing or null usage data during Anthropic-compatible streaming with MiniMax and similar providers, along with proposed and attempted fallback estimation approaches. A secondary thread involves adding MiniMax-M3 model support and related logging improvements.

Open issues2

  • Issue#8337Feature Request: Add Token Usage Tracking for MiniMax Provider
  • Issue#12023[Bug]: Streaming token accounting silently records 0/0 when provider returns no usage data (MiniMax, others)

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #121554 fix(anthropic): normalize usage:null streams, non-stream fallback on out-of-order SSE, Messages-shaped partial stubs

    merged to main

    files: agent/anthropic_adapter.py, agent/chat_completion_helpers.py, tests/agent/test_anthropic_stream_fallbacks.py, tests/agent/test_streaming.py

7 PRs closed without merging

From the close comments: superseded by another PR 2 · PR volume cleanup 1 · done elsewhere 1 · duplicate 1 · merged via another change 1 · other 1

  • #12028 fix: token accounting fallback + compression trigger for reasoning models · superseded by another PR → #13006, #12023
  • #12057 fix: fall back to rough token estimates when streaming provider returns no usage (#12023) · superseded by another PR → #12067
  • #12067 fix: estimate token usage when streaming providers omit usage data · PR volume cleanup
  • #12479 fix: add token estimation fallback when streaming usage is missing (#12023) · other → #12489, #12023
  • #13316 fix(streaming): synthesize usage estimate when provider omits usage chunk (closes #12023) · duplicate → #12740, #12023
Show 2 more
  • #60695 fix(agent): fall back to messages.create on Anthropic stream usage aggregation errors · merged via another change → 44f6d3b, #121554, #60683
  • #60700 fix(provider): catch AttributeError on output_tokens in Anthropic stream fallback · done elsewhere → 44f6d3b, #60683, #121554
Closed issues · 1
  • Closed#60683[Bug]: MiniMax Anthropic stream crashes with 'NoneType' object has no attribute 'output_tokens' in get_final_message()
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.16: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#121554
Closed issues
1
Attempts
7 PRs closed without merging
Fix link checked
24 Sep 2026

For your agent

The same facts, typed.