From 0df18d2ae2beccbdd4989c18082a9f9214df6aae Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 7 Mar 2026 22:50:53 +0800 Subject: [PATCH] fixed single token bans --- gpttype_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpttype_adapter.cpp b/gpttype_adapter.cpp index efdb45f10..9662fe4a6 100644 --- a/gpttype_adapter.cpp +++ b/gpttype_adapter.cpp @@ -3535,7 +3535,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs) { continue; } - if(tokcount==1 && word.length()<2) //only use banned tokens for single characters + if(tokcount==1 && word.length()<12) //only use banned tokens for single characters, we can assume that means less than 12 chars usually { banned_tokens.push_back(word); }