Merge pull request #10065 from LuyiTian/dev

fix:Update Chat.svelte error handling of previous message
This commit is contained in:
Timothy Jaeryang Baek 2025-02-15 20:11:40 -08:00 committed by GitHub
commit fab093395b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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