Compare commits
2 Commits
ed553c4d51
...
369134dd49
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
369134dd49 | ||
|
|
dc0851b356 |
@ -139,3 +139,12 @@ print("dupsko")
|
|||||||
-- exec lua
|
-- exec lua
|
||||||
|
|
||||||
map("v", "<leader>ce", "<cmd>'<,'>lua<cr>", { desc = "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" })
|
||||||
|
|||||||
@ -336,7 +336,28 @@ return {
|
|||||||
{
|
{
|
||||||
"robitx/gp.nvim",
|
"robitx/gp.nvim",
|
||||||
opts = {
|
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 = {
|
providers = {
|
||||||
|
ollama = {
|
||||||
|
endpoint = "http://localhost:11434/v1/chat/completions",
|
||||||
|
},
|
||||||
openai = {
|
openai = {
|
||||||
endpoint = "https://api.openai.com/v1/chat/completions",
|
endpoint = "https://api.openai.com/v1/chat/completions",
|
||||||
secret = {
|
secret = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user