fix: edit_file is an edit tool

This commit is contained in:
yetone
2025-07-21 11:13:28 +08:00
parent 9ccf721435
commit 0490927061

View File

@@ -1498,6 +1498,7 @@ end
---@param tool_use AvanteLLMToolUse
function M.is_edit_tool_use(tool_use)
return tool_use.name == "replace_in_file"
or tool_use.name == "edit_file"
or (tool_use.name == "str_replace_editor" and tool_use.input.command == "str_replace")
or (tool_use.name == "str_replace_based_edit_tool" and tool_use.input.command == "str_replace")
end