mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-13 18:32:12 +03:00
chunkMarkdown only cut on '## ' headings, so a single long section (README.md carries a 16 KB one, USER_GUIDE.md a 20 KB one) became one oversized request. On the slow fallback model that request could not finish inside the backend's 10-minute fetch timeout, and the three biggest docs of every new locale failed with 'fetch failed' on every retry — Odia burned eight attempts on them. A section still longer than maxChars is now split again on sub-headings and paragraph boundaries, never inside a fenced code block; a block that is itself larger than the limit stays whole rather than being cut mid-paragraph.