Use mode enum to toggle dynatemp behavior.

This commit is contained in:
50h100a 2024-03-25 12:25:03 -04:00 committed by GitHub
parent 4caa3b4f20
commit 8b092adc14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1051,9 +1051,9 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
params.n = canMultiSwipe ? settings.n : 1;
params.epsilon_cutoff /= 1000;
params.eta_cutoff /= 1000;
params.dynatemp_mode = params.dynamic_temperature ? true : false;
params.dynatemp_min = params.dynamic_temperature ? params.dynatemp_low : 0;
params.dynatemp_max = params.dynamic_temperature ? params.dynatemp_high : 0;
params.dynatemp_mode = params.dynamic_temperature ? 1 : 0;
params.dynatemp_min = params.dynatemp_low;
params.dynatemp_max = params.dynatemp_high;
delete params.dynatemp_low, params.dynatemp_high;
}