Timothy Jaeryang Baek преди 7 месеца
родител
ревизия
b52a162597
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      src/lib/components/notes/NoteEditor.svelte
  2. 1 0
      src/lib/components/notes/NoteEditor/Chat.svelte

+ 1 - 0
src/lib/components/notes/NoteEditor.svelte

@@ -540,6 +540,7 @@
 	};
 	};
 
 
 	const enhanceCompletionHandler = async (model) => {
 	const enhanceCompletionHandler = async (model) => {
+		stopResponseFlag = false;
 		let enhancedContent = {
 		let enhancedContent = {
 			json: null,
 			json: null,
 			html: '',
 			html: '',

+ 1 - 0
src/lib/components/notes/NoteEditor/Chat.svelte

@@ -146,6 +146,7 @@ Based on the user's instruction, update and enhance the existing notes by incorp
 		await tick();
 		await tick();
 		scrollToBottom();
 		scrollToBottom();
 
 
+		stopResponseFlag = false;
 		let enhancedContent = {
 		let enhancedContent = {
 			json: null,
 			json: null,
 			html: '',
 			html: '',