Files
hermes-agent/agent
kshitijk4poor 4e566e456f fix(streaming): normalize usage:null on Anthropic main-turn stream events (#60683)
MiniMax-style Anthropic-compatible endpoints send usage: null on message_start
and message_delta; the SDK's accumulate_event() then raises AttributeError on
usage.output_tokens mid-iteration in _call_anthropic. Patch the raw SSE events
before the SDK accumulates them.

Co-authored-by: hejuntt1014 <252818347@qq.com>
2026-09-24 22:29:32 +05:30
..
…
…
…