mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Client's host doesn't work when the host is behind a proxy server #124
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?
Originally created by @orcahmlee on GitHub (Aug 5, 2024).
I hosted a Ollama server on a K8s using Helm Charts and I add a proxy server(APISix) for this deployment. Therefore, I can access the Ollama service via a host with path instead of using port-forwording.
For example, the url for the Ollama service is
https://MY_HOST/ollama. I can access the Ollama API and get the response using curl:However, I couldn't set the
https://MY_HOST/ollamato theClient. The final url alway be parsed tohttps://MY_HOST:443without the pathollama.If this is reasonable, I could provide a PR for this feature.