The GroqCloudChatExample demonstrates how to integrate GroqCloud's LLaMA 3 model into the framework with minimal setup, showcasing its performance and simplicity for interactive chat.
public async Task Start()
{
GroqCloudExample.Setup(); //We need to provide GroqCloud API key
Console.WriteLine("(GroqCloud) ChatExample is running!");
await AIHub.Chat()
.WithModel("llama3-8b-8192")
.WithMessage("Which color do people like the most?")
.CompleteAsync(interactive: true);
}- Set up GroqCloud API β
GroqCloudExample.Setup()(API key is required) - Initialize a chat session β
AIHub.Chat() - Choose a model β
.WithModel("llama3-8b-8192") - Send a message β
.WithMessage("Which color do people like the most?") - Run the chat β
.CompleteAsync(interactive: true);
This example demonstrates how effortlessly GroqCloud's LLAMA 3 model can be integrated into the framework, enabling seamless interactions with just a few lines of code. The simplicity of setup and ease of use makes it ideal for developers looking to integrate powerful AI capabilities with minimal configuration.