Remove BOS token from Tabby encoding

Fixes #5254
This commit is contained in:
Cohee
2026-03-07 18:25:58 +02:00
parent 2415e6bc86
commit e19c4f7e19
+1 -1
View File
@@ -1084,7 +1084,7 @@ router.post('/remote/textgenerationwebui/encode', async function (request, respo
switch (request.body.api_type) { switch (request.body.api_type) {
case TEXTGEN_TYPES.TABBY: case TEXTGEN_TYPES.TABBY:
url += '/v1/token/encode'; url += '/v1/token/encode';
args.body = JSON.stringify({ 'text': text }); args.body = JSON.stringify({ 'text': text, 'add_bos_token': false });
break; break;
case TEXTGEN_TYPES.KOBOLDCPP: case TEXTGEN_TYPES.KOBOLDCPP:
url += '/api/extra/tokencount'; url += '/api/extra/tokencount';