[PR #203] [MERGED] feat: Display error returned by ollama #7008

Closed
opened 2025-11-11 17:14:15 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: mainHead: display-error


📝 Commits (4)

  • 195cfd4 wip: displaying error in a toast
  • 93cffa8 Merge branch 'main' into display-error
  • 5262156 feat: error handling for when ollama is not running
  • 75fb94e feat: 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:

Screenshot 2023-12-11 at 4 04 37 PM

The loader stays there after the toast disappears.
We can add an additional toast, for now, saying Please see ollama logs for more information or Refresh the page to try again.
After refreshing, there is a saved chat with no second message.
Example:
Screenshot 2023-12-11 at 4 12 51 PM


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/203 **Author:** [@therohitdas](https://github.com/therohitdas) **Created:** 12/11/2023 **Status:** ✅ Merged **Merged:** 12/13/2023 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `display-error` --- ### 📝 Commits (4) - [`195cfd4`](https://github.com/open-webui/open-webui/commit/195cfd4f843e528b219011633c8ba477e4587b4d) wip: displaying error in a toast - [`93cffa8`](https://github.com/open-webui/open-webui/commit/93cffa89f68a1fc758a489b0e4d52522a88f736d) Merge branch 'main' into display-error - [`5262156`](https://github.com/open-webui/open-webui/commit/5262156c248394a9e544eb0fe22b5e769970ae61) feat: error handling for when ollama is not running - [`75fb94e`](https://github.com/open-webui/open-webui/commit/75fb94ec68b4846fa5a9831c4c724550c1f058b1) feat: show error message in chat ### 📊 Changes **3 files changed** (+192 additions, -117 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Messages.svelte` (+26 -1) 📝 `src/routes/(app)/+page.svelte` (+83 -58) 📝 `src/routes/(app)/c/[id]/+page.svelte` (+83 -58) </details> ### 📄 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: ![Screenshot 2023-12-11 at 4 04 37 PM](https://github.com/ollama-webui/ollama-webui/assets/43847374/9fc4af79-4529-4e11-bffc-6128a2fec497) The loader stays there after the toast disappears. We can add an additional toast, for now, saying `Please see ollama logs for more information` or `Refresh the page to try again`. After refreshing, there is a saved chat with no second message. Example: ![Screenshot 2023-12-11 at 4 12 51 PM](https://github.com/ollama-webui/ollama-webui/assets/43847374/7fd4832f-520c-4139-a79b-287ce3d163e4) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:14:15 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7008