chore(examples): update deprecated models to gpt-4.1 and use Stagehand import#5
Open
chromiebot wants to merge 5 commits into
Open
chore(examples): update deprecated models to gpt-4.1 and use Stagehand import#5chromiebot wants to merge 5 commits into
chromiebot wants to merge 5 commits into
Conversation
Replace model object ({ modelName, apiKey }) with model string in
non-CUA examples. API keys are no longer required when using
env: "BROWSERBASE" with standard providers (openai/gemini/anthropic).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…d import Address PR browserbase#1964 review comments: - Replace deprecated gpt-4o with gpt-4.1 in custom-client-aisdk.ts - Replace deprecated gpt-4o-mini with gpt-4.1-mini in custom-client-openai.ts - Replace deprecated gpt-4o with gpt-4.1 in custom-client-langchain.ts - Replace V3 import/usage with Stagehand in v3-example.ts and v3-agent.ts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gpt-4o→gpt-4.1andgpt-4o-mini→gpt-4.1-miniin custom client examplesV3imports/usage withStagehandinv3-example.tsandv3-agent.tsfor consistencyAddresses review comments on browserbase#1964.
Test plan
Stagehandis exported as an alias forV3in the index)🤖 Generated with Claude Code