You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set the environment variable OLLAMA_HOST to 0.0.0.0:11434, allowing it to serve the local network. At the same time, I am running some local applications written in Python on the same machine. I noticed that I cannot directly use from ollama import chat; instead, I must first specify client = Client("http://localhost:11434") before I can use client.chat.
I suspect this is because the ollama-python library also reads the OLLAMA_HOST environment variable and uses it as the default access address.
A possible fix would be to add a special case for handling 0.0.0.0 in the _parse_host method.
The text was updated successfully, but these errors were encountered:
I set the environment variable OLLAMA_HOST to 0.0.0.0:11434, allowing it to serve the local network. At the same time, I am running some local applications written in Python on the same machine. I noticed that I cannot directly use
from ollama import chat
; instead, I must first specifyclient = Client("http://localhost:11434")
before I can useclient.chat
.I suspect this is because the ollama-python library also reads the OLLAMA_HOST environment variable and uses it as the default access address.
A possible fix would be to add a special case for handling 0.0.0.0 in the
_parse_host
method.The text was updated successfully, but these errors were encountered: