feat: integrated morph

This commit is contained in:
yetone
2025-07-16 17:55:41 +08:00
parent 1455ed6005
commit adbd296ba6
10 changed files with 264 additions and 52 deletions

View File

@@ -17,7 +17,10 @@ M.description =
"Request to replace sections of content in an existing file using SEARCH/REPLACE blocks that define exact changes to specific parts of the file. This tool should be used when you need to make targeted changes to specific parts of a file."
M.support_streaming = true
-- function M.enabled() return Config.provider:match("ollama") == nil end
function M.enabled()
return require("avante.config").mode == "agentic" and not require("avante.config").behaviour.enable_fastapply
end
---@type AvanteLLMToolParam
M.param = {