More on AI
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
-- AI code completion
|
||||
-- A
|
||||
return {
|
||||
'milanglacier/minuet-ai.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
require('minuet').setup {
|
||||
virtualtext = {
|
||||
auto_trigger_ft = { 'lua' },
|
||||
auto_trigger_ft = { '*' },
|
||||
keymap = {
|
||||
accept = '<A-A>',
|
||||
accept_line = '<A-a>',
|
||||
@@ -22,8 +21,9 @@ return {
|
||||
},
|
||||
provider = 'openai_compatible',
|
||||
request_timeout = 3,
|
||||
throttle = 1500, -- Increase to reduce costs and avoid rate limits
|
||||
debounce = 600, -- Increase to reduce costs and avoid rate limits
|
||||
throttle = 500, -- Increase to reduce costs and avoid rate limits
|
||||
debounce = 300, -- Increase to reduce costs and avoid rate limits
|
||||
n_completions = 1,
|
||||
provider_options = {
|
||||
openai_compatible = {
|
||||
api_key = 'COMPLETION_OPENAI_API_KEY',
|
||||
@@ -31,7 +31,7 @@ return {
|
||||
model = vim.env.COMPLETION_MODEL,
|
||||
name = 'Openrouter',
|
||||
optional = {
|
||||
max_tokens = 2000,
|
||||
max_tokens = 300,
|
||||
top_p = 0.9,
|
||||
provider = {
|
||||
-- Prioritize throughput for faster completion
|
||||
|
||||
Reference in New Issue
Block a user