Skip to content

Commit 564f794

Browse files
committed
Add back in x-sent-at so that start_time and end_time work again
1 parent d8b5003 commit 564f794

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/stagehand/_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
import os
6+
import datetime
67
from typing import TYPE_CHECKING, Any, Mapping
78
from typing_extensions import Self, Literal, override
89

@@ -224,6 +225,7 @@ def default_headers(self) -> dict[str, str | Omit]:
224225
**super().default_headers,
225226
"x-language": "python",
226227
"x-sdk-version": __version__,
228+
"x-sent-at": datetime.datetime.now().isoformat(),
227229
"X-Stainless-Async": "false",
228230
**self._custom_headers,
229231
}
@@ -514,6 +516,7 @@ def default_headers(self) -> dict[str, str | Omit]:
514516
**super().default_headers,
515517
"x-language": "python",
516518
"x-sdk-version": __version__,
519+
"x-sent-at": datetime.datetime.now().isoformat(),
517520
"X-Stainless-Async": f"async:{get_async_library()}",
518521
**self._custom_headers,
519522
}

0 commit comments

Comments
 (0)