From 7d1a094f9b60dcaca8d918faee0d9204c399451a Mon Sep 17 00:00:00 2001 From: wangtunan Date: Fri, 7 Mar 2025 00:07:04 +0800 Subject: [PATCH] fix: stopTask func need use async/await syntax --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index c48a204f9..7e0d0bd6d 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/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; });