diff --git a/lua/avante/llm.lua b/lua/avante/llm.lua index 8fcc6c2..a4b4c82 100644 --- a/lua/avante/llm.lua +++ b/lua/avante/llm.lua @@ -542,12 +542,6 @@ M.stream = function(question, code_lang, code_content, selected_content_content, ProviderConfig = Config.vendors[provider] spec = ProviderConfig.parse_curl_args(ProviderConfig, code_opts) end - --- If the provider doesn't have stream set, we set it to true - if spec.body.stream == nil then - spec = vim.tbl_deep_extend("force", spec, { - body = { stream = true }, - }) - end ---@param line string local function parse_and_call(line) diff --git a/lua/avante/utils/init.lua b/lua/avante/utils/init.lua index 4a6f45e..db908e8 100644 --- a/lua/avante/utils/init.lua +++ b/lua/avante/utils/init.lua @@ -36,8 +36,8 @@ function M.in_visual_mode() return current_mode == "v" or current_mode == "V" or current_mode == "" end --- Get the selected content and range in Visual mode --- @return avante.SelectionResult | nil Selected content and range +---Get the selected content and range in Visual mode +---@return avante.SelectionResult | nil Selected content and range function M.get_visual_selection_and_range() local Range = require("avante.range") local SelectionResult = require("avante.selection_result")