mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #2336] [CLOSED] changed: auth ollama connection #44014
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/2336
Author: @ymerejeremy
Created: 5/17/2024
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (10+)
7628498Add auth token settings8a60724Add headers to ollama's requestsee14f11Add OLLAMA_AUTH_KEYS env var012fe4dKeep essentials headers to avoid decoding errorb221c22Normalize codee3508bbSet OLLAMA_AUTH_KEY env. var. as optionalbb1086cAvoid OLLAMA connection failed python error to show javascript error message35ee9baAdd PersistentConfig support24a88b6Fix rebase error0cdb767Fix build_headers url compare📊 Changes
4 files changed (+218 additions, -11 deletions)
View changed files
📝
backend/apps/ollama/main.py(+52 -8)📝
backend/config.py(+12 -0)📝
src/lib/apis/ollama/index.ts(+67 -0)📝
src/lib/components/chat/Settings/Connections.svelte(+87 -3)📄 Description
Pull Request Checklist
devbranch.Description
Add support for ollama connection that require a token access. The token can be set with the environment variable OLLAMA_AUTH_KEY or in the connection settings.
Changelog Entry
Added
Fixed
get_ollama_versions(...)(route/api/version) andget_all_models()methods to avoid errorsChanged
Additional Information
Issue : #2305
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.