fix: filter out create_file tool in claude provider (#1677)

This commit is contained in:
yetone
2025-03-22 22:24:29 +08:00
committed by GitHub
parent cc966194d0
commit 4749e4ea1a

View File

@@ -340,7 +340,9 @@ function M:parse_curl_args(prompt_opts)
local tools = {}
if not disable_tools and prompt_opts.tools then
for _, tool in ipairs(prompt_opts.tools) do
if tool.name == "create_file" then goto continue end
table.insert(tools, self:transform_tool(tool))
::continue::
end
end