@ai-sdk/fireworks 0.0.0-764dcadb-20250115082903 → 0.0.0-98261322-20260122142521
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 +1611 -10
- package/README.md +3 -3
- package/dist/index.d.mts +48 -24
- package/dist/index.d.ts +48 -24
- package/dist/index.js +95 -89
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +101 -96
- package/dist/index.mjs.map +1 -1
- package/docs/26-fireworks.mdx +289 -0
- package/package.json +23 -14
- package/src/fireworks-chat-options.ts +20 -0
- package/src/fireworks-completion-options.ts +5 -0
- package/src/fireworks-embedding-options.ts +12 -0
- package/src/fireworks-image-model.test.ts +629 -0
- package/src/fireworks-image-model.ts +196 -0
- package/src/fireworks-image-options.ts +12 -0
- package/src/fireworks-provider.test.ts +198 -0
- package/src/fireworks-provider.ts +172 -0
- package/src/index.ts +13 -0
- package/src/version.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/fireworks",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-98261322-20260122142521",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,8 +8,14 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/**/*",
|
|
11
|
-
"
|
|
11
|
+
"docs/**/*",
|
|
12
|
+
"src",
|
|
13
|
+
"CHANGELOG.md",
|
|
14
|
+
"README.md"
|
|
12
15
|
],
|
|
16
|
+
"directories": {
|
|
17
|
+
"doc": "./docs"
|
|
18
|
+
},
|
|
13
19
|
"exports": {
|
|
14
20
|
"./package.json": "./package.json",
|
|
15
21
|
".": {
|
|
@@ -19,19 +25,20 @@
|
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
"dependencies": {
|
|
22
|
-
"@ai-sdk/openai-compatible": "
|
|
23
|
-
"@ai-sdk/provider": "
|
|
24
|
-
"@ai-sdk/provider-utils": "
|
|
28
|
+
"@ai-sdk/openai-compatible": "2.0.17",
|
|
29
|
+
"@ai-sdk/provider": "3.0.4",
|
|
30
|
+
"@ai-sdk/provider-utils": "4.0.8"
|
|
25
31
|
},
|
|
26
32
|
"devDependencies": {
|
|
27
|
-
"@types/node": "
|
|
33
|
+
"@types/node": "20.17.24",
|
|
28
34
|
"tsup": "^8",
|
|
29
|
-
"typescript": "5.
|
|
30
|
-
"zod": "3.
|
|
35
|
+
"typescript": "5.8.3",
|
|
36
|
+
"zod": "3.25.76",
|
|
37
|
+
"@ai-sdk/test-server": "1.0.2",
|
|
31
38
|
"@vercel/ai-tsconfig": "0.0.0"
|
|
32
39
|
},
|
|
33
40
|
"peerDependencies": {
|
|
34
|
-
"zod": "^3.
|
|
41
|
+
"zod": "^3.25.76 || ^4.1.8"
|
|
35
42
|
},
|
|
36
43
|
"engines": {
|
|
37
44
|
"node": ">=18"
|
|
@@ -39,7 +46,7 @@
|
|
|
39
46
|
"publishConfig": {
|
|
40
47
|
"access": "public"
|
|
41
48
|
},
|
|
42
|
-
"homepage": "https://sdk.
|
|
49
|
+
"homepage": "https://ai-sdk.dev/docs",
|
|
43
50
|
"repository": {
|
|
44
51
|
"type": "git",
|
|
45
52
|
"url": "git+https://github.com/vercel/ai.git"
|
|
@@ -51,13 +58,15 @@
|
|
|
51
58
|
"ai"
|
|
52
59
|
],
|
|
53
60
|
"scripts": {
|
|
54
|
-
"build": "tsup",
|
|
55
|
-
"build:watch": "tsup --watch",
|
|
56
|
-
"clean": "
|
|
61
|
+
"build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
|
|
62
|
+
"build:watch": "pnpm clean && tsup --watch",
|
|
63
|
+
"clean": "del-cli dist docs *.tsbuildinfo",
|
|
57
64
|
"lint": "eslint \"./**/*.ts*\"",
|
|
58
|
-
"type-check": "tsc --
|
|
65
|
+
"type-check": "tsc --build",
|
|
59
66
|
"prettier-check": "prettier --check \"./**/*.ts*\"",
|
|
60
67
|
"test": "pnpm test:node && pnpm test:edge",
|
|
68
|
+
"test:update": "pnpm test:node -u",
|
|
69
|
+
"test:watch": "vitest --config vitest.node.config.js",
|
|
61
70
|
"test:edge": "vitest --config vitest.edge.config.js --run",
|
|
62
71
|
"test:node": "vitest --config vitest.node.config.js --run"
|
|
63
72
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// https://docs.fireworks.ai/docs/serverless-models#chat-models
|
|
2
|
+
// Below is just a subset of the available models.
|
|
3
|
+
export type FireworksChatModelId =
|
|
4
|
+
| 'accounts/fireworks/models/deepseek-v3'
|
|
5
|
+
| 'accounts/fireworks/models/llama-v3p3-70b-instruct'
|
|
6
|
+
| 'accounts/fireworks/models/llama-v3p2-3b-instruct'
|
|
7
|
+
| 'accounts/fireworks/models/llama-v3p1-405b-instruct'
|
|
8
|
+
| 'accounts/fireworks/models/llama-v3p1-8b-instruct'
|
|
9
|
+
| 'accounts/fireworks/models/mixtral-8x7b-instruct'
|
|
10
|
+
| 'accounts/fireworks/models/mixtral-8x22b-instruct'
|
|
11
|
+
| 'accounts/fireworks/models/mixtral-8x7b-instruct-hf'
|
|
12
|
+
| 'accounts/fireworks/models/qwen2p5-coder-32b-instruct'
|
|
13
|
+
| 'accounts/fireworks/models/qwen2p5-72b-instruct'
|
|
14
|
+
| 'accounts/fireworks/models/qwen-qwq-32b-preview'
|
|
15
|
+
| 'accounts/fireworks/models/qwen2-vl-72b-instruct'
|
|
16
|
+
| 'accounts/fireworks/models/llama-v3p2-11b-vision-instruct'
|
|
17
|
+
| 'accounts/fireworks/models/qwq-32b'
|
|
18
|
+
| 'accounts/fireworks/models/yi-large'
|
|
19
|
+
| 'accounts/fireworks/models/kimi-k2-instruct'
|
|
20
|
+
| (string & {});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
|
|
3
|
+
// Below is just a subset of the available models.
|
|
4
|
+
export type FireworksEmbeddingModelId =
|
|
5
|
+
| 'nomic-ai/nomic-embed-text-v1.5'
|
|
6
|
+
| (string & {});
|
|
7
|
+
|
|
8
|
+
export const fireworksEmbeddingProviderOptions = z.object({});
|
|
9
|
+
|
|
10
|
+
export type FireworksEmbeddingProviderOptions = z.infer<
|
|
11
|
+
typeof fireworksEmbeddingProviderOptions
|
|
12
|
+
>;
|