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 b86df93 commit 69913feCopy full SHA for 69913fe
.changeset/proud-weeks-cover.md
@@ -0,0 +1,5 @@
1
+---
2
+"@browserbasehq/stagehand": patch
3
4
+
5
+Pass sdk version number to API for debugging
lib/api.ts
@@ -28,6 +28,7 @@ import {
28
StagehandResponseParseError,
29
} from "../types/stagehandApiErrors";
30
import makeFetchCookie from "fetch-cookie";
31
+import { STAGEHAND_VERSION } from "./version";
32
33
export class StagehandAPI {
34
private apiKey: string;
@@ -245,6 +246,7 @@ export class StagehandAPI {
245
246
"x-model-api-key": this.modelApiKey,
247
"x-sent-at": new Date().toISOString(),
248
"x-language": "typescript",
249
+ "x-sdk-version": STAGEHAND_VERSION,
250
};
251
252
if (options.method === "POST" && options.body) {
0 commit comments