@ai-sdk/cerebras 2.0.0-beta.35 → 2.0.0-beta.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 +6 -0
- package/README.md +1 -51
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -21,57 +21,7 @@ import { cerebras } from '@ai-sdk/cerebras';
|
|
|
21
21
|
## Available Models
|
|
22
22
|
|
|
23
23
|
Cerebras offers a variety of high-performance language models:
|
|
24
|
-
|
|
25
|
-
### Llama 3.3 70B
|
|
26
|
-
|
|
27
|
-
- Model ID: `llama-3.3-70b`
|
|
28
|
-
- 70 billion parameters
|
|
29
|
-
- Knowledge cutoff: December 2023
|
|
30
|
-
- Context Length: 8192
|
|
31
|
-
- Training Tokens: 15 trillion+
|
|
32
|
-
|
|
33
|
-
### Llama 3.1 8B
|
|
34
|
-
|
|
35
|
-
- Model ID: `llama3.1-8b`
|
|
36
|
-
- 8 billion parameters
|
|
37
|
-
- Knowledge cutoff: March 2023
|
|
38
|
-
- Context Length: 8192
|
|
39
|
-
- Training Tokens: 15 trillion+
|
|
40
|
-
|
|
41
|
-
### GPT-OSS 120B
|
|
42
|
-
|
|
43
|
-
- Model ID: `gpt-oss-120b`
|
|
44
|
-
- 120 billion parameters
|
|
45
|
-
- High-performance open-source model
|
|
46
|
-
- Optimized for inference speed
|
|
47
|
-
|
|
48
|
-
### Qwen 3 235B A22B Instruct 2507
|
|
49
|
-
|
|
50
|
-
- Model ID: `qwen-3-235b-a22b-instruct-2507`
|
|
51
|
-
- 235 billion parameters
|
|
52
|
-
- Instruction-tuned model
|
|
53
|
-
- Released July 2025
|
|
54
|
-
|
|
55
|
-
### Qwen 3 235B A22B Thinking 2507
|
|
56
|
-
|
|
57
|
-
- Model ID: `qwen-3-235b-a22b-thinking-2507`
|
|
58
|
-
- 235 billion parameters
|
|
59
|
-
- Enhanced reasoning capabilities
|
|
60
|
-
- Released July 2025
|
|
61
|
-
|
|
62
|
-
### Qwen 3 32B
|
|
63
|
-
|
|
64
|
-
- Model ID: `qwen-3-32b`
|
|
65
|
-
- 32 billion parameters
|
|
66
|
-
- Balanced performance and efficiency
|
|
67
|
-
- Multilingual capabilities
|
|
68
|
-
|
|
69
|
-
### Qwen 3 Coder 480B
|
|
70
|
-
|
|
71
|
-
- Model ID: `qwen-3-coder-480b`
|
|
72
|
-
- 480 billion parameters
|
|
73
|
-
- Specialized for code generation and understanding
|
|
74
|
-
- Advanced programming capabilities
|
|
24
|
+
https://inference-docs.cerebras.ai/models/overview
|
|
75
25
|
|
|
76
26
|
## Example
|
|
77
27
|
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { ProviderV3, LanguageModelV3 } 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 = 'llama-3.3-70b' | '
|
|
5
|
+
type CerebrasChatModelId = 'llama3.1-8b' | 'llama-3.3-70b' | 'gpt-oss-120b' | 'qwen-3-32b' | 'qwen-3-235b-a22b-instruct-2507' | 'qwen-3-235b-a22b-thinking-2507' | 'zai-glm-4.6' | (string & {});
|
|
6
6
|
|
|
7
7
|
declare const cerebrasErrorSchema: z.ZodObject<{
|
|
8
8
|
message: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ProviderV3, LanguageModelV3 } 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 = 'llama-3.3-70b' | '
|
|
5
|
+
type CerebrasChatModelId = 'llama3.1-8b' | 'llama-3.3-70b' | 'gpt-oss-120b' | 'qwen-3-32b' | 'qwen-3-235b-a22b-instruct-2507' | 'qwen-3-235b-a22b-thinking-2507' | 'zai-glm-4.6' | (string & {});
|
|
6
6
|
|
|
7
7
|
declare const cerebrasErrorSchema: z.ZodObject<{
|
|
8
8
|
message: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var import_provider_utils = require("@ai-sdk/provider-utils");
|
|
|
33
33
|
var import_v4 = require("zod/v4");
|
|
34
34
|
|
|
35
35
|
// src/version.ts
|
|
36
|
-
var VERSION = true ? "2.0.0-beta.
|
|
36
|
+
var VERSION = true ? "2.0.0-beta.36" : "0.0.0-test";
|
|
37
37
|
|
|
38
38
|
// src/cerebras-provider.ts
|
|
39
39
|
var cerebrasErrorSchema = import_v4.z.object({
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/cerebras",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.36",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/**/*",
|
|
11
|
-
"CHANGELOG.md"
|
|
11
|
+
"CHANGELOG.md",
|
|
12
|
+
"README.md"
|
|
12
13
|
],
|
|
13
14
|
"exports": {
|
|
14
15
|
"./package.json": "./package.json",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"scripts": {
|
|
57
58
|
"build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
|
|
58
59
|
"build:watch": "pnpm clean && tsup --watch",
|
|
59
|
-
"clean": "
|
|
60
|
+
"clean": "del-cli dist *.tsbuildinfo",
|
|
60
61
|
"lint": "eslint \"./**/*.ts*\"",
|
|
61
62
|
"type-check": "tsc --build",
|
|
62
63
|
"prettier-check": "prettier --check \"./**/*.ts*\"",
|