Save my changes
This commit is contained in:
parent
f4b9fef63c
commit
f53551177c
4 changed files with 63 additions and 15 deletions
|
|
@ -1,6 +1,6 @@
|
|||
return {
|
||||
'github/copilot.vim',
|
||||
config = function ()
|
||||
vim.g.copilot_assume_mapped = true
|
||||
end
|
||||
-- 'github/copilot.vim',
|
||||
-- config = function ()
|
||||
-- vim.g.copilot_assume_mapped = true
|
||||
-- end
|
||||
}
|
||||
|
|
|
|||
27
lua/custom/plugins/llm.lua
Normal file
27
lua/custom/plugins/llm.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
return {
|
||||
'huggingface/llm.nvim',
|
||||
enabled = false,
|
||||
opts = {
|
||||
backend = 'ollama',
|
||||
model = 'stable-code',
|
||||
url = 'http://localhost:11434/api/generate',
|
||||
|
||||
tokens_to_clear = { '<EOT>' },
|
||||
fim = {
|
||||
enabled = true,
|
||||
prefix = '<PRE> ',
|
||||
middle = ' <MID>',
|
||||
suffix = ' <SUF>',
|
||||
},
|
||||
context_window = 4096,
|
||||
|
||||
-- cf https://github.com/ollama/ollama/blob/main/docs/api.md#parameters
|
||||
request_body = {
|
||||
-- Modelfile options for the model you use
|
||||
options = {
|
||||
temperature = 0.2,
|
||||
top_p = 0.95,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue