From d6b371e75f4e498915a3ececdf6781f724738e42 Mon Sep 17 00:00:00 2001 From: Adam Stracener <6558867+NeckBeardPrince@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:34:56 -0600 Subject: [PATCH] fix(config.lua): Remove warning about using Copilot for auto_suggestions (#1125) --- lua/avante/config.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lua/avante/config.lua b/lua/avante/config.lua index 60dc1ad..39e0041 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -10,6 +10,9 @@ M._defaults = { debug = false, ---@alias Provider "claude" | "openai" | "azure" | "gemini" | "vertex" | "cohere" | "copilot" | string provider = "claude", -- Only recommend using Claude + -- WARNING: Since auto-suggestions are a high-frequency operation and therefore expensive, + -- currently designating it as `copilot` provider is dangerous because: https://github.com/yetone/avante.nvim/issues/1048 + -- Of course, you can reduce the request frequency by increasing `suggestion.debounce`. auto_suggestions_provider = "claude", ---@alias Tokenizer "tiktoken" | "hf" -- Used for counting tokens and encoding text. @@ -283,13 +286,6 @@ function M.setup(opts) } ) - -- Check if provider is copilot and warn user - if merged.auto_suggestions_provider == "copilot" then - Utils.warn( - "Warning: Copilot is not recommended as the default auto suggestion provider. Because: https://github.com/yetone/avante.nvim/issues/1048" - ) - end - M._options = merged M.providers = vim .iter(M._defaults)