mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove unnecessary cfgPrompt null-chains
We already check if cfgPrompt exists.
This commit is contained in:
@ -3805,8 +3805,8 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
|
|||||||
cfgPrompt = getCfgPrompt(cfgGuidanceScale, isNegative);
|
cfgPrompt = getCfgPrompt(cfgGuidanceScale, isNegative);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cfgPrompt && cfgPrompt?.value) {
|
if (cfgPrompt && cfgPrompt.value) {
|
||||||
if (cfgPrompt?.depth === 0) {
|
if (cfgPrompt.depth === 0) {
|
||||||
finalMesSend[finalMesSend.length - 1].message +=
|
finalMesSend[finalMesSend.length - 1].message +=
|
||||||
/\s/.test(finalMesSend[finalMesSend.length - 1].message.slice(-1))
|
/\s/.test(finalMesSend[finalMesSend.length - 1].message.slice(-1))
|
||||||
? cfgPrompt.value
|
? cfgPrompt.value
|
||||||
|
Reference in New Issue
Block a user