feat: supports reasoning_content (#1159)

This commit is contained in:
yetone
2025-02-02 02:12:14 +08:00
committed by GitHub
parent d1286e7bfb
commit b5ac768416
5 changed files with 23 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ M.parse_messages = function(opts)
}
end
M.parse_response = function(data_stream, _, opts)
M.parse_response = function(ctx, data_stream, _, opts)
local ok, json = pcall(vim.json.decode, data_stream)
if not ok then opts.on_complete(json) end
if json.candidates then