[PR #299] [CLOSED] Enable subpath-mounted ollama and basic auth #459

Closed
opened 2026-02-15 16:30:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama-python/pull/299
Author: @jamesandariese
Created: 10/12/2024
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • bd500fe preserve 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.

    • Enables subpaths, used, in the next bullet point.
    • Enables basic auth, query params, and fragments
  • 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama-python/pull/299 **Author:** [@jamesandariese](https://github.com/jamesandariese) **Created:** 10/12/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`bd500fe`](https://github.com/ollama/ollama-python/commit/bd500fe331c957b3461308aeed6dff385752ac51) preserve url details while setting defaults ### 📊 Changes **1 file changed** (+76 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `ollama/_client.py` (+76 -79) </details> ### 📄 Description * Modifies _parse_host to preserve more info and return a URL which is compatible with relative paths. * Enables subpaths, used, in the next bullet point. * Enables basic auth, query params, and fragments * Modifies all API calls to be relative so that a subpath-mounted ollama may be called. * Enables instance-specific paths (e.g., https://ollama.example.com/instance-00000000-1111-2222-3333-444444444444) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 16:30:29 -05:00
yindo closed this issue 2026-02-15 16:30:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#459