Bỏ qua nội dung
GitHub
EN VI

Groq

Groq cung cấp inference LLM cực nhanh với free tier hào phóng.

Setup

Lấy API key tại console.groq.com.

const agent = new Agent({
name: 'my-agent',
model: { provider: 'groq', model: 'llama-3.3-70b-versatile' },
systemPrompt: 'Bạn là trợ lý hữu ích.',
});
Terminal window
npx wrangler secret put GROQ_API_KEY

Models khuyến nghị

ModelContextPhù hợp
llama-3.3-70b-versatile128kĐa dụng (khuyến nghị)
llama-3.1-8b-instant128kNhanh, tác vụ nhẹ
mixtral-8x7b-3276832kLập luận phức tạp