🩹 fix(nutriphi): update Gemini model from expired gemini-2.0-flash-exp to gemini-2.5-flash

The experimental model gemini-2.0-flash-exp no longer exists. Updated to
the stable gemini-2.5-flash model.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-14 12:06:40 +01:00
parent a4ef703761
commit c221f92da2

View file

@ -85,8 +85,8 @@ export class GeminiService implements OnModuleInit {
const apiKey = this.configService.get<string>('GEMINI_API_KEY');
if (apiKey) {
const genAI = new GoogleGenerativeAI(apiKey);
// Use Gemini 2.0 Flash - fast and cost-effective
this.model = genAI.getGenerativeModel({ model: 'gemini-2.0-flash-exp' });
// Use Gemini 2.5 Flash - fast and cost-effective
this.model = genAI.getGenerativeModel({ model: 'gemini-2.5-flash' });
}
}