AgentSkillsCN

groq

借助Groq AI的快速推理能力,实现Groq驱动的AI功能。当您需要以高速推理的方式部署Groq赋能的AI功能时,此工具将为您带来显著优势。

SKILL.md
--- frontmatter
name: groq
description: Groq AI integration for fast LLM inference. Use when implementing Groq-powered AI features with fast inference.

Groq Integration

Groq provides fast LLM inference.

Guidelines

  • The Groq integration uses the GROQ_API_KEY environment variable.
  • The Groq integration should ONLY be used if specifically requested by the user.
  • Otherwise, use the Vercel AI Gateway and AI SDK so the user does not need to configure anything.

Environment Variables

  • GROQ_API_KEY - Groq API key

Example Usage

typescript
import { generateText } from 'ai'
import { createGroq } from '@ai-sdk/groq'

const groq = createGroq({
  apiKey: process.env.GROQ_API_KEY,
})

const { text } = await generateText({
  model: groq('llama-3.3-70b-versatile'),
  prompt: 'What is the meaning of life?',
})