We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca22d08 commit 1c772e2Copy full SHA for 1c772e2
.changeset/belligerent-gharial-of-attack.md
@@ -0,0 +1,5 @@
1
+---
2
+"stagehand": patch
3
4
+
5
+Pass sdk version number to API for debugging
stagehand/api.py
@@ -1,5 +1,6 @@
import json
from datetime import datetime
+from importlib.metadata import version as get_version
from typing import Any
6
from .utils import convert_dict_keys_to_camel_case
@@ -70,6 +71,7 @@ async def _create_session(self):
70
71
"Content-Type": "application/json",
72
"x-sent-at": datetime.now().isoformat(),
73
"x-language": "python",
74
+ "x-sdk-version": get_version("stagehand"),
75
}
76
77
# async with self._client:
0 commit comments