-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
Exposed Ollama on local network, still get connection errors #501
Comments
What URL are you using for Ollama in the settings? |
http://10.10.251.50:11434 which is the host IP address. Hitting it with curl from within the container works as above. |
What is your config.toml file? you can hide the keys. |
`❯ cat config.toml [API_ENDPOINTS] [GENERAL] |
I've added
Environment="OLLAMA_HOST=0.0.0.0"
to the ollama.service file, daemon-reload and restart. Changed config.toml to reflect the IP:Port of the Ollama host URL.If I attach to the perplixica_backend container, install curl and run:
curl http://<IP_of_Ollama_Host>:11434/api/generate -d '{ "model": "llama3.2", "prompt": "Why is the sky blue?" }'
I get the appropriate response back from the ollama service.
But I still get errors in the docker log for Ollama connection from the backend container.
perplexica-backend_1 | error: Unhandled Rejection at: [object Promise], reason: TypeError [ERR_INVALID_URL]: Invalid URL
Perplexed.
The text was updated successfully, but these errors were encountered: