feat: enable override prompt templates directory (#2387)

This commit is contained in:
doodleEsc
2025-07-02 14:43:17 +08:00
committed by GitHub
parent 6bbf3d2004
commit 4329ed79f4
4 changed files with 100 additions and 6 deletions

View File

@@ -38,8 +38,10 @@ M._defaults = {
-- For most providers that we support we will determine this automatically.
-- If you wish to use a given implementation, then you can override it here.
tokenizer = "tiktoken",
---@type string | (fun(): string) | nil
---@type string | fun(): string | nil
system_prompt = nil,
---@type string | fun(): string | nil
override_prompt_dir = nil,
rules = {
project_dir = nil, ---@type string | nil (could be relative dirpath)
global_dir = nil, ---@type string | nil (absolute dirpath)