From b0b96f9947ada81950292af4f3fefb3743c6d1d6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 19:18:24 +0000 Subject: [PATCH 1/2] feat: Replace default model used in server-v3 api spec examples --- .stats.yml | 6 +++--- README.md | 6 +++--- tests/ClientTest.php | 2 +- tests/Services/SessionsTest.php | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.stats.yml b/.stats.yml index 129faad..ac9e78a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 8 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-bc309fd00fe0507f4cbe3bc77fa27d0fbffeaa6e71998778da34de42608a67e8.yml -openapi_spec_hash: 1db1af5c1b068bba1d652102f4454668 -config_hash: d6c6f623d03971bdba921650e5eb7e5f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-b969ce378479c79ee64c05127c0ed6c6ce2edbee017ecd037242fb618a5ebc9f.yml +openapi_spec_hash: a24aabaa5214effb679808b7f2be0ad4 +config_hash: a962ae71493deb11a1c903256fb25386 diff --git a/README.md b/README.md index 417917d..ef3bd5b 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ use Stagehand\Core\Exceptions\RateLimitException; use Stagehand\Core\Exceptions\APIStatusException; try { - $response = $client->sessions->start(modelName: 'openai/gpt-5-nano'); + $response = $client->sessions->start(modelName: 'openai/gpt-5.4-mini'); } catch (APIConnectionException $e) { echo "The server could not be reached", PHP_EOL; var_dump($e->getPrevious()); @@ -322,7 +322,7 @@ $client = new Client(requestOptions: ['maxRetries' => 0]); // Or, configure per-request: $result = $client->sessions->start( - modelName: 'openai/gpt-5-nano', requestOptions: ['maxRetries' => 5] + modelName: 'openai/gpt-5.4-mini', requestOptions: ['maxRetries' => 5] ); ``` @@ -340,7 +340,7 @@ Note: the `extra*` parameters of the same name overrides the documented paramete sessions->start( - modelName: 'openai/gpt-5-nano', + modelName: 'openai/gpt-5.4-mini', requestOptions: [ 'extraQueryParams' => ['my_query_parameter' => 'value'], 'extraBodyParams' => ['my_body_parameter' => 'value'], diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 3af686b..9f211de 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -34,7 +34,7 @@ public function testDefaultHeaders(): void requestOptions: ['transporter' => $transporter], ); - $client->sessions->start(modelName: 'openai/gpt-4o'); + $client->sessions->start(modelName: 'openai/gpt-5.4-mini'); $this->assertNotFalse($requested = $transporter->getRequests()[0] ?? false); diff --git a/tests/Services/SessionsTest.php b/tests/Services/SessionsTest.php index 076d524..c0c7b57 100644 --- a/tests/Services/SessionsTest.php +++ b/tests/Services/SessionsTest.php @@ -69,7 +69,7 @@ public function testActWithOptionalParams(): void frameID: 'frameId', options: [ 'model' => [ - 'modelName' => 'openai/gpt-5-nano', + 'modelName' => 'openai/gpt-5.4-mini', 'apiKey' => 'sk-some-openai-api-key', 'baseURL' => 'https://api.openai.com/v1', 'headers' => ['foo' => 'string'], @@ -136,7 +136,7 @@ public function testExecuteWithOptionalParams(): void agentConfig: [ 'cua' => true, 'executionModel' => [ - 'modelName' => 'openai/gpt-5-nano', + 'modelName' => 'openai/gpt-5.4-mini', 'apiKey' => 'sk-some-openai-api-key', 'baseURL' => 'https://api.openai.com/v1', 'headers' => ['foo' => 'string'], @@ -144,7 +144,7 @@ public function testExecuteWithOptionalParams(): void ], 'mode' => 'cua', 'model' => [ - 'modelName' => 'openai/gpt-5-nano', + 'modelName' => 'openai/gpt-5.4-mini', 'apiKey' => 'sk-some-openai-api-key', 'baseURL' => 'https://api.openai.com/v1', 'headers' => ['foo' => 'string'], @@ -259,7 +259,7 @@ public function testStart(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->sessions->start(modelName: 'openai/gpt-4o'); + $result = $this->client->sessions->start(modelName: 'openai/gpt-5.4-mini'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SessionStartResponse::class, $result); @@ -273,7 +273,7 @@ public function testStartWithOptionalParams(): void } $result = $this->client->sessions->start( - modelName: 'openai/gpt-4o', + modelName: 'openai/gpt-5.4-mini', actTimeoutMs: 0, browser: [ 'cdpURL' => 'ws://localhost:9222', From 858fa9343b3d06fb87b81dfc7e5909fab8e43018 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 19:27:09 +0000 Subject: [PATCH 2/2] release: 3.19.3 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- src/Version.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index df3292b..911c623 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.18.0" + ".": "3.19.3" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e2302ad..bdc1f55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.19.3 (2026-04-03) + +Full Changelog: [v3.18.0...v3.19.3](https://github.com/browserbase/stagehand-php/compare/v3.18.0...v3.19.3) + +### Features + +* Replace default model used in server-v3 api spec examples ([b0b96f9](https://github.com/browserbase/stagehand-php/commit/b0b96f9947ada81950292af4f3fefb3743c6d1d6)) + ## 3.18.0 (2026-03-24) Full Changelog: [v3.16.0...v3.18.0](https://github.com/browserbase/stagehand-php/compare/v3.16.0...v3.18.0) diff --git a/README.md b/README.md index ef3bd5b..1749137 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta ``` -composer require "browserbase/stagehand 3.18.0" +composer require "browserbase/stagehand 3.19.3" ``` diff --git a/src/Version.php b/src/Version.php index c3e4a22..6b0b465 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Stagehand; // x-release-please-start-version -const VERSION = '3.18.0'; +const VERSION = '3.19.3'; // x-release-please-end