mirror of
https://github.com/open-webui/open-webui
synced 2025-03-25 06:58:04 +00:00
refac: disable continuing with error message
This commit is contained in:
parent
f14ca48334
commit
3101ff143b
@ -323,6 +323,13 @@
|
||||
} else if (messages.length != 0 && messages.at(-1).done != true) {
|
||||
// Response not done
|
||||
console.log('wait');
|
||||
} else if (messages.length != 0 && messages.at(-1).error) {
|
||||
// Error in response
|
||||
toast.error(
|
||||
$i18n.t(
|
||||
`Oops! There was an error in the previous response. Please try again or contact admin.`
|
||||
)
|
||||
);
|
||||
} else if (
|
||||
files.length > 0 &&
|
||||
files.filter((file) => file.type !== 'image' && file.status !== 'processed').length > 0
|
||||
|
Loading…
Reference in New Issue
Block a user