default max ctx to true max ctx if found

This commit is contained in:
Concedo 2024-04-28 15:49:45 +08:00
parent 8faa6ed84d
commit 46c9785bb5

View file

@ -3740,7 +3740,7 @@ Current version: 136
passed_ai_warning: false, //used to store AI safety panel acknowledgement state
entersubmit: true, //enter sends the prompt
max_context_length: 1800,
max_context_length: (localflag?2048:1600),
max_length: 140,
auto_ctxlen: true,
auto_genamt: true,
@ -7427,6 +7427,10 @@ Current version: 136
{
document.getElementById("max_context_length_slide").max = ep_maxctx;
document.getElementById("max_context_length_slide_label").innerText = ep_maxctx;
if(localflag && localsettings.max_context_length==2048 && ep_maxctx>2048)
{
localsettings.max_context_length = ep_maxctx;
}
}
}).catch(error => {
console.log("Failed to get true max ctx: " + error);