Skip to content

Commit 35c55eb

Browse files
tkattkatmiguelg719
andauthored
add google gemini 2.5 to supported models (#675)
* add google gemini 2.5 to supported models * Update .changeset/solid-rice-admire.md Co-authored-by: Miguel <[email protected]> * Update examples/form_filling_sensible.ts Co-authored-by: Miguel <[email protected]> --------- Co-authored-by: Miguel <[email protected]>
1 parent 8814af9 commit 35c55eb

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.changeset/solid-rice-admire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": minor
3+
---
4+
5+
Added Gemini 2.5 Flash to Google supported models

lib/llm/LLMProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const modelToProviderMap: { [key in AvailableModel]: ModelProvider } = {
3838
"gemini-1.5-flash-8b": "google",
3939
"gemini-2.0-flash-lite": "google",
4040
"gemini-2.0-flash": "google",
41+
"gemini-2.5-flash-preview-04-17": "google",
4142
"gemini-2.5-pro-preview-03-25": "google",
4243
};
4344

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ai-sdk-client": "npm run build && tsx examples/ai_sdk_example.ts",
1919
"actionable_observe_example": "npm run build && tsx examples/actionable_observe_example.ts",
2020
"form-filling-sensible-cerebras": "npm run build && tsx examples/form_filling_sensible_cerebras.ts",
21-
"form-filling-sensible-openai": "npm run build && tsx examples/form_filling_sensible_openai.ts",
21+
"form-filling-sensible": "npm run build && tsx examples/form_filling_sensible.ts",
2222
"google-enter": "npm run build && tsx examples/google_enter.ts",
2323
"try-wordle": "npm run build && tsx examples/try_wordle.ts",
2424
"format": "prettier --write .",

types/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const AvailableModelSchema = z.enum([
2424
"gemini-1.5-flash-8b",
2525
"gemini-2.0-flash-lite",
2626
"gemini-2.0-flash",
27+
"gemini-2.5-flash-preview-04-17",
2728
"gemini-2.5-pro-preview-03-25",
2829
]);
2930

0 commit comments

Comments
 (0)