GoogleConfig constructor

const GoogleConfig({
  1. required String apiKey,
  2. String baseUrl = 'https://generativelanguage.googleapis.com/v1beta/',
  3. String model = 'gemini-1.5-flash',
  4. int? maxTokens,
  5. double? temperature,
  6. String? systemPrompt,
  7. Duration? timeout,
  8. bool stream = false,
  9. double? topP,
  10. int? topK,
  11. List<Tool>? tools,
  12. ToolChoice? toolChoice,
  13. StructuredOutputFormat? jsonSchema,
  14. ReasoningEffort? reasoningEffort,
  15. int? thinkingBudgetTokens,
  16. bool? includeThoughts,
  17. bool? enableImageGeneration,
  18. List<String>? responseModalities,
  19. List<SafetySetting>? safetySettings,
  20. int maxInlineDataSize = 20 * 1024 * 1024,
  21. int? candidateCount,
  22. List<String>? stopSequences,
  23. String? embeddingTaskType,
  24. String? embeddingTitle,
  25. int? embeddingDimensions,
  26. LLMConfig? originalConfig,
})

Implementation

const GoogleConfig({
  required this.apiKey,
  this.baseUrl = 'https://generativelanguage.googleapis.com/v1beta/',
  this.model = 'gemini-1.5-flash',
  this.maxTokens,
  this.temperature,
  this.systemPrompt,
  this.timeout,
  this.stream = false,
  this.topP,
  this.topK,
  this.tools,
  this.toolChoice,
  this.jsonSchema,
  this.reasoningEffort,
  this.thinkingBudgetTokens,
  this.includeThoughts,
  this.enableImageGeneration,
  this.responseModalities,
  this.safetySettings,
  this.maxInlineDataSize = 20 * 1024 * 1024, // 20MB default
  this.candidateCount,
  this.stopSequences,
  this.embeddingTaskType,
  this.embeddingTitle,
  this.embeddingDimensions,
  LLMConfig? originalConfig,
}) : _originalConfig = originalConfig;