@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user