Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
6ba2143fed
commit
60e3eac77e
@ -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)
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user