Remove BOS token from Tabby encoding Fixes #5254

e19c4f7e19b68da86aa92fa867a71c5f361a5b88

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
src/endpoints/tokenizers.js+1 -1
@@ -1084,7 +1084,7 @@ router.post('/remote/textgenerationwebui/encode', async function (request, respo
1084 switch (request.body.api_type) {1084 switch (request.body.api_type) {
1085 case TEXTGEN_TYPES.TABBY:1085 case TEXTGEN_TYPES.TABBY:
1086 url += '/v1/token/encode';1086 url += '/v1/token/encode';
1087 args.body = JSON.stringify({ 'text': text });1087 args.body = JSON.stringify({ 'text': text, 'add_bos_token': false });
1088 break;1088 break;
1089 case TEXTGEN_TYPES.KOBOLDCPP:1089 case TEXTGEN_TYPES.KOBOLDCPP:
1090 url += '/api/extra/tokencount';1090 url += '/api/extra/tokencount';