Hard code include_stop_str_in_output

28837ff883256638142600cbab6ca06f055d7bf7

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -4Showing whitespace changes
public/scripts/textgen-settings.js+2 -4
@@ -187,7 +187,6 @@ const settings = {
187 openrouter_allow_fallbacks: true,187 openrouter_allow_fallbacks: true,
188 xtc_threshold: 0.1,188 xtc_threshold: 0.1,
189 xtc_probability: 0,189 xtc_probability: 0,
190 include_stop_str_in_output: false,
191};190};
192191
193export let textgenerationwebui_banned_in_macros = [];192export let textgenerationwebui_banned_in_macros = [];
@@ -260,7 +259,6 @@ export const setting_names = [
260 'openrouter_allow_fallbacks',259 'openrouter_allow_fallbacks',
261 'xtc_threshold',260 'xtc_threshold',
262 'xtc_probability',261 'xtc_probability',
263 'include_stop_str_in_output',
264];262];
265263
266const DYNATEMP_BLOCK = document.getElementById('dynatemp_block_ooba');264const DYNATEMP_BLOCK = document.getElementById('dynatemp_block_ooba');
@@ -1221,11 +1219,11 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
1221 'ignore_eos': settings.ignore_eos_token,1219 'ignore_eos': settings.ignore_eos_token,
1222 'min_tokens': settings.min_length,1220 'min_tokens': settings.min_length,
1223 'skip_special_tokens': settings.skip_special_tokens,1221 'skip_special_tokens': settings.skip_special_tokens,
1224 'include_stop_str_in_output': settings.include_stop_str_in_output,
1225 'spaces_between_special_tokens': settings.spaces_between_special_tokens,1222 'spaces_between_special_tokens': settings.spaces_between_special_tokens,
1226 'guided_grammar': settings.grammar_string,1223 'guided_grammar': settings.grammar_string,
1227 'guided_json': settings.json_schema,1224 'guided_json': settings.json_schema,
1228 'early_stopping': false, // hack1225 'early_stopping': false, // hacks
1226 'include_stop_str_in_output': false,
1229 };1227 };
12301228
1231 if (settings.type === OPENROUTER) {1229 if (settings.type === OPENROUTER) {