Remove BOS from KoboldCpp token encoding

Fixes #4663
This commit is contained in:
Cohee
2026-03-07 18:28:20 +02:00
parent e19c4f7e19
commit 7a9483efba
+1 -1
View File
@@ -1088,7 +1088,7 @@ router.post('/remote/textgenerationwebui/encode', async function (request, respo
break;
case TEXTGEN_TYPES.KOBOLDCPP:
url += '/api/extra/tokencount';
args.body = JSON.stringify({ 'prompt': text });
args.body = JSON.stringify({ 'prompt': text, 'special': false });
break;
case TEXTGEN_TYPES.LLAMACPP:
url += '/tokenize';