feat(api): support native chat mode (#541)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-09-05 02:43:31 -04:00
committed by GitHub
parent a8ef7de7d8
commit 29e109e447
7 changed files with 45 additions and 23 deletions

View File

@@ -29,6 +29,7 @@ local group = api.nvim_create_augroup("avante_llm", { clear = true })
---@field memory_context string | nil
---
---@class StreamOptions: TemplateOptions
---@field ask boolean
---@field bufnr integer
---@field instructions string
---@field mode LlmMode
@@ -60,7 +61,7 @@ M.stream = function(opts)
local template_opts = {
use_xml_format = Provider.use_xml_format,
ask = true, -- TODO: add mode without ask instruction
ask = opts.ask, -- TODO: add mode without ask instruction
question = original_instructions,
code_lang = opts.code_lang,
file_content = opts.file_content,