Interface: CerebrasLLMParams
@providerprotocol/ai / cerebras / CerebrasLLMParams
Interface: CerebrasLLMParams
Section titled “Interface: CerebrasLLMParams”Defined in: src/providers/cerebras/types.ts:25
Parameters for the Cerebras Chat Completions API.
These parameters are passed directly to the /v1/chat/completions endpoint.
Cerebras’s API is OpenAI-compatible with additional features like reasoning.
Example
Section titled “Example”const params: CerebrasLLMParams = { temperature: 0.7, max_completion_tokens: 1000, top_p: 0.9};Properties
Section titled “Properties”clear_thinking?
Section titled “clear_thinking?”
optionalclear_thinking:boolean
Defined in: src/providers/cerebras/types.ts:66
Whether to clear thinking content for zai-glm-4.7 model. When true, removes thinking content from the response.
logprobs?
Section titled “logprobs?”
optionallogprobs:boolean
Defined in: src/providers/cerebras/types.ts:96
Whether to return log probabilities of output tokens
max_completion_tokens?
Section titled “max_completion_tokens?”
optionalmax_completion_tokens:number
Defined in: src/providers/cerebras/types.ts:27
Maximum number of tokens to generate
parallel_tool_calls?
Section titled “parallel_tool_calls?”
optionalparallel_tool_calls:boolean
Defined in: src/providers/cerebras/types.ts:69
Whether to enable parallel tool calls (default: true)
prediction?
Section titled “prediction?”
optionalprediction:object
Defined in: src/providers/cerebras/types.ts:87
Predicted output for latency reduction. Only supported on gpt-oss-120b and zai-glm-4.7.
content
Section titled “content”content:
string
type:
"content"
queue_threshold?
Section titled “queue_threshold?”
optionalqueue_threshold:number
Defined in: src/providers/cerebras/types.ts:81
Maximum queue time in ms (50-20000)
reasoning_effort?
Section titled “reasoning_effort?”
optionalreasoning_effort:"low"|"medium"|"high"
Defined in: src/providers/cerebras/types.ts:51
Reasoning intensity for gpt-oss-120b model. Controls how much reasoning/thinking the model does.
reasoning_format?
Section titled “reasoning_format?”
optionalreasoning_format:"none"|"parsed"|"raw"|"hidden"
Defined in: src/providers/cerebras/types.ts:60
How reasoning text appears in the response.
parsed: Thinking in separatereasoningfieldraw: Thinking with<think>...</think>tags in contenthidden: Thinking removed but counted in tokensnone: Model’s default behavior
response_format?
Section titled “response_format?”
optionalresponse_format:CerebrasResponseFormat
Defined in: src/providers/cerebras/types.ts:45
Response format for structured output
optionalseed:number
Defined in: src/providers/cerebras/types.ts:39
Seed for deterministic sampling
service_tier?
Section titled “service_tier?”
optionalservice_tier:"default"|"priority"|"auto"|"flex"
Defined in: src/providers/cerebras/types.ts:78
Service tier selection for request prioritization.
priority: Highest priority (dedicated endpoints only)default: Standard production workloadsauto: Dynamic prioritizationflex: Lowest priority, overflow/experimental
optionalstop:string[]
Defined in: src/providers/cerebras/types.ts:36
Custom stop sequences (max 4)
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: src/providers/cerebras/types.ts:30
Temperature for randomness (0 to 1.5, default: 1.0)
tool_choice?
Section titled “tool_choice?”
optionaltool_choice:CerebrasToolChoice
Defined in: src/providers/cerebras/types.ts:93
Tool choice configuration
top_logprobs?
Section titled “top_logprobs?”
optionaltop_logprobs:number
Defined in: src/providers/cerebras/types.ts:99
Number of most likely tokens to return at each position (0-20). Requires logprobs=true.
top_p?
Section titled “top_p?”
optionaltop_p:number
Defined in: src/providers/cerebras/types.ts:33
Top-p (nucleus) sampling (0.0 - 1.0)
optionaluser:string
Defined in: src/providers/cerebras/types.ts:42
User identifier for tracking