Skip to content

Commit d08a12e

Browse files
update sdk to work with latest API
1 parent 7674bb0 commit d08a12e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def main():
3030
)
3131

3232
# Create a Stagehand client using the configuration object.
33-
stagehand = Stagehand(config=config, server_url=os.getenv("SERVER_URL"), verbose=2)
33+
stagehand = Stagehand(config=config, server_url=os.getenv("STAGEHAND_SERVER_URL"), verbose=2)
3434

3535
# Initialize - this creates a new session automatically.
3636
await stagehand.init()

stagehand/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def _check_server_health(self, timeout: int = 10):
244244
resp = await client.get(f"{self.server_url}/healthcheck", headers=headers)
245245
if resp.status_code == 200:
246246
data = resp.json()
247-
if data.get("success") is True:
247+
if data.get("status") == "ok":
248248
self._log("Healthcheck passed. Server is running.", level=1)
249249
return
250250
except Exception as e:

0 commit comments

Comments
 (0)