refactor: history messages (#1934)
This commit is contained in:
@@ -58,6 +58,7 @@ function M:parse_stream_data(ctx, data, opts)
|
||||
end
|
||||
|
||||
function M:parse_response_without_stream(data, event_state, opts)
|
||||
if opts.on_chunk == nil then return end
|
||||
local bedrock_match = data:gmatch("exception(%b{})")
|
||||
opts.on_chunk("\n**Exception caught**\n\n")
|
||||
for bedrock_data_match in bedrock_match do
|
||||
|
||||
Reference in New Issue
Block a user