Use ext. macros in prompt manager
This commit is contained in:
parent
b22bc47c4f
commit
405fc1458c
|
@ -28,6 +28,7 @@ import {
|
||||||
setOnlineStatus,
|
setOnlineStatus,
|
||||||
startStatusLoading,
|
startStatusLoading,
|
||||||
substituteParams,
|
substituteParams,
|
||||||
|
substituteParamsExtended,
|
||||||
system_message_types,
|
system_message_types,
|
||||||
this_chid,
|
this_chid,
|
||||||
} from '../script.js';
|
} from '../script.js';
|
||||||
|
@ -775,7 +776,7 @@ async function populateChatHistory(messages, prompts, chatCompletion, type = nul
|
||||||
const promptObject = {
|
const promptObject = {
|
||||||
identifier: 'continueNudge',
|
identifier: 'continueNudge',
|
||||||
role: 'system',
|
role: 'system',
|
||||||
content: oai_settings.continue_nudge_prompt.replace('{{lastChatMessage}}', String(cyclePrompt).trim()),
|
content: substituteParamsExtended(oai_settings.continue_nudge_prompt, { lastChatMessage: String(cyclePrompt).trim() }),
|
||||||
system_prompt: true,
|
system_prompt: true,
|
||||||
};
|
};
|
||||||
const continuePrompt = new Prompt(promptObject);
|
const continuePrompt = new Prompt(promptObject);
|
||||||
|
|
Loading…
Reference in New Issue