ChatbotService constructor

ChatbotService({
  1. required String apiKey,
  2. required String systemPrompt,
  3. double temperature = 0.7,
  4. int maxTokens = 4000,
  5. String model = 'gpt-3.5-turbo',
})

Implementation

ChatbotService({
  required this.apiKey,
  required this.systemPrompt,
  this.temperature = 0.7,
  this.maxTokens = 4000, // Default max tokens
  this.model = 'gpt-3.5-turbo', // Default model
});