mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
[PR #170] [MERGED] Add URL path to client URL in in Client._parse_host() #393
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/170
Author: @bplunkert
Created: 5/29/2024
Status: ✅ Merged
Merged: 8/23/2024
Merged by: @mxyng
Base:
main← Head:add_url_path📝 Commits (6)
4c80c3aAdd URL path to client URL in in Client._parse_host()4fe9416add tests for url path1f1d6a2improve URL path handlingfd365bcrestore trailing space892c290remove extraneous path assignmentb0bd5e2Fix 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.