mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Allow macros in positive and negative prompts
This commit is contained in:
@ -2189,11 +2189,11 @@ async function sendGenerationRequest(generationType, prompt, characterName = nul
|
|||||||
? extension_settings.sd.prompt_prefix
|
? extension_settings.sd.prompt_prefix
|
||||||
: combinePrefixes(extension_settings.sd.prompt_prefix, getCharacterPrefix());
|
: combinePrefixes(extension_settings.sd.prompt_prefix, getCharacterPrefix());
|
||||||
|
|
||||||
const prefixedPrompt = combinePrefixes(prefix, prompt, '{prompt}');
|
const prefixedPrompt = substituteParams(combinePrefixes(prefix, prompt, '{prompt}'));
|
||||||
|
|
||||||
const negativePrompt = noCharPrefix.includes(generationType)
|
const negativePrompt = substituteParams(noCharPrefix.includes(generationType)
|
||||||
? extension_settings.sd.negative_prompt
|
? extension_settings.sd.negative_prompt
|
||||||
: combinePrefixes(extension_settings.sd.negative_prompt, getCharacterNegativePrefix());
|
: combinePrefixes(extension_settings.sd.negative_prompt, getCharacterNegativePrefix()));
|
||||||
|
|
||||||
let result = { format: '', data: '' };
|
let result = { format: '', data: '' };
|
||||||
const currentChatId = getCurrentChatId();
|
const currentChatId = getCurrentChatId();
|
||||||
|
Reference in New Issue
Block a user