From 2cde089e1e202dfe39c3f1c093bf275d7e7e45da Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 2 Sep 2026 20:21:07 +0100 Subject: [PATCH] Update files --- lua/plugins/ai-completion.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lua/plugins/ai-completion.lua b/lua/plugins/ai-completion.lua index 5d24be3..1347527 100644 --- a/lua/plugins/ai-completion.lua +++ b/lua/plugins/ai-completion.lua @@ -46,11 +46,10 @@ return { }, }, provider = 'openai_compatible', - request_timeout = 3, - throttle = 500, -- Increase to reduce costs and avoid rate limits - debounce = 400, -- Increase to reduce costs and avoid rate limits + request_timeout = 2.5, + throttle = 1500, -- Increase to reduce costs and avoid rate limits + debounce = 600, -- Increase to reduce costs and avoid rate limits n_completions = 1, - before_cursor_filter_length = 10, provider_options = { openai_compatible = { api_key = 'COMPLETION_OPENAI_API_KEY', @@ -58,15 +57,17 @@ return { model = vim.env.COMPLETION_MODEL, name = 'Openrouter', optional = { - max_tokens = 300, + max_tokens = 56, top_p = 0.9, provider = { -- Prioritize throughput for faster completion sort = 'throughput', }, + reasoning_effort = 'none', }, }, }, } end, } +