Robitx/gp.nvim

multiple ollama providers

joshuacox opened this issue · 0 comments

I have another computer that I can send ollama calls to when at home.

I wanted to do something like:

return {
    "robitx/gp.nvim",
    config = function()
        local conf = {
	        providers = {
		        remote_ollama = {
			        endpoint = "http://10.1.2.34:11434/v1/chat/completions",
                                secret = "secret123"
		        },
		        ollama = {
			        endpoint = "http://localhost:11434/v1/chat/completions",
		        },
	        },
	        agents = {
		        {
			        provider = "remote_ollama",
			        name = "remote_ollamaLlama3.1-8B",
			        chat = true,
			        command = true,
			        model = {
				        model = "llama3.1",
				        temperature = 0.4,
				        top_p = 1,
				        min_p = 0.05,
			        },
			        system_prompt = require("gp.defaults").code_system_prompt,
		        },
	        },
        }
        require("gp").setup(conf)
    end,
}

but it seems to think I need a secret with something like "vault secret remote_ollama not found". Is this possible? I know I can simply change the endpoint on the ollama provider and just alter that when I'm home, but it would be nice to be able to have all of my alternatives in my config without having to alter it all the time.

EDIT: I added the secret just to see if that would fool it into working, no such luck