mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
[PR #299] [CLOSED] Enable subpath-mounted ollama and basic auth #459
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/299
Author: @jamesandariese
Created: 10/12/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
bd500fepreserve url details while setting defaults📊 Changes
1 file changed (+76 additions, -79 deletions)
View changed files
📝
ollama/_client.py(+76 -79)📄 Description
Modifies _parse_host to preserve more info and return a URL which is compatible with relative paths.
Modifies all API calls to be relative so that a subpath-mounted ollama may be called.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.