mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-17 20:43:32 -05:00
[PR #203] [MERGED] feat: Display error returned by ollama #7008
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/203
Author: @therohitdas
Created: 12/11/2023
Status: ✅ Merged
Merged: 12/13/2023
Merged by: @tjbck
Base:
main← Head:display-error📝 Commits (4)
195cfd4wip: displaying error in a toast93cffa8Merge branch 'main' into display-error5262156feat: error handling for when ollama is not running75fb94efeat: show error message in chat📊 Changes
3 files changed (+192 additions, -117 deletions)
View changed files
📝
src/lib/components/chat/Messages.svelte(+26 -1)📝
src/routes/(app)/+page.svelte(+83 -58)📝
src/routes/(app)/c/[id]/+page.svelte(+83 -58)📄 Description
I tried checking if the response is okay and displaying an error if not for #193
I don't know how to work with svelte (or any framework) so I was not able to remove the loader.
Currently, this is all you see when Ollama returns an error:
The loader stays there after the toast disappears.

We can add an additional toast, for now, saying
Please see ollama logs for more informationorRefresh the page to try again.After refreshing, there is a saved chat with no second message.
Example:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.