Skip to content

Commit 3290b58

Browse files
committed
change all modelnames to just gemini
1 parent da0c436 commit 3290b58

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ The Browserbase MCP server accepts the following command-line flags:
147147
| `--cookies [json]` | JSON array of cookies to inject into the browser |
148148
| `--browserWidth <width>` | Browser viewport width (default: 1024) |
149149
| `--browserHeight <height>` | Browser viewport height (default: 768) |
150-
| `--modelName <model>` | The model to use for Stagehand (default: google/gemini-2.0-flash) |
150+
| `--modelName <model>` | The model to use for Stagehand (default: gemini-2.0-flash) |
151151
| `--modelApiKey <key>` | API key for the custom model provider (required when using custom models) |
152152
| `--experimental` | Enable experimental features (default: false) |
153153

config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ export type Config = {
9696
* The Model that Stagehand uses
9797
* Available models: OpenAI, Claude, Gemini, Cerebras, Groq, and other providers
9898
*
99-
* @default "google/gemini-2.0-flash"
99+
* @default "gemini-2.0-flash"
100100
*/
101101
modelName?: AvailableModelSchema;
102102
/**
103103
* API key for the custom model provider
104-
* Required when using a model other than the default google/gemini-2.0-flash
104+
* Required when using a model other than the default gemini-2.0-flash
105105
*/
106106
modelApiKey?: string;
107107
/**

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const defaultConfig: Config = {
3535
browserHeight: 768,
3636
},
3737
cookies: undefined,
38-
modelName: "google/gemini-2.0-flash", // Default Model
38+
modelName: "gemini-2.0-flash", // Default Model
3939
};
4040

4141
// Resolve final configuration by merging defaults, file config, and CLI options

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ export const configSchema = z
9595
})
9696
.optional(),
9797
modelName: AvailableModelSchema.optional().describe(
98-
"The model to use for Stagehand (default: google/gemini-2.0-flash)",
98+
"The model to use for Stagehand (default: gemini-2.0-flash)",
9999
), // Already an existing Zod Enum
100100
modelApiKey: z
101101
.string()
102102
.optional()
103103
.describe(
104-
"API key for the custom model provider. Required when using a model other than the default google/gemini-2.0-flash",
104+
"API key for the custom model provider. Required when using a model other than the default gemini-2.0-flash",
105105
),
106106
experimental: z
107107
.boolean()

src/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ program
5959
.option("--browserHeight <height>", "Browser height to use for the browser.")
6060
.option(
6161
"--modelName <model>",
62-
"The model to use for Stagehand (default: google/gemini-2.0-flash)",
62+
"The model to use for Stagehand (default: gemini-2.0-flash)",
6363
)
6464
.option(
6565
"--modelApiKey <key>",

src/stagehandStore.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export const createStagehandInstance = async (
2626
env: "BROWSERBASE",
2727
apiKey,
2828
projectId,
29-
modelName:
30-
params.modelName || config.modelName || "google/gemini-2.0-flash",
29+
modelName: params.modelName || config.modelName || "gemini-2.0-flash",
3130
modelClientOptions: {
3231
apiKey:
3332
config.modelApiKey ||

src/transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function startStdioTransport(
1313
) {
1414
// Check if we're using the default model without an API key
1515
if (config) {
16-
const modelName = config.modelName || "google/gemini-2.0-flash";
16+
const modelName = config.modelName || "gemini-2.0-flash";
1717
const hasModelApiKey =
1818
config.modelApiKey ||
1919
process.env.GEMINI_API_KEY ||

0 commit comments

Comments
 (0)