Cloned preset before using

This commit is contained in:
bmen25124
2025-03-17 00:00:37 +03:00
parent 0e41db615e
commit 1593951281

View File

@ -406,7 +406,7 @@ export function formatInstructModeSystemPrompt(systemPrompt, customInstruct = nu
return '';
}
const instruct = customInstruct ?? power_user.instruct;
const instruct = structuredClone(customInstruct ?? power_user.instruct);
const separator = instruct.wrap ? '\n' : '';