Parcourir la source

Merge pull request #10065 from LuyiTian/dev

fix:Update Chat.svelte error handling of previous message
Timothy Jaeryang Baek il y a 2 mois
Parent
commit
fab093395b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/components/chat/Chat.svelte

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

@@ -1241,7 +1241,7 @@
 			// Response not done
 			return;
 		}
-		if (messages.length != 0 && messages.at(-1).error) {
+		if (messages.length != 0 && messages.at(-1).error && !messages.at(-1).content) {
 			// Error in response
 			toast.error($i18n.t(`Oops! There was an error in the previous response.`));
 			return;