mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-23 07:51:18 +01:00
Minor stylistic changes
This commit is contained in:
parent
62faddac8d
commit
27ccc6b090
@ -709,10 +709,7 @@ jQuery(function () {
|
|||||||
$(`#${id}_counter_textgenerationwebui`).val(value);
|
$(`#${id}_counter_textgenerationwebui`).val(value);
|
||||||
settings[id] = value;
|
settings[id] = value;
|
||||||
//special handling for vLLM/Aphrodite using -1 as disabled instead of 0
|
//special handling for vLLM/Aphrodite using -1 as disabled instead of 0
|
||||||
if ($(this).attr('id') === 'top_k_textgenerationwebui' &&
|
if ($(this).attr('id') === 'top_k_textgenerationwebui' && [INFERMATICAI, APHRODITE, VLLM].includes(settings.type) && value === 0) {
|
||||||
(settings.type === textgen_types.VLLM ||
|
|
||||||
settings.type === textgen_types.APHRODITE) &&
|
|
||||||
value === 0) {
|
|
||||||
settings[id] = -1;
|
settings[id] = -1;
|
||||||
$(this).val(-1);
|
$(this).val(-1);
|
||||||
}
|
}
|
||||||
@ -999,7 +996,7 @@ export function isJsonSchemaSupported() {
|
|||||||
|
|
||||||
export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate, isContinue, cfgValues, type) {
|
export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate, isContinue, cfgValues, type) {
|
||||||
const canMultiSwipe = !isContinue && !isImpersonate && type !== 'quiet';
|
const canMultiSwipe = !isContinue && !isImpersonate && type !== 'quiet';
|
||||||
const {banned_tokens, banned_strings} = getCustomTokenBans();
|
const { banned_tokens, banned_strings } = getCustomTokenBans();
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
'prompt': finalPrompt,
|
'prompt': finalPrompt,
|
||||||
|
Loading…
Reference in New Issue
Block a user