diff --git a/network-poc/tests/model-benchmark.mjs b/network-poc/tests/model-benchmark.mjs index c6f6e7b..1b11575 100644 --- a/network-poc/tests/model-benchmark.mjs +++ b/network-poc/tests/model-benchmark.mjs @@ -26,9 +26,12 @@ const SCENARIO_FILTER = arg('scenarios', 'default'); const OUTPUT_DIR = arg('output', '/tmp/kipina-benchmark'); const MAX_FIX_ROUNDS = 2; -// === Ajattelutagien siivous (gemma4 ym.) === +// === Ajattelutagien siivous (gemma4, qwen3/3.5 ym.) === function stripThinking(text) { - return text.replace(/<\|channel>thought[\s\S]*?/g, '').trim(); + return text + .replace(/<\|channel>thought[\s\S]*?/g, '') // gemma4 + .replace(/[\s\S]*?<\/think>/g, '') // qwen3, qwen3.5 + .trim(); } // === Ollama / Hub -client ===