mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
711cee7682
Split long AI responses into multiple platform messages during streaming instead of truncating them. The manager counts accumulated delta runes and opens a new stream when approaching the platform's TextChunkLimit. Uses a soft/hard limit strategy that prefers splitting at sentence ends or line breaks over cutting mid-sentence. - Add pushDelta with soft (75%) / hard (100%) limit and natural break point detection - Add splitStream, pushFinalAfterSplit, pushFinalWithChunking helpers - Fix Discord adapter to use RuneCount Message Length - Add tests for delta splitting, natural breaks, and final handling