GroqService constructor

GroqService({
  1. required String apiKey,
  2. String model = 'mixtral-8x7b-32768',
  3. double temperature = 0.7,
  4. int maxTokens = 1024,
  5. String baseUrl = 'https://api.groq.com/openai/v1/chat/completions',
})

Implementation

GroqService({
  required this.apiKey,
  this.model = 'mixtral-8x7b-32768', // or 'llama2-70b-4096', 'gemma-7b-it'
  this.temperature = 0.7,
  this.maxTokens = 1024,
  this.baseUrl = 'https://api.groq.com/openai/v1/chat/completions',
});