diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 3705fbae85..c208ababa7 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1692,6 +1692,7 @@ async def chat_completion( response_meta['task_id'] = task_id message['meta'] = response_meta message['done'] = False + message['error'] = None if agent_model: message['modelName'] = agent_model['name'] diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index f18e3a6ca9..3c731be5b2 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -5590,6 +5590,7 @@ if (history.messages[message.id].done == true) { const responseMessage = history.messages[message.id]; responseMessage.done = false; + responseMessage.error = null; await tick(); const model = ($models ?? [])