feat: support tools in bedrock (#1598)

This commit is contained in:
brook hong
2025-03-17 13:42:18 +08:00
committed by GitHub
parent 3504e64407
commit e204ca1cf3
7 changed files with 25 additions and 7 deletions

View File

@@ -228,7 +228,7 @@ 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
table.insert(tools, OpenAI.transform_tool(tool))
table.insert(tools, OpenAI:transform_tool(tool))
end
end