Hard code include_stop_str_in_output

This commit is contained in:
Cohee 2024-09-14 16:32:50 +03:00
parent 33e6ffd36e
commit 28837ff883

View File

@ -187,7 +187,6 @@ const settings = {
openrouter_allow_fallbacks: true, openrouter_allow_fallbacks: true,
xtc_threshold: 0.1, xtc_threshold: 0.1,
xtc_probability: 0, xtc_probability: 0,
include_stop_str_in_output: false,
}; };
export let textgenerationwebui_banned_in_macros = []; export let textgenerationwebui_banned_in_macros = [];
@ -260,7 +259,6 @@ export const setting_names = [
'openrouter_allow_fallbacks', 'openrouter_allow_fallbacks',
'xtc_threshold', 'xtc_threshold',
'xtc_probability', 'xtc_probability',
'include_stop_str_in_output',
]; ];
const DYNATEMP_BLOCK = document.getElementById('dynatemp_block_ooba'); const DYNATEMP_BLOCK = document.getElementById('dynatemp_block_ooba');
@ -1221,11 +1219,11 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
'ignore_eos': settings.ignore_eos_token, 'ignore_eos': settings.ignore_eos_token,
'min_tokens': settings.min_length, 'min_tokens': settings.min_length,
'skip_special_tokens': settings.skip_special_tokens, 'skip_special_tokens': settings.skip_special_tokens,
'include_stop_str_in_output': settings.include_stop_str_in_output,
'spaces_between_special_tokens': settings.spaces_between_special_tokens, 'spaces_between_special_tokens': settings.spaces_between_special_tokens,
'guided_grammar': settings.grammar_string, 'guided_grammar': settings.grammar_string,
'guided_json': settings.json_schema, 'guided_json': settings.json_schema,
'early_stopping': false, // hack 'early_stopping': false, // hacks
'include_stop_str_in_output': false,
}; };
if (settings.type === OPENROUTER) { if (settings.type === OPENROUTER) {