| 3737 | | 3737 | |
| 3738 | setEphemeralStopStrings(resolveVariable(args?.stop)); | 3738 | setEphemeralStopStrings(resolveVariable(args?.stop)); |
| 3739 | const name = args?.name; | 3739 | const name = args?.name; |
| 3740 | const char = findChar({ name: name }); | 3740 | const char = name ? findChar({ name: name }) : null; |
| 3741 | /** @type {import('../script.js').GenerateQuietPromptParams} */ | 3741 | /** @type {import('../script.js').GenerateQuietPromptParams} */ |
| 3742 | const params = { | 3742 | const params = { |
| 3743 | quietPrompt: value, | 3743 | quietPrompt: value, |