mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 09:31:58 -05:00
[PR #3479] [CLOSED] feat: add OLLAMA_API_TIMEOUT config variable #21252
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.