We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use ollama in a proxy environment, so os.environ["HTTP_PROXY"] = "socks5h://xxx", But
I use this code to create ollama client, so I can control the proxy: client = ollama.Client(host="http://127.0.0.1:11434", trust_env = False)
But in ollama/__init__.py, this code cause error: _client = Client()
the error is: ValueError: Unknown scheme for proxy URL URL('socks5h://
cause by this judge: if url.scheme not in ("http", "https", "socks5"):
So, my question is, could:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use ollama in a proxy environment, so os.environ["HTTP_PROXY"] = "socks5h://xxx", But
I use this code to create ollama client, so I can control the proxy:
client = ollama.Client(host="http://127.0.0.1:11434", trust_env = False)
But in ollama/__init__.py, this code cause error:
_client = Client()
the error is:
ValueError: Unknown scheme for proxy URL URL('socks5h://
cause by this judge:
if url.scheme not in ("http", "https", "socks5"):
So, my question is, could:
The text was updated successfully, but these errors were encountered: