[PR #3107] [MERGED] Fix: ollama long response timeout #7985

Closed
opened 2025-11-11 17:41:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: defect/ollama-long-response-timeout


📝 Commits (2)

  • e130ad7 Added timeout setting for ollama streaming response
  • 454a386 refac

📊 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:

  • 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>
GiteaMirror added the pull-request label 2025-11-11 17:41:54 -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#7985