What about url-defined ollama? Personally, I run open-webui on an outward facing pi on its own vlan that connects to an internal machine running ollama. This is so that there is fallback to openai api if the machine is down.
"cody.dev.models": [
{
"provider": "openaicompatible",
"model": "mixtral:latest",
"tokens": 4096,
"apiEndpoint": "http://localhost:11434/v1/chat/completions"
},
],
We should add an easier way to just change the Ollama URL from localhost, so you can see all the Ollama models listed as you can when it's available on localhost. Added to our TODO list!I have a WIP PR right now (like literally coding on it right now) making Cody support strict offline mode better (i.e., not even showing online models if you choose to be offline): https://github.com/sourcegraph/cody/pull/5221.