Address https://github.com/open-webui/open-webui/issues/2337 by allowing the user to manually configure a ollama request timeout. If the ollama server is is powered off, the UI will just hang until the /ollama/api/version request times out. My ollama server is not always running, but I still want to use the openai api.
I think this should be a configuration item because while OLLAMA_API_TIMEOUT=.1 may work for me, others my run their ollama on remote servers.
Changelog Entry
Added
Add OLLAMA_API_TIMEOUT config variable
🔄 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/3479
**Author:** [@gartnera](https://github.com/gartnera)
**Created:** 6/28/2024
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `backend-timeout-variable`
---
### 📝 Commits (1)
- [`6f28c9b`](https://github.com/open-webui/open-webui/commit/6f28c9b62db16bc3eda9c65a9ef46e4155878e03) Add OLLAMA_API_TIMEOUT config variable
### 📊 Changes
**2 files changed** (+10 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/ollama/main.py` (+4 -1)
📝 `backend/config.py` (+6 -0)
</details>
### 📄 Description
Address https://github.com/open-webui/open-webui/issues/2337 by allowing the user to manually configure a ollama request timeout. If the ollama server is is powered off, the UI will just hang until the `/ollama/api/version` request times out. My ollama server is not always running, but I still want to use the openai api.
I think this should be a configuration item because while `OLLAMA_API_TIMEOUT=.1` may work for me, others my run their ollama on remote servers.
# Changelog Entry
### Added
- Add `OLLAMA_API_TIMEOUT` config variable
---
<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/3479
Author: @gartnera
Created: 6/28/2024
Status: ❌ Closed
Base:
dev← Head:backend-timeout-variable📝 Commits (1)
6f28c9bAdd OLLAMA_API_TIMEOUT config variable📊 Changes
2 files changed (+10 additions, -1 deletions)
View changed files
📝
backend/apps/ollama/main.py(+4 -1)📝
backend/config.py(+6 -0)📄 Description
Address https://github.com/open-webui/open-webui/issues/2337 by allowing the user to manually configure a ollama request timeout. If the ollama server is is powered off, the UI will just hang until the
/ollama/api/versionrequest times out. My ollama server is not always running, but I still want to use the openai api.I think this should be a configuration item because while
OLLAMA_API_TIMEOUT=.1may work for me, others my run their ollama on remote servers.Changelog Entry
Added
OLLAMA_API_TIMEOUTconfig variable🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.