stagehand icon indicating copy to clipboard operation
stagehand copied to clipboard

Support Gemini 2.5 model family with Google GenAI client

Open mcndt opened this issue 2 months ago • 4 comments

why

I want to use the latest Gemini 2.5 models.

what changed

I updated the list of available models and mapping to model provider to include the following models:

  • Gemini 2.5 Flash
  • Gemini 2.5 Flash (September 2025 Preview)
  • Gemini 2.5 Flash Lite
  • Gemini 2.5 Flash Lite (September 2025 Preview)
  • Gemini 2.5 Pro

test plan

Works out of the box with the Google GenAI client.

mcndt avatar Oct 13 '25 14:10 mcndt

🦋 Changeset detected

Latest commit: 1fe80de7342128aee1a29b5a76725294551a78c8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@browserbasehq/stagehand Patch
@browserbasehq/stagehand-evals Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Oct 13 '25 14:10 changeset-bot[bot]

hey @mcndt , thanks for the contrib! Before merging, can you try set the modelName to google/<2.5-family-modelname> and see if it works/supports your config? We're adopting AI SDK more for LLM inference to avoid custom client maintenance

miguelg719 avatar Oct 14 '25 06:10 miguelg719

Rebased this branch on the 3.0.1 release

mcndt avatar Nov 04 '25 08:11 mcndt

@miguelg719 I verified that the model names would indeed be compatible with the AI SDK!

mcndt avatar Nov 04 '25 08:11 mcndt