feat: add claude 4 text_editor tool (#2079)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user