mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-09 00:17:47 +01:00
Fix some code
This commit is contained in:
parent
6f7e7b85ab
commit
df805d692b
@ -4586,7 +4586,7 @@ function extractMultiSwipes(data, type) {
|
|||||||
return swipes;
|
return swipes;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (main_api === 'openai' || main_api === 'mancer' || (main_api === 'textgenerationwebui' && textgen_settings.type === textgen_types.APHRODITE)) {
|
if (main_api === 'openai' || (main_api === 'textgenerationwebui' && [MANCER, APHRODITE].includes(textgen_settings.type))) {
|
||||||
if (!Array.isArray(data.choices)) {
|
if (!Array.isArray(data.choices)) {
|
||||||
return swipes;
|
return swipes;
|
||||||
}
|
}
|
||||||
|
@ -1048,13 +1048,13 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (settings.type === MANCER) {
|
if (settings.type === MANCER) {
|
||||||
params.n = canMultiSwipe ? settings.n : 1
|
params.n = canMultiSwipe ? settings.n : 1;
|
||||||
params.epsilon_cutoff /= 1000
|
params.epsilon_cutoff /= 1000;
|
||||||
params.eta_cutoff /= 1000
|
params.eta_cutoff /= 1000;
|
||||||
params.dynatemp_mode =
|
params.dynatemp_mode = params.dynamic_temperature ? true : false;
|
||||||
params.dynatemp_min = params.dynamic_temperature ? params.dynatemp_low : 0
|
params.dynatemp_min = params.dynamic_temperature ? params.dynatemp_low : 0;
|
||||||
params.dynatemp_max = params.dynamic_temperature ? params.dynatemp_high : 0
|
params.dynatemp_max = params.dynamic_temperature ? params.dynatemp_high : 0;
|
||||||
delete params.dynatemp_low, params.dynatemp_high
|
delete params.dynatemp_low, params.dynatemp_high;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.type === APHRODITE) {
|
if (settings.type === APHRODITE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user