AIConfig constructor
const
AIConfig({ - required String apiKey,
- required String model,
- int? maxTokens,
- double? temperature,
- double? topP,
- String? baseUrl,
- Duration timeout = const Duration(seconds: 30),
- String? systemPrompt,
- 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,
});