mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
Clients echo full message history each turn including reasoning_content, which the Kimchi OpenAI gateway counts as input tokens. Multi-turn convos balloon to 100k+ tokens and the model returns empty content. KimchiExecutor.transformRequest now strips reasoning_content from assistant messages when it exceeds an 8-char threshold, preserving the 1-char placeholder injectReasoningContent sets and keeping content intact. Co-authored-by: Cursor <cursoragent@cursor.com>