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