cerebras
@providerprotocol/ai / cerebras
cerebras
Section titled “cerebras”Cerebras provider for UPP (Unified Provider Protocol)
This module exports the Cerebras provider for use with Llama, Qwen, GPT-OSS, and other models available through Cerebras’s ultra-fast inference platform.
Examples
Section titled “Examples”import { cerebras } from '@providerprotocol/ai/cerebras';import { llm } from '@providerprotocol/ai';
// Create an LLM instance with Llamaconst model = llm({ model: cerebras('llama-3.3-70b'), params: { max_completion_tokens: 1000 }});
// Generate a responseconst turn = await model.generate('What is the meaning of life?');console.log(turn.response.text);// Use GPT-OSS with reasoning supportconst model = llm({ model: cerebras('gpt-oss-120b'), params: { reasoning_effort: 'high', reasoning_format: 'parsed' }});
const turn = await model.generate('Solve this complex problem...');// Reasoning available in turn.response.metadata.cerebras.reasoningInterfaces
Section titled “Interfaces”- CerebrasHeaders
- CerebrasLLMParams
- CerebrasProviderOptions
- CerebrasRequest
- CerebrasResponse
- CerebrasStreamChunk
- CerebrasTimeInfo
- CerebrasTool
- CerebrasToolCall
- CerebrasUsage