Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,13 @@ Note, this will use more tokens as it generates more results.
Default: `gemini-2.5-flash`

The Gemini model to use. Supported models include:
- `gemini-3.1-pro-preview` - Gemini 3.1 Pro Preview (State-of-the-art)
- `gemini-3.1-flash-lite-preview` - Gemini 3.1 Flash Lite Preview (High-volume)
- `gemini-3-flash-preview` - Gemini 3 Flash Preview (Fast and capable)
- `gemini-2.5-flash` (default) - Fast and efficient
- `gemini-2.5-pro` - More capable but slower
- `gemini-1.5-flash` - Previous generation fast model
- `gemini-1.5-pro` - Previous generation capable model

> Tip: `gemini-2.5-pro` provides more sophisticated code analysis but may be slower and more expensive than `gemini-2.5-flash`.
> Tip: `gemini-3.1-pro-preview` provides state-of-the-art reasoning but may be slower than Flash models.

#### timeout

Expand Down
7 changes: 4 additions & 3 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ const configParsers = {

// Validate that it's a supported Gemini model
const supportedModels = [
'gemini-3.1-pro-preview',
'gemini-3.1-flash-lite-preview',
'gemini-3-flash-preview',
'gemini-2.5-flash',
'gemini-2.5-pro',
'gemini-1.5-flash',
'gemini-1.5-pro'
'gemini-2.5-pro'
];

if (!supportedModels.includes(model)) {
Expand Down
5 changes: 5 additions & 0 deletions src/utils/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@
]
}
],
config: {

Check failure on line 54 in src/utils/gemini.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

Type '{ thinkingConfig?: { thinkingBudget: number; } | { thinkingLevel: "low" | "minimal"; } | undefined; systemInstruction: string; temperature: number; topP: number; maxOutputTokens: number; candidateCount: number; }' is not assignable to type 'GenerateContentConfig'.
...generationConfig,
systemInstruction,
...(model.includes('2.5') && model.toLowerCase().includes('flash') ? { thinkingConfig: { thinkingBudget: 0 } } : {}),
...(model.startsWith('gemini-3') ? {
thinkingConfig: {
thinkingLevel: model.includes('pro') ? 'low' : 'minimal'
}
} : {}),
}
});

Expand Down
Loading