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 information or Refresh 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.
## 📋 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:

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:

---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.