From dc0851b356a3bb91b97f55edcd91b9ff905659f6 Mon Sep 17 00:00:00 2001 From: Kacper Marzecki Date: Thu, 27 Mar 2025 00:26:30 +0100 Subject: [PATCH] ollama GP agent --- nvim/lua/plugins/plugins.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/nvim/lua/plugins/plugins.lua b/nvim/lua/plugins/plugins.lua index fe6812e..41a9d7b 100644 --- a/nvim/lua/plugins/plugins.lua +++ b/nvim/lua/plugins/plugins.lua @@ -336,7 +336,28 @@ return { { "robitx/gp.nvim", opts = { + agents = { + { + provider = "ollama", + name = "warhammer", + chat = true, + command = false, + -- string with model name or table with model name and parameters + model = { + model = "llama3", + temperature = 0.6, + top_p = 1, + min_p = 0.05, + }, + -- system prompt (use this to specify the persona/role of the AI) + system_prompt = "You are a general AI assistant.", + }, + }, + providers = { + ollama = { + endpoint = "http://localhost:11434/v1/chat/completions", + }, openai = { endpoint = "https://api.openai.com/v1/chat/completions", secret = {