groq-hello-world

Featured

Create a minimal working Groq chat completion example. Use when starting a new Groq integration, testing your setup, or learning basic Groq API patterns. Trigger with phrases like "groq hello world", "groq example", "groq quick start", "simple groq code".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Groq Hello World ## Overview Build a minimal chat completion with Groq's LPU inference API. Groq uses an OpenAI-compatible endpoint, so the API shape is familiar -- but responses arrive 10-50x faster than GPU-based providers. ## Prerequisites - `groq-sdk` installed (`npm install groq-sdk`) - `GROQ_API_KEY` environment variable set - Completed `groq-install-auth` setup ## Instructions ### Step 1: Basic Chat Completion (TypeScript) ```typescript import Groq from "groq-sdk"; const groq = new Groq(); async function main() { const completion = await groq.chat.completions.create({ model: "llama-3.3-70b-versatile", messages: [ { role: "system", content: "You are a helpful assistant." }, { role: "user", content: "What is Groq's LPU and why is it fast?" }, ], }); console.log(completion.choices[0].message.content); console.log(`Tokens: ${completion.usage?.total_tokens}`); } main().catch(console.error); ``` ### Step 2: Streaming Response ```typescript async function streamExample() { const stream = await groq.chat.completions.create({ model: "llama-3.3-70b-versatile", messages: [ { role: "user", content: "Explain quantum computing in 3 sentences." }, ], stream: true, }); for await (const chunk of stream) { const content = chunk.choices[0]?.delta?.content || ""; process.stdout.write(content); } console.log(); // newline } ``` ### Step 3: Python Equivalent ```python from groq import Groq client = Groq() ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

groq-core-workflow-a

Execute Groq primary workflow: chat completions with tool use and JSON mode. Use when implementing chat interfaces, function calling, structured output, or building AI features with Groq's fast inference. Trigger with phrases like "groq chat completion", "groq tool use", "groq function calling", "groq JSON mode".

2,266 Updated today
jeremylongshore
AI & Automation Featured

groq-sdk-patterns

Apply production-ready Groq SDK patterns for TypeScript and Python. Use when implementing Groq integrations, refactoring SDK usage, or establishing team coding standards for Groq. Trigger with phrases like "groq SDK patterns", "groq best practices", "groq code patterns", "idiomatic groq".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-hello-world

Create a minimal working Mistral AI chat completion example. Use when starting a new Mistral integration, testing your setup, or learning basic Mistral API patterns. Trigger with phrases like "mistral hello world", "mistral example", "mistral quick start", "simple mistral code", "mistral chat".

2,266 Updated today
jeremylongshore
AI & Automation Featured

groq-install-auth

Install and configure Groq SDK authentication for TypeScript or Python. Use when setting up a new Groq integration, configuring API keys, or initializing the groq-sdk in your project. Trigger with phrases like "install groq", "setup groq", "groq auth", "configure groq API key".

2,266 Updated today
jeremylongshore
AI & Automation Listed

groqcloud-automation

Automate AI inference, chat completions, audio translation, and TTS voice management through GroqCloud's high-performance API via Composio

62,564 Updated 1 weeks ago
ComposioHQ