Groq constructor

Groq(
  1. String apiKey
)

Creates a new Groq instance
apiKey is the API key to use the Groq API
You can communicate with the Groq API via a Chat instance
Example:

final groq = Groq('EXAMPLE_API_KEY');
final chat = groq.startNewChat(llama3_8b); //use a model id, provided by Groq
final (response, resourceUsage) = await chat.sendMessage('YOUR_MESSAGE');

Implementation

Groq(this.apiKey);