GeminiService constructor

GeminiService()

Implementation

GeminiService() {
  final apiKey = dotenv.env['GEMINI_API_KEY'];
  if (apiKey == null || apiKey.isEmpty) {
    throw Exception('Gemini API key is missing or empty');
  }
  _model = GenerativeModel(model: 'gemini-1.5-flash', apiKey: apiKey);
}