[PR #3479] [CLOSED] feat: add OLLAMA_API_TIMEOUT config variable #21252

Closed
opened 2026-04-20 03:25:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/3479
Author: @gartnera
Created: 6/28/2024
Status: Closed

Base: devHead: backend-timeout-variable


📝 Commits (1)

  • 6f28c9b Add 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/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>
GiteaMirror added the pull-request label 2026-04-20 03:25:11 -05: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#21252