Gemini constructor

Gemini({
  1. required String apiKey,
  2. String model = 'gemini-2.5-flash-lite',
  3. int? temperature,
  4. int? maxOutputTokens,
  5. int? topP,
  6. int? topK,
  7. int? stopSequences,
})

Implementation

Gemini({
  required this.apiKey,
  this.model = 'gemini-2.5-flash-lite',
  this.temperature,
  this.maxOutputTokens,
  this.topP,
  this.topK,
  this.stopSequences,
}) : url =
         'https://generativelanguage.googleapis.com/v1beta/models/$model:generateContent?key=$apiKey';