Skip to content

Commit 1548d1c

Browse files
committed
change all modelnames
1 parent c62b928 commit 1548d1c

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ The Browserbase MCP server accepts the following command-line flags:
226226
| `--cookies [json]` | JSON array of cookies to inject into the browser |
227227
| `--browserWidth <width>` | Browser viewport width (default: 1024) |
228228
| `--browserHeight <height>` | Browser viewport height (default: 768) |
229-
| `--modelName <model>` | The model to use for Stagehand (default: google/gemini-2.0-flash) |
229+
| `--modelName <model>` | The model to use for Stagehand (default: gemini-2.0-flash) |
230230
| `--modelApiKey <key>` | API key for the custom model provider (required when using custom models) |
231231

232232
These flags can be passed directly to the CLI or configured in your MCP configuration file.
@@ -411,7 +411,7 @@ For Claude models:
411411

412412
Available models include:
413413

414-
- **Gemini**: `google/gemini-2.0-flash` (default), `google/gemini-1.5-pro`, `google/gemini-1.5-flash`
414+
- **Gemini**: `gemini-2.0-flash` (default), `gemini-1.5-pro`, `gemini-1.5-flash`
415415
- **OpenAI**: `gpt-4o`, `gpt-4o-mini`, `o1-mini`, `o1-preview`, `o3-mini`
416416
- **Claude**: `claude-3-5-sonnet-latest`, `claude-3-7-sonnet-latest`
417417
- **Other providers**: Cerebras, Groq, and more

config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ export type Config = {
9090
* The Model that Stagehand uses
9191
* Available models: OpenAI, Claude, Gemini, Cerebras, Groq, and other providers
9292
*
93-
* @default "google/gemini-2.0-flash"
93+
* @default "gemini-2.0-flash"
9494
*/
9595
modelName?: AvailableModelSchema;
9696
/**
9797
* API key for the custom model provider
98-
* Required when using a model other than the default google/gemini-2.0-flash
98+
* Required when using a model other than the default gemini-2.0-flash
9999
*/
100100
modelApiKey?: string;
101101
};

src/index.ts

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

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const createStagehandInstance = async (
2727
projectId,
2828
modelName: (params.modelName ||
2929
config.modelName ||
30-
"google/gemini-2.0-flash") as AvailableModel,
30+
"gemini-2.0-flash") as AvailableModel,
3131
modelClientOptions: {
3232
apiKey: config.modelApiKey || process.env.GEMINI_API_KEY,
3333
},

src/transport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ 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 = config.modelApiKey || process.env.GEMINI_API_KEY;
1818

19-
if (modelName.includes("google/gemini") && !hasModelApiKey) {
19+
if (modelName.includes("gemini") && !hasModelApiKey) {
2020
console.error(`
2121
⚠️ IMPORTANT: MCP Server Configuration Update Required
2222

0 commit comments

Comments
 (0)