mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
[PR #61] [CLOSED] Fixes URL parsing when basic auth is included in the URL. #347
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/ollama/ollama-python/pull/61
Author: @lemeur
Created: 2/12/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
d27b72aFixes URL parsing when basic auth is included in the URL.📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
ollama/_client.py(+5 -3)📄 Description
Ollama may be protected by a reverse proxy enforcing basic auth.
When the Ollama URL contains basic auth elements, ollama-python removed them from the URL leading in a HTTP 401 ERROR.
This patch fixes the parsing of the URL so that basic auth elements are not removed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.