Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple ollama providers #210

Open
joshuacox opened this issue Sep 12, 2024 · 0 comments
Open

multiple ollama providers #210

joshuacox opened this issue Sep 12, 2024 · 0 comments

Comments

@joshuacox
Copy link

joshuacox commented Sep 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant