Skip to content

multiple ollama providers #210

Description

@joshuacox

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

Activity

  1. added a commit that references this issue on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions