File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11configured_endpoints : 8
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-573d364768ac1902ee5ed8b2485d3b293bda0ea8ff7898aef1a3fd6be79b594a.yml
33openapi_spec_hash : 107ec840f4330885dd2232a05a66fed7
4- config_hash : ab1c1122e862f9bdb6db4df36d489701
4+ config_hash : 0209737a4ab2a71afececb0ff7459998
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def __stream__(self) -> Iterator[_T]:
6060 try :
6161 for sse in iterator :
6262 if sse .data .startswith ('{"data":{"status":"finished"' ):
63- yield process_data ( data = sse . json (), cast_to = cast_to , response = response )
63+ break
6464
6565 if sse .data .startswith ("error" ):
6666 body = sse .data
@@ -145,7 +145,7 @@ async def __stream__(self) -> AsyncIterator[_T]:
145145 try :
146146 async for sse in iterator :
147147 if sse .data .startswith ('{"data":{"status":"finished"' ):
148- yield process_data ( data = sse . json (), cast_to = cast_to , response = response )
148+ break
149149
150150 if sse .data .startswith ("error" ):
151151 body = sse .data
You can’t perform that action at this time.
0 commit comments