mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix structuredClone
This commit is contained in:
@ -1992,8 +1992,8 @@ export function fuzzySearchGroups(searchValue, fuzzySearchCaches = null) {
|
||||
*/
|
||||
export function renderStoryString(params, { customStoryString = null, customInstructSettings = null } = {}) {
|
||||
try {
|
||||
const storyString = structuredClone(customStoryString ?? power_user.context.story_string);
|
||||
const instructSettings = customInstructSettings ?? power_user.instruct;
|
||||
const storyString = customStoryString ?? power_user.context.story_string;
|
||||
const instructSettings = structuredClone(customInstructSettings ?? power_user.instruct);
|
||||
|
||||
// Validate and log possible warnings/errors
|
||||
validateStoryString(storyString, params);
|
||||
|
Reference in New Issue
Block a user