mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Clean-up continue nudge init
This commit is contained in:
@ -727,17 +727,10 @@ async function populateChatHistory(messages, prompts, chatCompletion, type = nul
|
|||||||
let continueMessage = null;
|
let continueMessage = null;
|
||||||
const instruct = isOpenRouterWithInstruct();
|
const instruct = isOpenRouterWithInstruct();
|
||||||
if (type === 'continue' && cyclePrompt && !instruct && !oai_settings.continue_prefill) {
|
if (type === 'continue' && cyclePrompt && !instruct && !oai_settings.continue_prefill) {
|
||||||
const promptObject = oai_settings.continue_prefill ?
|
const promptObject = {
|
||||||
{
|
|
||||||
identifier: 'continueNudge',
|
|
||||||
role: 'assistant',
|
|
||||||
content: cyclePrompt,
|
|
||||||
system_prompt: true,
|
|
||||||
} :
|
|
||||||
{
|
|
||||||
identifier: 'continueNudge',
|
identifier: 'continueNudge',
|
||||||
role: 'system',
|
role: 'system',
|
||||||
content: oai_settings.continue_nudge_prompt.replace('{{lastChatMessage}}', cyclePrompt),
|
content: oai_settings.continue_nudge_prompt.replace('{{lastChatMessage}}', String(cyclePrompt).trim()),
|
||||||
system_prompt: true,
|
system_prompt: true,
|
||||||
};
|
};
|
||||||
const continuePrompt = new Prompt(promptObject);
|
const continuePrompt = new Prompt(promptObject);
|
||||||
|
Reference in New Issue
Block a user