groq-multi-env-setup
Installation
SKILL.md
Groq Multi-Environment Setup
Overview
Configure Groq API access across development, staging, and production with the right model, rate limit strategy, and secret management per environment. Key insight: use llama-3.1-8b-instant in development (cheapest, fastest), match production model in staging, and harden production with retries and fallbacks.
Environment Strategy
| Environment | API Key Source | Default Model | Retry | Logging |
|---|---|---|---|---|
| Development | .env.local |
llama-3.1-8b-instant |
1 | Verbose |
| Staging | CI/CD secrets | llama-3.3-70b-versatile |
3 | Standard |
| Production | Secret manager | llama-3.3-70b-versatile |
5 | Structured |
Instructions
Step 1: Configuration Module
// config/groq.ts
import Groq from "groq-sdk";