chore: replace replace_in_file references with str_replace (#2811)

This commit is contained in:
yetone
2025-10-31 02:08:53 +08:00
committed by GitHub
parent c8bf0205b5
commit 159b452426
5 changed files with 16 additions and 17 deletions

View File

@@ -1691,7 +1691,7 @@ end
---@param tool_use AvanteLLMToolUse
function M.is_edit_tool_use(tool_use)
return tool_use.name == "replace_in_file"
return tool_use.name == "str_replace"
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")