Skip to content

Commit a89fe98

Browse files
committed
Update to Gemini 2.5 Flash model
- Change default model from gemini-2.5-flash-preview-04-17 to gemini-2.5-flash - Update README.md to reference stable Gemini 2.5 Flash integration - Update environment variable documentation with new default model name Benefits: - Cost reduction: stable Flash model with better pricing - Improved reliability: production-ready vs experimental preview - Better performance: optimized inference - Future-proof: using official stable model name
1 parent e91e732 commit a89fe98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Comprehendo is an AI-powered language learning application designed to help user
5959
- **Tailwind CSS**: Utility-first CSS framework
6060
- **TypeScript**: Strong typing for code quality
6161
- **next-auth**: Authentication (GitHub, Google, Discord)
62-
- **Google Generative AI SDK**: Gemini 2.0 Flash-Lite integration
62+
- **Google Generative AI SDK**: Gemini 2.5 Flash integration
6363
- **SQLite**: `better-sqlite3` for database storage
6464
- **Zod**: Schema validation
6565
- **i18next / react-i18next**: Internationalization
@@ -136,7 +136,7 @@ Comprehendo implements strategies to manage AI API costs:
136136
- Copy `.env.example` to `.env.local`: `cp .env.example .env.local`
137137
- Edit `.env.local` and fill in **all required** API keys and OAuth credentials:
138138
- `GOOGLE_AI_API_KEY` (optional, if using Google AI)
139-
- `GOOGLE_AI_GENERATION_MODEL`: (Optional) The specific Google AI model to use for exercise generation (e.g., `gemini-2.5-flash-preview-04-17`). Defaults to a recommended flash model if not set.
139+
- `GOOGLE_AI_GENERATION_MODEL`: (Optional) The specific Google AI model to use for exercise generation (e.g., `gemini-2.5-flash`). Defaults to `gemini-2.5-flash` if not set.
140140
- `GITHUB_ID`, `GITHUB_SECRET` (optional, if enabling GitHub login)
141141
- `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET` (optional, if enabling Google login)
142142
- `DISCORD_CLIENT_ID`, `DISCORD_CLIENT_SECRET` (optional, if enabling Discord login)

app/lib/ai/google-ai-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const callGoogleAI = async (prompt: string): Promise<unknown> => {
2626
};
2727

2828
try {
29-
const modelName = process.env['GOOGLE_AI_GENERATION_MODEL'] ?? 'gemini-2.5-flash-preview-04-17';
29+
const modelName = process.env['GOOGLE_AI_GENERATION_MODEL'] ?? 'gemini-2.5-flash';
3030
if (!process.env['GOOGLE_AI_GENERATION_MODEL']) {
3131
console.warn(
3232
`[AI] GOOGLE_AI_GENERATION_MODEL environment variable not set. Using default: ${modelName}`

0 commit comments

Comments
 (0)