Perplexica icon indicating copy to clipboard operation
Perplexica copied to clipboard

Exposed Ollama on local network, still get connection errors

Open ikidd opened this issue 2 months ago • 6 comments

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.

ikidd avatar Dec 02 '24 18:12 ikidd