mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:09:49 +08:00
UsageTracker.add_from_response read usage via attribute access, but TutorStreamChunk.usage is a plain dict, so every streamed call recorded 0 tokens and summary() returned None. Normalise dict / model_dump / attribute shapes in one place.