Added configurable timeout to aiohttp.ClientSession call to ollama, to work around default timeout of 5 minutes being too short in some situations
Set the new default timeout to 15 minutes (900 seconds)
Described new environment variable in troubleshooting.md under title "Error on Slow Reponses for Ollama"
🔄 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/3104
**Author:** [@TheTerrasque](https://github.com/TheTerrasque)
**Created:** 6/12/2024
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `defect/ollama-long-response-timeout`
---
### 📝 Commits (5)
- [`c2e8af5`](https://github.com/open-webui/open-webui/commit/c2e8af5ed1b0725076d0668bcb806aef5e648bd0) Merge pull request #3090 from open-webui/dev
- [`8f3c9b3`](https://github.com/open-webui/open-webui/commit/8f3c9b391be312c72c1a621135fd3cbe33fc0d15) Merge pull request #3093 from open-webui/dev
- [`95ff355`](https://github.com/open-webui/open-webui/commit/95ff355737b78f1e50e8151cb0c1728cda96eae3) Merge pull request #3094 from open-webui/dev
- [`33bb787`](https://github.com/open-webui/open-webui/commit/33bb787b1521269c4edb8061dc8b89357527a710) Merge pull request #3095 from open-webui/dev
- [`1295fbe`](https://github.com/open-webui/open-webui/commit/1295fbecd22806344d4002fd50e713dbedb35cb3) Added timeout setting for ollama streaming response
### 📊 Changes
**3 files changed** (+7 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `TROUBLESHOOTING.md` (+4 -0)
📝 `backend/apps/ollama/main.py` (+2 -1)
📝 `backend/config.py` (+1 -0)
</details>
### 📄 Description
Changes:
* Added configurable timeout to `aiohttp.ClientSession` call to ollama, to work around default timeout of 5 minutes being too short in some situations
* Set the new default timeout to 15 minutes (900 seconds)
* Described new environment variable in troubleshooting.md under title _"Error on Slow Reponses for Ollama"_
---
<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/3104
Author: @TheTerrasque
Created: 6/12/2024
Status: ❌ Closed
Base:
dev← Head:defect/ollama-long-response-timeout📝 Commits (5)
c2e8af5Merge pull request #3090 from open-webui/dev8f3c9b3Merge pull request #3093 from open-webui/dev95ff355Merge pull request #3094 from open-webui/dev33bb787Merge pull request #3095 from open-webui/dev1295fbeAdded timeout setting for ollama streaming response📊 Changes
3 files changed (+7 additions, -1 deletions)
View changed files
📝
TROUBLESHOOTING.md(+4 -0)📝
backend/apps/ollama/main.py(+2 -1)📝
backend/config.py(+1 -0)📄 Description
Changes:
aiohttp.ClientSessioncall to ollama, to work around default timeout of 5 minutes being too short in some situations🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.