Add option custom_init to enable user to customize behaviour of sidebar (#2630)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
brook hong
2025-08-24 02:57:52 +08:00
committed by GitHub
parent 212797a2f2
commit 40af7113a2
4 changed files with 18 additions and 4 deletions

View File

@@ -110,6 +110,8 @@ end
---@field floating? boolean whether to open a floating input to enter the question
---@field new_chat? boolean whether to open a new chat
---@field without_selection? boolean whether to open a new chat without selection
---@field sidebar_pre_render? fun(sidebar: avante.Sidebar)
---@field sidebar_post_render? fun(sidebar: avante.Sidebar)
---@param opts? AskOptions
function M.ask(opts)