Skip to content

Commit f90c553

Browse files
feat: Update stainless.yml for project and publish settings
1 parent 85f8584 commit f90c553

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 8
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-43e6dd4ce19381de488d296e9036fea15bfea9a6f946cf8ccf4e02aecc8fb765.yml
33
openapi_spec_hash: f736e7a8acea0d73e1031c86ea803246
4-
config_hash: 75b561cd2ba925e4f2a62ec2f1d13738
4+
config_hash: b375728ccf7d33287335852f4f59c293

src/stagehand/_streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __stream__(self) -> Iterator[_T]:
5656

5757
try:
5858
for sse in iterator:
59-
if sse.data.startswith("finished"):
59+
if sse.data.startswith('{"data":{"status":"finished"'):
6060
break
6161

6262
if sse.data.startswith("error"):
@@ -139,7 +139,7 @@ async def __stream__(self) -> AsyncIterator[_T]:
139139

140140
try:
141141
async for sse in iterator:
142-
if sse.data.startswith("finished"):
142+
if sse.data.startswith('{"data":{"status":"finished"'):
143143
break
144144

145145
if sse.data.startswith("error"):

0 commit comments

Comments
 (0)