Remove BOS token from Tabby encoding Fixes #5254
| @@ -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'; |