Fix /trigger and /continue auto-execution

This commit is contained in:
Cohee
2023-12-02 22:34:46 +02:00
parent 64a3564892
commit 6e09e45651
3 changed files with 44 additions and 38 deletions

View File

@ -272,7 +272,7 @@ async function performQuickReply(prompt, index) {
// the prompt starts with '/' - execute slash commands natively
if (prompt.startsWith('/')) {
const result = await executeSlashCommands(newText);
return result?.pipe;
return typeof result === 'object' ? result?.pipe : '';
}
newText = substituteParams(newText);