Benchmark: stripThinking tukee myös qwen3/3.5 <think>-tageja

This commit is contained in:
2026-04-14 06:58:18 +03:00
parent ecd4bc2ac3
commit 34a56e408d

View File

@@ -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]*?<channel\|>/g, '').trim();
return text
.replace(/<\|channel>thought[\s\S]*?<channel\|>/g, '') // gemma4
.replace(/<think>[\s\S]*?<\/think>/g, '') // qwen3, qwen3.5
.trim();
}
// === Ollama / Hub -client ===