File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 303303end
304304return {
305305 ResponsesChatSession = ResponsesChatSession ,
306- parse_responses_response = parse_responses_response ,
307- parse_response_stream_chunk = parse_response_stream_chunk ,
308306 create_response_stream_filter = create_response_stream_filter
309307}
Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ parse_response_stream_chunk = (chunk) ->
130130 raw : chunk
131131 }
132132
133-
134- -- Wraps a chunk callback to handle streaming chunked response from server
133+ -- takes a stream of string chunks and extracts SSE json objects out of the
134+ -- stream, calling chunk_callback when a parsed object is found
135135create_response_stream_filter = ( chunk_callback) ->
136136 assert types. function( chunk_callback) , " Must provide chunk_callback function when streaming response"
137137
@@ -245,7 +245,5 @@ class ResponsesChatSession
245245
246246{
247247 : ResponsesChatSession
248- : parse_responses_response
249- : parse_response_stream_chunk
250248 : create_response_stream_filter
251249}
You can’t perform that action at this time.
0 commit comments