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/3107
**Author:** [@TheTerrasque](https://github.com/TheTerrasque)
**Created:** 6/12/2024
**Status:** ✅ Merged
**Merged:** 6/14/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `defect/ollama-long-response-timeout`
---
### 📝 Commits (2)
- [`e130ad7`](https://github.com/open-webui/open-webui/commit/e130ad74d147a6871df9a9f043a16b89577b2f75) Added timeout setting for ollama streaming response
- [`454a386`](https://github.com/open-webui/open-webui/commit/454a386612d2a6d53e7b5f053ab2a7234d4db6b9) refac
### 📊 Changes
**3 files changed** (+9 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `TROUBLESHOOTING.md` (+4 -0)
📝 `backend/apps/ollama/main.py` (+4 -1)
📝 `backend/config.py` (+1 -0)
</details>
### 📄 Description
Fix for https://github.com/open-webui/open-webui/issues/3067
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/3107
Author: @TheTerrasque
Created: 6/12/2024
Status: ✅ Merged
Merged: 6/14/2024
Merged by: @tjbck
Base:
dev← Head:defect/ollama-long-response-timeout📝 Commits (2)
e130ad7Added timeout setting for ollama streaming response454a386refac📊 Changes
3 files changed (+9 additions, -1 deletions)
View changed files
📝
TROUBLESHOOTING.md(+4 -0)📝
backend/apps/ollama/main.py(+4 -1)📝
backend/config.py(+1 -0)📄 Description
Fix for https://github.com/open-webui/open-webui/issues/3067
Changes:
aiohttp.ClientSessioncall to ollama, to work around default timeout of 5 minutes being too short in some situationsTROUBLESHOOTING.mdunder title "Error on Slow Reponses for Ollama"🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.