mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-27 09:27:45 +01:00
Pass max length to Kobold GUI settings
This commit is contained in:
parent
f6c29c61df
commit
52891898d2
@ -2987,9 +2987,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
prompt: finalPrompt,
|
prompt: finalPrompt,
|
||||||
gui_settings: true,
|
gui_settings: true,
|
||||||
max_length: amount_gen,
|
max_length: amount_gen,
|
||||||
temperature: kai_settings.temp,
|
|
||||||
max_context_length: max_context,
|
max_context_length: max_context,
|
||||||
singleline: kai_settings.single_line,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (preset_settings != 'gui') {
|
if (preset_settings != 'gui') {
|
||||||
@ -7877,13 +7875,11 @@ jQuery(async function () {
|
|||||||
setGenerationParamsFromPreset(preset);
|
setGenerationParamsFromPreset(preset);
|
||||||
|
|
||||||
$("#range_block").find('input').prop("disabled", false);
|
$("#range_block").find('input').prop("disabled", false);
|
||||||
|
$("#range_block").css("opacity", 1.0);
|
||||||
|
|
||||||
$("#kobold-advanced-config").find('input').prop("disabled", false);
|
$("#kobold-advanced-config").find('input').prop("disabled", false);
|
||||||
$("#kobold-advanced-config").css('opacity', 1.0);
|
$("#kobold-advanced-config").css('opacity', 1.0);
|
||||||
|
|
||||||
$("#range_block").css("opacity", 1.0);
|
|
||||||
$("#amount_gen_block").find('input').prop("disabled", false);
|
|
||||||
|
|
||||||
$("#amount_gen_block").css("opacity", 1.0);
|
|
||||||
$("#kobold_order").sortable("enable");
|
$("#kobold_order").sortable("enable");
|
||||||
} else {
|
} else {
|
||||||
//$('.button').disableSelection();
|
//$('.button').disableSelection();
|
||||||
|
@ -489,7 +489,7 @@ app.post("/generate", jsonParser, async function (request, response_generate) {
|
|||||||
use_authors_note: false,
|
use_authors_note: false,
|
||||||
use_world_info: false,
|
use_world_info: false,
|
||||||
max_context_length: request.body.max_context_length,
|
max_context_length: request.body.max_context_length,
|
||||||
singleline: !!request.body.singleline,
|
max_length: request.body.max_length,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (request.body.gui_settings == false) {
|
if (request.body.gui_settings == false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user