fix: enable Claude text editor for claude-3.5 model (#1892)

This commit is contained in:
Juan Carlos
2025-05-04 11:53:32 -05:00
committed by GitHub
parent e989fc2f06
commit b15a4672c0

View File

@@ -377,9 +377,9 @@ function M:parse_curl_args(prompt_opts)
type = "text_editor_20250124",
name = "str_replace_editor",
})
elseif provider_conf.model:match("claude%-3%-5%-instruct") then
elseif provider_conf.model:match("claude%-3%-5%-sonnet") then
table.insert(tools, {
type = "text_editor_20241022",
type = "text_editor_20250124",
name = "str_replace_editor",
})
end