Timothy Jaeryang Baek 1 月之前
父節點
當前提交
3e28c46026
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/components/chat/Chat.svelte

+ 2 - 0
src/lib/components/chat/Chat.svelte

@@ -1442,6 +1442,7 @@
 		}
 
 		messageInput?.setText('');
+		prompt = '';
 
 		// Reset chat input textarea
 		if (!($settings?.richTextInput ?? true)) {
@@ -2334,6 +2335,7 @@
 										clearDraft();
 										if (e.detail || files.length > 0) {
 											await tick();
+
 											submitPrompt(
 												($settings?.richTextInput ?? true)
 													? e.detail.replaceAll('\n\n', '\n')