Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/types/src/providers/cerebras.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@ import type { ModelInfo } from "../model.js"
// https://inference-docs.cerebras.ai/api-reference/chat-completions
export type CerebrasModelId = keyof typeof cerebrasModels

export const cerebrasDefaultModelId: CerebrasModelId = "qwen-3-coder-480b-free"
export const cerebrasDefaultModelId: CerebrasModelId = "zai-glm-4.6"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting this unreleased model as the default will break the Cerebras provider for all users until November 5th. According to the PR description, zai-glm-4.6 becomes available on November 5th, but this PR is being merged on October 29th. Users who select Cerebras as their provider will encounter API errors for approximately one week because the default model doesn't exist yet. Consider keeping qwen-3-coder-480b-free as the default until the new model is actually available on the platform.


export const cerebrasModels = {
"zai-glm-4.6": {
maxTokens: 40000,
contextWindow: 128000,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 0,
outputPrice: 0,
description: "Highly intelligent general-purpose model with ~2000 tokens/s",
},
"qwen-3-coder-480b-free": {
maxTokens: 40000,
contextWindow: 64000,
Expand Down
Loading