Skip to content

Interface: CerebrasLLMParams

@providerprotocol/ai


@providerprotocol/ai / cerebras / 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.

const params: CerebrasLLMParams = {
temperature: 0.7,
max_completion_tokens: 1000,
top_p: 0.9
};

optional clear_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.


optional logprobs: boolean

Defined in: src/providers/cerebras/types.ts:96

Whether to return log probabilities of output tokens


optional max_completion_tokens: number

Defined in: src/providers/cerebras/types.ts:27

Maximum number of tokens to generate


optional parallel_tool_calls: boolean

Defined in: src/providers/cerebras/types.ts:69

Whether to enable parallel tool calls (default: true)


optional prediction: 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: string

type: "content"


optional queue_threshold: number

Defined in: src/providers/cerebras/types.ts:81

Maximum queue time in ms (50-20000)


optional reasoning_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.


optional reasoning_format: "none" | "parsed" | "raw" | "hidden"

Defined in: src/providers/cerebras/types.ts:60

How reasoning text appears in the response.

  • parsed: Thinking in separate reasoning field
  • raw: Thinking with <think>...</think> tags in content
  • hidden: Thinking removed but counted in tokens
  • none: Model’s default behavior

optional response_format: CerebrasResponseFormat

Defined in: src/providers/cerebras/types.ts:45

Response format for structured output


optional seed: number

Defined in: src/providers/cerebras/types.ts:39

Seed for deterministic sampling


optional service_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 workloads
  • auto: Dynamic prioritization
  • flex: Lowest priority, overflow/experimental

optional stop: string[]

Defined in: src/providers/cerebras/types.ts:36

Custom stop sequences (max 4)


optional temperature: number

Defined in: src/providers/cerebras/types.ts:30

Temperature for randomness (0 to 1.5, default: 1.0)


optional tool_choice: CerebrasToolChoice

Defined in: src/providers/cerebras/types.ts:93

Tool choice configuration


optional top_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.


optional top_p: number

Defined in: src/providers/cerebras/types.ts:33

Top-p (nucleus) sampling (0.0 - 1.0)


optional user: string

Defined in: src/providers/cerebras/types.ts:42

User identifier for tracking