GroqApi class
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
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, required bool expectJSON})
→ 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, required Map<String, String> optionalParameters})
→ Future<(GroqAudioResponse, 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, GroqRateLimitInformation)>
-
Translates the audio file at the given file path to text