[PR #170] [MERGED] Add URL path to client URL in in Client._parse_host() #393

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama-python/pull/170
Author: @bplunkert
Created: 5/29/2024
Status: Merged
Merged: 8/23/2024
Merged by: @mxyng

Base: mainHead: add_url_path


📝 Commits (6)

  • 4c80c3a Add URL path to client URL in in Client._parse_host()
  • 4fe9416 add tests for url path
  • 1f1d6a2 improve URL path handling
  • fd365bc restore trailing space
  • 892c290 remove extraneous path assignment
  • b0bd5e2 Fix url path test

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 ollama/_client.py (+11 -0)

📄 Description

This fix for #113 allows instantiating a client with a custom URL path as part of the host argument.

Resolves #244
Resolves #113


🔄 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/170 **Author:** [@bplunkert](https://github.com/bplunkert) **Created:** 5/29/2024 **Status:** ✅ Merged **Merged:** 8/23/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `add_url_path` --- ### 📝 Commits (6) - [`4c80c3a`](https://github.com/ollama/ollama-python/commit/4c80c3a5af1413d158c966cb6c1418fc632774b3) Add URL path to client URL in in Client._parse_host() - [`4fe9416`](https://github.com/ollama/ollama-python/commit/4fe94164a020dad3766e6a512546b4159eea9f9f) add tests for url path - [`1f1d6a2`](https://github.com/ollama/ollama-python/commit/1f1d6a208056777b484348d183abbab9254cfee8) improve URL path handling - [`fd365bc`](https://github.com/ollama/ollama-python/commit/fd365bc8420330ec8837dd049de23594aa4f9e1a) restore trailing space - [`892c290`](https://github.com/ollama/ollama-python/commit/892c290212357421fec0587fb0d74ade93a0b73b) remove extraneous path assignment - [`b0bd5e2`](https://github.com/ollama/ollama-python/commit/b0bd5e2ec82236d8f71e84f0fa1a81aca67b8667) Fix url path test ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `ollama/_client.py` (+11 -0) </details> ### 📄 Description This fix for #113 allows instantiating a client with a custom URL path as part of the host argument. Resolves #244 Resolves #113 --- <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:14 -05:00
yindo closed this issue 2026-02-15 16:30:14 -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#393