Skip to content

Commit 7382514

Browse files
authored
docs(site): update gemini example (#811)
1 parent a3fa0e2 commit 7382514

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

apps/site/docs/en/choose-a-model.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ After applying for the API key on [Google Gemini](https://gemini.google.com/), y
4242
```bash
4343
OPENAI_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
4444
OPENAI_API_KEY="......"
45-
MIDSCENE_MODEL_NAME="gemini-2.5-pro-preview-03-25"
45+
MIDSCENE_MODEL_NAME="gemini-2.5-pro-preview-05-06"
4646
MIDSCENE_USE_GEMINI=1
4747
```
4848

@@ -165,8 +165,8 @@ When using Gemini-2.5-Pro, you should use the `MIDSCENE_USE_GEMINI=1` config to
165165

166166
```bash
167167
OPENAI_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
168-
OPENAI_API_KEY="......"
169-
MIDSCENE_MODEL_NAME="gemini-2.5-pro"
168+
OPENAI_API_KEY="...."
169+
MIDSCENE_MODEL_NAME="gemini-2.5-pro-preview-05-06"
170170
MIDSCENE_USE_GEMINI=1
171171
```
172172

apps/site/docs/zh/choose-a-model.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ MIDSCENE_USE_VLM_UI_TARS=DOUBAO
6464
```bash
6565
OPENAI_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
6666
OPENAI_API_KEY="...."
67-
MIDSCENE_MODEL_NAME="gemini-2.5-pro-preview-03-25"
67+
MIDSCENE_MODEL_NAME="gemini-2.5-pro-preview-05-06"
6868
MIDSCENE_USE_GEMINI=1
6969
```
7070

@@ -228,9 +228,9 @@ Midscene.js 从 v0.15.1 版本开始支持 Gemini-2.5-Pro 模型。
228228
**配置**
229229

230230
```bash
231-
OPENAI_BASE_URL="https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro:generateContent?key=......"
232-
OPENAI_API_KEY="......"
233-
MIDSCENE_MODEL_NAME="gemini-2.5-pro"
231+
OPENAI_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
232+
OPENAI_API_KEY="...."
233+
MIDSCENE_MODEL_NAME="gemini-2.5-pro-preview-05-06"
234234
MIDSCENE_USE_GEMINI=1
235235
```
236236

0 commit comments

Comments
 (0)