GroqApi class

Constructors

GroqApi()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getModel(String modelId, String apiKey) Future<GroqLLMModel>
Returns the model metadata from groq with the given model id
getNewChatCompletion({required String apiKey, required GroqMessage prompt, required GroqChat chat}) Future<(GroqResponse, GroqUsage, GroqRateLimitInformation)>
Returns a new chat instance with the given model id
listModels(String apiKey) Future<List<GroqLLMModel>>
Returns a list of all model metadatas available in Groq
transcribeAudio({required String apiKey, required String filePath, required String modelId}) Future<(GroqAudioResponse, GroqUsage, GroqRateLimitInformation)>
transcribes the audio file at the given path using the model with the given model id
translateAudio({required String apiKey, required String filePath, required String modelId, required double temperature}) Future<(GroqAudioResponse, GroqUsage, GroqRateLimitInformation)>
Translates the audio file at the given file path to text