@ai-sdk/cerebras 3.0.35 → 3.0.36
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 +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/40-cerebras.mdx +1 -2
- package/package.json +2 -2
- package/src/cerebras-chat-options.ts +1 -5
package/CHANGELOG.md
CHANGED
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 = 'gpt-oss-120b' | 'gemma-4-31b' |
|
|
5
|
+
type CerebrasChatModelId = 'gpt-oss-120b' | 'gemma-4-31b' | (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.
|
|
99
|
+
var VERSION = true ? "3.0.36" : "0.0.0-test";
|
|
100
100
|
|
|
101
101
|
// src/cerebras-provider.ts
|
|
102
102
|
var cerebrasErrorSchema = z.object({
|
package/docs/40-cerebras.mdx
CHANGED
|
@@ -85,7 +85,7 @@ const model = cerebras.chat('gpt-oss-120b');
|
|
|
85
85
|
|
|
86
86
|
### Reasoning Models
|
|
87
87
|
|
|
88
|
-
Cerebras offers reasoning models including `gpt-oss-120b
|
|
88
|
+
Cerebras offers reasoning models including `gpt-oss-120b` 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
|
|
|
@@ -189,5 +189,4 @@ const result = await generateText({
|
|
|
189
189
|
| Model | Image Input | Object Generation | Tool Usage | Tool Streaming | Reasoning |
|
|
190
190
|
| -------------- | ----------- | ----------------- | ---------- | -------------- | --------- |
|
|
191
191
|
| `gpt-oss-120b` | <Cross /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
192
|
-
| `zai-glm-4.7` | <Cross /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
193
192
|
| `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.
|
|
3
|
+
"version": "3.0.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-sdk/openai-compatible": "3.0.
|
|
32
|
+
"@ai-sdk/openai-compatible": "3.0.36",
|
|
33
33
|
"@ai-sdk/provider": "4.0.7",
|
|
34
34
|
"@ai-sdk/provider-utils": "5.0.29"
|
|
35
35
|
},
|