mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 08:38:53 +01:00
CFG: Don't trim when getting prompt
Let the user figure it out. Whitespace in CFG is important. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
1900ab9726
commit
0bc2ef2a33
@ -57,7 +57,6 @@ export function getCfgPrompt(guidanceScale, isNegative) {
|
||||
substituteParams(
|
||||
chat_metadata[isNegative ? metadataKeys.negative_prompt : metadataKeys.positive_prompt]
|
||||
)
|
||||
?.trim()
|
||||
);
|
||||
}
|
||||
|
||||
@ -67,7 +66,6 @@ export function getCfgPrompt(guidanceScale, isNegative) {
|
||||
substituteParams(
|
||||
isNegative ? charaCfg.negative_prompt : charaCfg.positive_prompt
|
||||
)
|
||||
?.trim()
|
||||
);
|
||||
}
|
||||
|
||||
@ -76,7 +74,6 @@ export function getCfgPrompt(guidanceScale, isNegative) {
|
||||
substituteParams(
|
||||
isNegative ? extension_settings.cfg.global.negative_prompt : extension_settings.cfg.global.positive_prompt
|
||||
)
|
||||
?.trim()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user