mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
[PR #256] [CLOSED] support base path. this is useful for multiple applications under one… #439
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/256
Author: @yuxiaojian
Created: 8/17/2024
Status: ❌ Closed
Base:
main← Head:support_base_path📝 Commits (1)
ef18d08support base path. this is useful for multiple applications under one domain. with abase_pathlike/app1/,/app2/, etc., each application can have its own URL prefix, allowing clients to access them correctly.📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
ollama/_client.py(+4 -1)📄 Description
Support base path. This is useful for multiple applications under one domain. With a
base_pathlike/app1/,/app2/, etc., each application can have its own URL prefix, allowing clients to access them correctly.e.g.
The chat request will be sent to "https://ollama.service:32675/ollama/api/chat"
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.