groq-multi-env-setup

Featured

Configure Groq across dev, staging, and production with environment-specific model selection, rate limits, and API keys. Trigger with phrases like "groq environments", "groq staging", "groq dev prod", "groq environment setup", "groq multi-env", "groq config by env".

AI & Automation 2,926 stars 433 forks Updated yesterday 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 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 ```typescript // config/groq.ts import Groq from "groq-sdk"; interface GroqEnvConfig { apiKey: string; model: string; maxTokens: number; temperature: number; maxRetries: number; timeout: number; logRequests: boolean; } const configs: Record<string, GroqEnvConfig> = { development: { apiKey: process.env.GROQ_API_KEY || "", model: "llama-3.1-8b-instant", // Cheapest, fastest for iteration maxTokens: 512, temperature: 0.7, maxRetries: 1, timeout: 15_000, logRequests: true, // Verbose in dev }, staging: { apiKey: process.env.GROQ_API_KEY_STAGING || process.env.GROQ_API_KEY || "", model: "llama-3.3-70b-versatile", // Match pro...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category