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