gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

Hardcoded Ollama host

Open hansipie opened this issue 4 months ago • 0 comments

Hello

Runnig gpt4free from a docker container, Ollama server locally installed on the host is unreachable: the adresse 127.0.0.1 is hardcoded

I'd like to be able to configure the Ollama host and port for exemple from an environment variable.

In my case, host should be 'host.docker.interal' instead of 'localhost' or 127.0.0.1.

PS: I can open a PR.

hansipie avatar Sep 30 '24 11:09 hansipie