Skip to content

Commit f565acb

Browse files
authored
Merge pull request #220 from HoChihchou/chore/gemini-default-model-3-flash-preview
chore(gemini): change default model to gemini-3-flash-preview
2 parents 5029953 + 62f1f8f commit f565acb

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ _aicommit2_ offers flexible configuration options for all AI services, including
684684
key="<your-api-key>"
685685
generate=5
686686
includeBody=true
687-
model="gemini-2.5-flash,gemini-2.5-pro"
687+
model="gemini-3-flash-preview,gemini-3.1-pro-preview"
688688
689689
[OLLAMA]
690690
temperature=0.7

docs/providers/compatible.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ compatible=true
4545
key=<your-api-key>
4646
url=https://generativelanguage.googleapis.com
4747
path=/v1beta/openai/
48-
model=gemini-1.5-flash
48+
model=gemini-3-flash-preview
4949

5050
[OLLAMA_COMPATIBILITY]
5151
compatible=true

docs/providers/gemini.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
```sh
1515
aicommit2 config set GEMINI.key="your-api-key"
16-
aicommit2 config set GEMINI.model="gemini-2.5-flash"
16+
aicommit2 config set GEMINI.model="gemini-3-flash-preview"
1717
```
1818

1919
### Advanced Setup
2020

2121
```sh
2222
aicommit2 config set GEMINI.key="your-api-key" \
23-
GEMINI.model="gemini-2.5-flash" \
23+
GEMINI.model="gemini-3-flash-preview" \
2424
GEMINI.temperature=0.7 \
2525
GEMINI.maxTokens=4000 \
2626
GEMINI.locale="en" \
@@ -33,7 +33,7 @@ aicommit2 config set GEMINI.key="your-api-key" \
3333
| Setting | Description | Default |
3434
| ------- | ------------ | ------------------ |
3535
| `key` | API key | - |
36-
| `model` | Model to use | `gemini-2.5-flash` |
36+
| `model` | Model to use | `gemini-3-flash-preview` |
3737

3838
## Configuration
3939

@@ -47,20 +47,20 @@ aicommit2 config set GEMINI.key="your api key"
4747

4848
#### GEMINI.model
4949

50-
Default: `gemini-2.5-flash`
50+
Default: `gemini-3-flash-preview`
5151

5252
You can use any Gemini model name. The system no longer validates specific model names, allowing you to use new models as soon as they become available.
5353

5454
Popular models include:
5555

56-
- `gemini-2.5-flash` (default), `gemini-2.5-pro` (latest generation)
56+
- `gemini-3-flash-preview` (default), `gemini-3.1-pro-preview` (latest generation)
5757
- `gemini-2.0-flash`, `gemini-2.0-flash-lite` (previous generation)
58-
- `gemini-1.5-pro`, `gemini-1.5-flash` (legacy)
58+
- `gemini-2.5-pro`, `gemini-2.5-flash` (legacy)
5959

6060
For the most up-to-date list of available models, please check [Google AI Studio](https://aistudio.google.com/).
6161

6262
```sh
63-
aicommit2 config set GEMINI.model="gemini-2.5-flash"
63+
aicommit2 config set GEMINI.model="gemini-3-flash-preview"
6464
```
6565

6666
#### Unsupported Options

src/utils/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ const modelConfigParsers: Record<ModelName, Record<string, (value: any) => any>>
373373
envKey: (envKey?: string) => envKey || '',
374374
model: (model?: string | string[]): string[] => {
375375
if (!model) {
376-
return ['gemini-2.5-flash'];
376+
return ['gemini-3-flash-preview'];
377377
}
378378
const modelList = typeof model === 'string' ? model?.split(',') : model;
379379
return modelList.map(m => m.trim()).filter(m => !!m && m.length > 0);

0 commit comments

Comments
 (0)