Skip to content

Commit ea00147

Browse files
committed
refactor(internal): extract doStream helpers (Commit 2.9)
- Create stream-usage-tracker.ts for usage accumulation - Create stream-content-tracker.ts for text/reasoning delta handling - Create stream-tool-call-handler.ts for tool call state management - Add REASONING_ID and TEXT_ID constants - Reduce doStream function from ~300 to ~120 lines (-60%)
1 parent 63a4b2f commit ea00147

File tree

7 files changed

+813
-750
lines changed

7 files changed

+813
-750
lines changed

0 commit comments

Comments
 (0)