Revert "fix: Always handle the extra response outside of stream, such as the exceptions from bedrock (#1526)" (#1569)
This reverts commit f9ab6934d2.
This commit is contained in:
@@ -14,6 +14,8 @@ M.role_map = {
|
||||
M.parse_messages = P.openai.parse_messages
|
||||
M.is_o_series_model = P.openai.is_o_series_model
|
||||
|
||||
function M:is_disable_stream() return false end
|
||||
|
||||
function M:parse_stream_data(ctx, data, handler_opts)
|
||||
local ok, json_data = pcall(vim.json.decode, data)
|
||||
if not ok or not json_data then
|
||||
|
||||
Reference in New Issue
Block a user