mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#1436 Add unlock to response length
This commit is contained in:
@ -48,7 +48,9 @@ export {
|
||||
};
|
||||
|
||||
export const MAX_CONTEXT_DEFAULT = 8192;
|
||||
const MAX_CONTEXT_UNLOCKED = 200 * 1000;
|
||||
export const MAX_RESPONSE_DEFAULT = 2048;
|
||||
const MAX_CONTEXT_UNLOCKED = 200 * 1024;
|
||||
const MAX_RESPONSE_UNLOCKED = 16 * 1024;
|
||||
const unlockedMaxContextStep = 512;
|
||||
const maxContextMin = 512;
|
||||
const maxContextStep = 256;
|
||||
@ -1552,6 +1554,15 @@ function switchMaxContextSize() {
|
||||
element.val(maxValue).trigger('input');
|
||||
}
|
||||
}
|
||||
|
||||
const maxAmountGen = power_user.max_context_unlocked ? MAX_RESPONSE_UNLOCKED : MAX_RESPONSE_DEFAULT;
|
||||
$('#amount_gen').attr('max', maxAmountGen);
|
||||
$('#amount_gen_counter').attr('max', maxAmountGen);
|
||||
|
||||
if (Number($('#amount_gen').val()) >= maxAmountGen) {
|
||||
$('#amount_gen').val(maxAmountGen).trigger('input');
|
||||
}
|
||||
|
||||
if (power_user.enableZenSliders) {
|
||||
$('#max_context_zenslider').remove();
|
||||
CreateZenSliders($('#max_context'));
|
||||
|
Reference in New Issue
Block a user