mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-18 15:25:20 +00:00
Merge pull request #10065 from LuyiTian/dev
fix:Update Chat.svelte error handling of previous message
This commit is contained in:
commit
fab093395b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue