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

@@ -77,7 +77,7 @@ M.parse_messages = function(opts)
return messages
end
M.parse_response = function(data_stream, event_state, opts)
M.parse_response = function(ctx, data_stream, event_state, opts)
if event_state == nil then
if data_stream:match('"content_block_delta"') then
event_state = "content_block_delta"