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