AIConfig constructor

const AIConfig({
  1. required String apiKey,
  2. required String model,
  3. int? maxTokens,
  4. double? temperature,
  5. double? topP,
  6. String? baseUrl,
  7. Duration timeout = const Duration(seconds: 30),
  8. String? systemPrompt,
  9. Map<String, dynamic>? extraParams,
  10. int? maxAttachmentBytes = kDefaultMaxAttachmentBytes,
})

Implementation

const AIConfig({
  required this.apiKey,
  required this.model,
  this.maxTokens,
  this.temperature,
  this.topP,
  this.baseUrl,
  this.timeout = const Duration(seconds: 30),
  this.systemPrompt,
  this.extraParams,
  this.maxAttachmentBytes = kDefaultMaxAttachmentBytes,
});