File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def __stream__(self) -> Iterator[_T]:
59
59
if sse .data .startswith ("[DONE]" ):
60
60
break
61
61
62
- if sse .event is None or sse .event .startswith ("response." ):
62
+ if sse .event is None or sse .event .startswith ("response." ) or sse . event . startswith ( 'transcript.' ) :
63
63
data = sse .json ()
64
64
if is_mapping (data ) and data .get ("error" ):
65
65
message = None
@@ -161,7 +161,7 @@ async def __stream__(self) -> AsyncIterator[_T]:
161
161
if sse .data .startswith ("[DONE]" ):
162
162
break
163
163
164
- if sse .event is None or sse .event .startswith ("response." ):
164
+ if sse .event is None or sse .event .startswith ("response." ) or sse . event . startswith ( 'transcript.' ) :
165
165
data = sse .json ()
166
166
if is_mapping (data ) and data .get ("error" ):
167
167
message = None
You can’t perform that action at this time.
0 commit comments