@ai-sdk/cerebras 3.0.29 → 3.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @ai-sdk/cerebras
2
2
 
3
+ ## 3.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [86892f3]
8
+ - @ai-sdk/openai-compatible@3.0.31
9
+
10
+ ## 3.0.30
11
+
12
+ ### Patch Changes
13
+
14
+ - f563df6: Update Cerebras model ID autocomplete and package documentation to the current public model catalog.
15
+ - Updated dependencies [7fbfc6d]
16
+ - @ai-sdk/provider-utils@5.0.27
17
+ - @ai-sdk/openai-compatible@3.0.30
18
+
3
19
  ## 3.0.29
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -40,7 +40,7 @@ import { cerebras } from '@ai-sdk/cerebras';
40
40
  import { generateText } from 'ai';
41
41
 
42
42
  const { text } = await generateText({
43
- model: cerebras('llama-3.3-70b'),
43
+ model: cerebras('gpt-oss-120b'),
44
44
  prompt: 'Write a JavaScript function that sorts a list:',
45
45
  });
46
46
  ```
@@ -51,5 +51,3 @@ For more information about Cerebras' high-speed inference capabilities and API d
51
51
 
52
52
  - [Cerebras Inference Documentation](https://inference-docs.cerebras.ai/introduction)
53
53
  - [Cerebras Website](https://cerebras.ai)
54
-
55
- Note: Due to high demand in the early launch phase, context windows are temporarily limited to 8192 tokens in the Free Tier.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ProviderV4, LanguageModelV4 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod/v4';
4
4
 
5
- type CerebrasChatModelId = 'llama3.1-8b' | 'gpt-oss-120b' | 'qwen-3-235b-a22b-instruct-2507' | 'qwen-3-235b-a22b-thinking-2507' | 'zai-glm-4.6' | 'zai-glm-4.7' | (string & {});
5
+ type CerebrasChatModelId = 'gpt-oss-120b' | 'gemma-4-31b' | 'zai-glm-4.7' | (string & {});
6
6
 
7
7
  declare const cerebrasErrorSchema: z.ZodObject<{
8
8
  message: z.ZodString;
package/dist/index.js CHANGED
@@ -96,7 +96,7 @@ var CerebrasChatLanguageModel = class _CerebrasChatLanguageModel extends OpenAIC
96
96
  import { z } from "zod/v4";
97
97
 
98
98
  // src/version.ts
99
- var VERSION = true ? "3.0.29" : "0.0.0-test";
99
+ var VERSION = true ? "3.0.31" : "0.0.0-test";
100
100
 
101
101
  // src/cerebras-provider.ts
102
102
  var cerebrasErrorSchema = z.object({
@@ -62,7 +62,7 @@ import { cerebras } from '@ai-sdk/cerebras';
62
62
  import { generateText } from 'ai';
63
63
 
64
64
  const { text } = await generateText({
65
- model: cerebras('llama3.1-8b'),
65
+ model: cerebras('gpt-oss-120b'),
66
66
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
67
67
  });
68
68
  ```
@@ -70,22 +70,22 @@ const { text } = await generateText({
70
70
  Cerebras language models can be used in the `streamText` function
71
71
  (see [AI SDK Core](/docs/ai-sdk-core)).
72
72
 
73
- You can create Cerebras language models using a provider instance. The first argument is the model ID, e.g. `llama-3.3-70b`:
73
+ You can create Cerebras language models using a provider instance. The first argument is the model ID, e.g. `gpt-oss-120b`:
74
74
 
75
75
  ```ts
76
- const model = cerebras('llama-3.3-70b');
76
+ const model = cerebras('gpt-oss-120b');
77
77
  ```
78
78
 
79
79
  You can also use the `.languageModel()` and `.chat()` methods:
80
80
 
81
81
  ```ts
82
- const model = cerebras.languageModel('llama-3.3-70b');
83
- const model = cerebras.chat('llama-3.3-70b');
82
+ const model = cerebras.languageModel('gpt-oss-120b');
83
+ const model = cerebras.chat('gpt-oss-120b');
84
84
  ```
85
85
 
86
86
  ### Reasoning Models
87
87
 
88
- Cerebras offers several reasoning models including `gpt-oss-120b`, `qwen-3-32b`, and `zai-glm-4.7` that generate intermediate thinking tokens before their final response. The reasoning output is streamed through the standard AI SDK reasoning parts.
88
+ Cerebras offers reasoning models including `gpt-oss-120b`, `zai-glm-4.7`, and `gemma-4-31b` that generate intermediate thinking tokens before their final response. The reasoning output is streamed through the standard AI SDK reasoning parts.
89
89
 
90
90
  For `gpt-oss-120b`, you can control the reasoning depth using the `reasoningEffort` provider option:
91
91
 
@@ -132,21 +132,8 @@ The following optional provider options are available for Cerebras language mode
132
132
 
133
133
  ## Model Capabilities
134
134
 
135
- | Model | Image Input | Object Generation | Tool Usage | Tool Streaming | Reasoning |
136
- | -------------------------------- | ----------- | ----------------- | ---------- | -------------- | --------- |
137
- | `llama3.1-8b` | <Cross /> | <Check /> | <Check /> | <Check /> | <Cross /> |
138
- | `llama-3.3-70b` | <Cross /> | <Check /> | <Check /> | <Check /> | <Cross /> |
139
- | `gpt-oss-120b` | <Cross /> | <Check /> | <Check /> | <Check /> | <Check /> |
140
- | `qwen-3-32b` | <Cross /> | <Check /> | <Check /> | <Check /> | <Check /> |
141
- | `qwen-3-235b-a22b-instruct-2507` | <Cross /> | <Check /> | <Check /> | <Check /> | <Cross /> |
142
- | `qwen-3-235b-a22b-thinking-2507` | <Cross /> | <Check /> | <Check /> | <Check /> | <Cross /> |
143
- | `zai-glm-4.6` | <Cross /> | <Check /> | <Check /> | <Check /> | <Cross /> |
144
- | `zai-glm-4.7` | <Cross /> | <Check /> | <Check /> | <Check /> | <Check /> |
145
-
146
- <Note>
147
- The models `qwen-3-32b` and `llama-3.3-70b` are scheduled for deprecation on
148
- February 16, 2026. Please see the [Cerebras
149
- docs](https://inference-docs.cerebras.ai/introduction) for more details about
150
- the available models and migration guidance. You can also pass any available
151
- provider model ID as a string if needed.
152
- </Note>
135
+ | Model | Image Input | Object Generation | Tool Usage | Tool Streaming | Reasoning |
136
+ | -------------- | ----------- | ----------------- | ---------- | -------------- | --------- |
137
+ | `gpt-oss-120b` | <Cross /> | <Check /> | <Check /> | <Check /> | <Check /> |
138
+ | `zai-glm-4.7` | <Cross /> | <Check /> | <Check /> | <Check /> | <Check /> |
139
+ | `gemma-4-31b` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/cerebras",
3
- "version": "3.0.29",
3
+ "version": "3.0.31",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -29,9 +29,9 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@ai-sdk/openai-compatible": "3.0.29",
32
+ "@ai-sdk/openai-compatible": "3.0.31",
33
33
  "@ai-sdk/provider": "4.0.7",
34
- "@ai-sdk/provider-utils": "5.0.26"
34
+ "@ai-sdk/provider-utils": "5.0.27"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "22.19.19",
@@ -1,11 +1,8 @@
1
1
  // https://inference-docs.cerebras.ai/models/overview
2
2
  export type CerebrasChatModelId =
3
3
  // production
4
- | 'llama3.1-8b'
5
4
  | 'gpt-oss-120b'
5
+ | 'gemma-4-31b'
6
6
  // preview
7
- | 'qwen-3-235b-a22b-instruct-2507'
8
- | 'qwen-3-235b-a22b-thinking-2507'
9
- | 'zai-glm-4.6'
10
7
  | 'zai-glm-4.7'
11
8
  | (string & {});