Browse Source

fix: stopTask func need use async/await syntax

wangtunan 4 months ago
parent
commit
7d1a094f9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -1686,7 +1686,7 @@
 	const stopResponse = async () => {
 		if (taskId) {
 			const res = await stopTask(localStorage.token, taskId).catch((error) => {
-				toast.error(error);
+				toast.error(`${error}`);
 				return null;
 			});