groq
@providerprotocol/ai / groq
Groq provider for UPP (Unified Provider Protocol)
This module exports the Groq provider for use with Llama, Gemma, and other models available through Groq’s inference platform.
Example
Section titled “Example”import { groq } from '@providerprotocol/ai/groq';import { llm } from '@providerprotocol/ai';
// Create an LLM instance with Llamaconst model = llm({ model: groq('llama-3.3-70b-versatile'), params: { max_tokens: 1000 }});
// Generate a responseconst turn = await model.generate('What is the meaning of life?');console.log(turn.response.text);Interfaces
Section titled “Interfaces”- GroqCitationOptions
- GroqDocument
- GroqHeaders
- GroqLLMParams
- GroqProviderOptions
- GroqRequest
- GroqResponse
- GroqSearchSettings
- GroqStreamChunk
- GroqTool
- GroqToolCall
- GroqUsage