From 81abbdb796d4318d1d54bf0679afc544a44f5fde Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 15 Jan 2025 20:10:23 +0800 Subject: [PATCH] fix: add missing field ask for caculate_tokens (#1088) --- lua/avante/sidebar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index cfbd71f..bdf9961 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -1599,7 +1599,7 @@ function Sidebar:create_input_container(opts) end return { - ask = opts.ask, + ask = opts.ask or true, project_context = vim.json.encode(project_context), selected_files = selected_files_contents, diagnostics = vim.json.encode(diagnostics),