fix: pass context to provider for stream data parsing (#1475)
* fix: pass context to provider for stream data parsing * fix: luatype --------- Co-authored-by: yetone <yetoneful@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ function M.parse_messages(opts)
|
||||
return { messages = messages }
|
||||
end
|
||||
|
||||
function M.parse_stream_data(data, opts)
|
||||
function M.parse_stream_data(ctx, data, opts)
|
||||
---@type CohereChatResponse
|
||||
local json = vim.json.decode(data)
|
||||
if json.type ~= nil then
|
||||
|
||||
Reference in New Issue
Block a user