fix: fetch llm tool no longer depends on system libssl.so (#1404)
This commit is contained in:
@@ -380,8 +380,8 @@ end
|
||||
function M.fetch(opts, on_log)
|
||||
if on_log then on_log("url: " .. opts.url) end
|
||||
local Html2Md = require("avante.html2md")
|
||||
local res = Html2Md.fetch_md(opts.url)
|
||||
if res == nil then return nil, "Failed to fetch markdown" end
|
||||
local res, err = Html2Md.fetch_md(opts.url)
|
||||
if err then return nil, err end
|
||||
return res, nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user