feat(server-v3): expose OpenAI endpoint format - #2374
Conversation
|
| Name | Type |
|---|---|
| @browserbasehq/stagehand | Patch |
| @browserbasehq/stagehand-server-v3 | Patch |
| @browserbasehq/stagehand-evals | Patch |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
✱ Stainless preview builds for stagehandThis PR will update the ✅ stagehand-kotlin studio · code
|
Propagates openaiEndpointFormat through the server-v3 request schema and generated OpenAPI spec so Stainless can expose it in the Python SDK. Adds a regression test covering request and session initialization parsing Validation: - core build - server-v3 OpenAPI generation - server-v3 typecheck - requestModelConfig unit tests (9 passing) <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Expose the OpenAI endpoint wire format in v3 via `openaiEndpointFormat` on model config and OpenAPI, so SDKs can target `responses` or `chat` (defaults to Responses). Adds a unit test to ensure the format is preserved through request parsing and session initialization, and a changeset to release in `@browserbasehq/stagehand` and `@browserbasehq/stagehand-server-v3`. <sup>Written for commit 6f8dedb. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/browserbase/stagehand/pull/2374?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Propagates openaiEndpointFormat through the server-v3 request schema and generated OpenAPI spec so Stainless can expose it in the Python SDK. Adds a regression test covering request and session initialization parsing
Validation:
Summary by cubic
Expose the OpenAI endpoint wire format in v3 via
openaiEndpointFormaton model config and OpenAPI, so SDKs can targetresponsesorchat(defaults to Responses). Adds a unit test to ensure the format is preserved through request parsing and session initialization, and a changeset to release in@browserbasehq/stagehandand@browserbasehq/stagehand-server-v3.Written for commit 6f8dedb. Summary will update on new commits.