mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-19 14:31:50 +02:00
Strip a balanced <think>...</think> block that opens the reply by default and leave every other reply untouched, so answers that mention the tags (a lone or reversed closing tag, JSON string values) are never truncated. The close-only form produced by chat templates that prefill <think> is now handled only when the OpenAI or Ollama provider is configured for it, via prefilled_reasoning=True or OPENAI_PREFILLED_REASONING / OLLAMA_PREFILLED_REASONING. Hosted providers keep the default. Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>