mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix response length override
This commit is contained in:
@ -3033,8 +3033,8 @@ function saveResponseLength(api, responseLength) {
|
|||||||
oldValue = oai_settings.openai_max_tokens;
|
oldValue = oai_settings.openai_max_tokens;
|
||||||
oai_settings.openai_max_tokens = responseLength;
|
oai_settings.openai_max_tokens = responseLength;
|
||||||
} else {
|
} else {
|
||||||
oldValue = max_context;
|
oldValue = amount_gen;
|
||||||
max_context = responseLength;
|
amount_gen = responseLength;
|
||||||
}
|
}
|
||||||
return oldValue;
|
return oldValue;
|
||||||
}
|
}
|
||||||
@ -3049,7 +3049,7 @@ function restoreResponseLength(api, responseLength) {
|
|||||||
if (api === 'openai') {
|
if (api === 'openai') {
|
||||||
oai_settings.openai_max_tokens = responseLength;
|
oai_settings.openai_max_tokens = responseLength;
|
||||||
} else {
|
} else {
|
||||||
max_context = responseLength;
|
amount_gen = responseLength;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user