Compare commits

..

2 Commits

Author SHA1 Message Date
Kacper Marzecki
369134dd49 GP mappings + json format mapping 2025-03-27 00:26:44 +01:00
Kacper Marzecki
dc0851b356 ollama GP agent 2025-03-27 00:26:30 +01:00
2 changed files with 30 additions and 0 deletions

View File

@ -139,3 +139,12 @@ print("dupsko")
-- exec lua
map("v", "<leader>ce", "<cmd>'<,'>lua<cr>", { desc = "exec Lua" })
-- GP
map("n", "<leader>agf", "<cmd>GpChatFinder<cr>", { desc = "gp chat finder" })
map("n", "<leader>agt", "<cmd>GpChatToggle<cr>", { desc = "gp chat toggle" })
map("n", "<leader>agn", "<cmd>GpChatNew<cr>", { desc = "gp chat new " })
map("n", "<leader>agr", "<cmd>GpChatRespond<cr>", { desc = "gp chat respond" })
-- JSON FORMAT
map("n", "<leader>cjf", "<cmd>%!jq .<cr>", { desc = "Json Format" })

View File

@ -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 = {