groqu
One of the worst Groq SDKs you can find out there.
use Groq;
// Put your token here
let groq = new;
// Create a new chat completion
let compl = groq.create_chat_completion.await?;
// Get the last completion choice
let choice = compl.get_choice;
let message = choice.message;
// Then get the text from the message
let text = message.content.get_text;
// Alternatively:
// let choice = &compl["choices"][0];
// let message = &choice.message;
// let text = message.content.get_text_as_str();
(c) AWeirdDev 2025