feat: add claude 4 text_editor tool (#2079)

This commit is contained in:
Lucas Pereira
2025-05-26 11:44:54 +02:00
committed by GitHub
parent 87c4c6b493
commit 9791bdc71e
2 changed files with 38 additions and 1 deletions

View File

@@ -361,7 +361,12 @@ function M:parse_curl_args(prompt_opts)
end
if prompt_opts.tools and #prompt_opts.tools > 0 and Config.mode == "agentic" then
if provider_conf.model:match("claude%-3%-7%-sonnet") then
if provider_conf.model:match("claude%-sonnet%-4") then
table.insert(tools, {
type = "text_editor_20250429",
name = "str_replace_based_edit_tool",
})
elseif provider_conf.model:match("claude%-3%-7%-sonnet") then
table.insert(tools, {
type = "text_editor_20250124",
name = "str_replace_editor",