mirror of
https://github.com/open-webui/open-webui
synced 2025-02-22 13:18:25 +00:00
Update Chat.svelte error handling of previous message
related to this discussion: https://github.com/open-webui/open-webui/discussions/10034. in some cases the previous message have error but it still generate a response. in such case we should also next round chat. so I update the if condition to add another checking of the content in previous message.
This commit is contained in:
parent
74c8690cd1
commit
1aa963a2fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user