Cannot Add Ollama Local Provider Invalid URL Error

Fantastic @Constantine. Thank you for the follow-up.

Summary

On a Linux sysstem, the OLLAMA_ORIGINS works for a local-to-the-machine model. In other wwords, this works iff the Ollama instance runs on the same machine.

** Linux Suggestion **
I placed the OLLAMA_ORIGINS in my BASH ~/.bashrc file to persist the variable after re-starts. Add the suggested OLLAMA_ORIGINS to bashrc (assuming BASH Shell), save, and then execute source ~/.bashrc.

** Use Case **
Muyuse-case is still not addressed–I say this politely. I have a dedicated Ollama server on my personal internal network. Assume: 192.168.222.6 This is NOT the same machine that runs OnlyOffice.

The dedicated Ollama machine offloads the Ollama usage from the working machine–the machine using OnlyOffice may also bee used for software development.

I still cannot get OnlyOffice to use the IP of a dediccated machine. If I try to use an IP (anything but localhost), I get the Invalid URL error.

** What I tried **
I tried several permutations including adding the IP to the OLLAMA_ORIGINS variable.

I also tried setting a mapping in /etc/hosts to create a host-alias for the remote/dedicated machine.

Only localhost seems to work.

I also checked the flatpack settings and confirm that OnlyOffice has network access.

THANKS for the improvement. At least this wworks with localhost.

1 Like