Skip to content

Commit 3aac7a3

Browse files
feat(api): manual updates
1 parent 0501932 commit 3aac7a3

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-e6a9dca1a93568e403ac72128d86f30c8c3f1336d4b67017d7e61b1836f10f47.yml
33
openapi_spec_hash: ef01e0649bb0e283df0aa81c369649df
4-
config_hash: 0f2a6f228fb92683466c107fce3bcd21
4+
config_hash: 88e87ba7021be93d267ecfc8f5e6b891

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
8080
use Stagehand\Core\Exceptions\APIConnectionException;
8181

8282
try {
83-
$response = $client->sessions->start(modelName: 'gpt-4o');
83+
$response = $client->sessions->start(modelName: 'openai/gpt-5-nano');
8484
} catch (APIConnectionException $e) {
8585
echo "The server could not be reached", PHP_EOL;
8686
var_dump($e->getPrevious());
@@ -127,7 +127,8 @@ $client = new Client(maxRetries: 0);
127127

128128
// Or, configure per-request:
129129
$result = $client->sessions->start(
130-
modelName: 'gpt-4o', requestOptions: RequestOptions::with(maxRetries: 5)
130+
modelName: 'openai/gpt-5-nano',
131+
requestOptions: RequestOptions::with(maxRetries: 5),
131132
);
132133
```
133134

@@ -147,7 +148,7 @@ Note: the `extra*` parameters of the same name overrides the documented paramete
147148
use Stagehand\RequestOptions;
148149

149150
$response = $client->sessions->start(
150-
modelName: 'gpt-4o',
151+
modelName: 'openai/gpt-5-nano',
151152
requestOptions: RequestOptions::with(
152153
extraQueryParams: ['my_query_parameter' => 'value'],
153154
extraBodyParams: ['my_body_parameter' => 'value'],

0 commit comments

Comments
 (0)