Benchmark: stripThinking tukee myös qwen3/3.5 <think>-tageja
This commit is contained in:
@@ -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 ===
|
||||
|
||||
Reference in New Issue
Block a user