mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Mancer will work in legacy API mode. Remove Soft Prompt mentions.
This commit is contained in:
@ -4,7 +4,7 @@ import { chat_completion_sources, model_list, oai_settings } from "./openai.js";
|
||||
import { groups, selected_group } from "./group-chats.js";
|
||||
import { getStringHash } from "./utils.js";
|
||||
import { kai_flags } from "./kai-settings.js";
|
||||
import { textgenerationwebui_settings } from "./textgen-settings.js";
|
||||
import { isMancer, textgenerationwebui_settings } from "./textgen-settings.js";
|
||||
|
||||
export const CHARACTERS_PER_TOKEN_RATIO = 3.35;
|
||||
const TOKENIZER_WARNING_KEY = 'tokenizationWarningShown';
|
||||
@ -381,7 +381,7 @@ function countTokensRemote(endpoint, str, padding) {
|
||||
text: str,
|
||||
api: main_api,
|
||||
url: getAPIServerUrl(),
|
||||
legacy_api: main_api === 'textgenerationwebui' && textgenerationwebui_settings.legacy_api,
|
||||
legacy_api: main_api === 'textgenerationwebui' && textgenerationwebui_settings.legacy_api && !isMancer() ,
|
||||
}),
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
|
Reference in New Issue
Block a user