Open LeGeRyChEeSe opened 5 months ago
OLLAMA_HOST=http://host.docker.internal:11434
worked for me.
if discollama is running inside a container and ollama is not, OLLAMA_HOST
must be updated to address the docker host since 127.0.0.1 refers to the container. for macos and windows, this is simply setting OLLAMA_HOST
to host.docker.internal
which is a magic hostname set up by docker desktop. it's not quite as easy for linux. you could try setting it to the host's internal address
Workaround for linux:
ip addr show docker0 | grep -Po 'inet \K[\d.]+'
Hello,
I can't connect discollama to my ollama server host at
127.0.0.1:11434
address.Here is my error message when running the bot with docker and then pinging it on discord with 'Hello' :
And this is my ollama server running locally :
Also when this error is happening the bot still typing on discord, you should add a condition to remove the typing when error happened.