You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @phpstan-import-type OptionsShape from \Stagehand\Sessions\SessionNavigateParams\Options
32
29
* @phpstan-import-type BrowserShape from \Stagehand\Sessions\SessionStartParams\Browser
33
30
* @phpstan-import-type BrowserbaseSessionCreateParamsShape from \Stagehand\Sessions\SessionStartParams\BrowserbaseSessionCreateParams
34
-
* @phpstan-import-type ModelClientOptionsShape from \Stagehand\Sessions\SessionStartParams\ModelClientOptions
35
31
* @phpstan-import-type InputShape from \Stagehand\Sessions\SessionActParams\Input
36
32
* @phpstan-import-type OptionsShape from \Stagehand\Sessions\SessionActParams\Options as OptionsShape1
37
33
* @phpstan-import-type RequestOpts from \Stagehand\RequestOptions
@@ -289,7 +285,6 @@ public function replay(
289
285
* @param string $browserbaseSessionID Body param: Existing Browserbase session ID to resume
290
286
* @param float $domSettleTimeoutMs Body param: Timeout in ms to wait for DOM to settle
291
287
* @param bool $experimental Body param
292
-
* @param ModelClientOptionsShape $modelClientOptions Body param: Optional provider-specific configuration for the session model (for example Bedrock region and credentials)
293
288
* @param bool $selfHeal Body param: Enable self-healing for failed actions
294
289
* @param string $systemPrompt Body param: Custom system prompt for AI operations
* @phpstan-import-type OptionsShape from \Stagehand\Sessions\SessionNavigateParams\Options
35
32
* @phpstan-import-type BrowserShape from \Stagehand\Sessions\SessionStartParams\Browser
36
33
* @phpstan-import-type BrowserbaseSessionCreateParamsShape from \Stagehand\Sessions\SessionStartParams\BrowserbaseSessionCreateParams
37
-
* @phpstan-import-type ModelClientOptionsShape from \Stagehand\Sessions\SessionStartParams\ModelClientOptions
38
34
* @phpstan-import-type InputShape from \Stagehand\Sessions\SessionActParams\Input
39
35
* @phpstan-import-type OptionsShape from \Stagehand\Sessions\SessionActParams\Options as OptionsShape1
40
36
* @phpstan-import-type RequestOpts from \Stagehand\RequestOptions
@@ -466,7 +462,6 @@ public function replay(
466
462
* @param string $browserbaseSessionID Body param: Existing Browserbase session ID to resume
467
463
* @param float $domSettleTimeoutMs Body param: Timeout in ms to wait for DOM to settle
468
464
* @param bool $experimental Body param
469
-
* @param ModelClientOptionsShape $modelClientOptions Body param: Optional provider-specific configuration for the session model (for example Bedrock region and credentials)
470
465
* @param bool $selfHeal Body param: Enable self-healing for failed actions
471
466
* @param string $systemPrompt Body param: Custom system prompt for AI operations
* @phpstan-import-type ProviderOptionsVariants from \Stagehand\Sessions\ModelConfig\ProviderOptions
18
-
* @phpstan-import-type ProviderOptionsShape from \Stagehand\Sessions\ModelConfig\ProviderOptions
19
-
*
20
14
* @phpstan-type ModelConfigShape = array{
21
15
* modelName: string,
22
16
* apiKey?: string|null,
23
17
* baseURL?: string|null,
24
18
* headers?: array<string,string>|null,
25
19
* provider?: null|Provider|value-of<Provider>,
26
-
* providerOptions?: ProviderOptionsShape|null,
27
-
* skipAPIKeyFallback?: bool|null,
28
20
* }
29
21
*/
30
22
finalclass ModelConfig implements BaseModel
@@ -51,7 +43,7 @@ final class ModelConfig implements BaseModel
51
43
public ?string$baseURL;
52
44
53
45
/**
54
-
* Custom headers for the model provider.
46
+
* Custom headers sent with every request to the model provider.
55
47
*
56
48
* @var array<string,string>|null $headers
57
49
*/
@@ -66,20 +58,6 @@ final class ModelConfig implements BaseModel
66
58
#[Optional(enum: Provider::class)]
67
59
public ?string$provider;
68
60
69
-
/**
70
-
* Provider-specific options passed through to the AI SDK provider constructor. For Bedrock: { region, accessKeyId, secretAccessKey, sessionToken }. For Vertex: { project, location, googleAuthOptions }.
* When true, hosted sessions will not copy x-model-api-key into model.apiKey. Use this when auth is carried through providerOptions instead of an API key.
79
-
*/
80
-
#[Optional('skipApiKeyFallback')]
81
-
public ?bool$skipAPIKeyFallback;
82
-
83
61
/**
84
62
* `new ModelConfig()` is missing required properties by the API.
85
63
*
@@ -106,16 +84,13 @@ public function __construct()
@@ -165,7 +138,7 @@ public function withBaseURL(string $baseURL): self
165
138
}
166
139
167
140
/**
168
-
* Custom headers for the model provider.
141
+
* Custom headers sent with every request to the model provider.
169
142
*
170
143
* @param array<string,string> $headers
171
144
*/
@@ -189,29 +162,4 @@ public function withProvider(Provider|string $provider): self
189
162
190
163
return$self;
191
164
}
192
-
193
-
/**
194
-
* Provider-specific options passed through to the AI SDK provider constructor. For Bedrock: { region, accessKeyId, secretAccessKey, sessionToken }. For Vertex: { project, location, googleAuthOptions }.
* When true, hosted sessions will not copy x-model-api-key into model.apiKey. Use this when auth is carried through providerOptions instead of an API key.
0 commit comments