@ai-sdk/deepseek 0.2.14 → 1.0.0-alpha.1
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 +196 -35
- package/dist/index.d.mts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,75 +1,236 @@
|
|
|
1
1
|
# @ai-sdk/deepseek
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 1.0.0-alpha.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [
|
|
8
|
-
- @ai-sdk/provider
|
|
9
|
-
- @ai-sdk/openai-compatible@0.
|
|
7
|
+
- Updated dependencies [3f2f00c]
|
|
8
|
+
- @ai-sdk/provider@2.0.0-alpha.1
|
|
9
|
+
- @ai-sdk/openai-compatible@1.0.0-alpha.1
|
|
10
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.1
|
|
10
11
|
|
|
11
|
-
## 0.
|
|
12
|
+
## 1.0.0-canary.19
|
|
12
13
|
|
|
13
14
|
### Patch Changes
|
|
14
15
|
|
|
15
|
-
- Updated dependencies [
|
|
16
|
-
- @ai-sdk/
|
|
16
|
+
- Updated dependencies [faf8446]
|
|
17
|
+
- @ai-sdk/provider-utils@3.0.0-canary.19
|
|
18
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.19
|
|
17
19
|
|
|
18
|
-
## 0.
|
|
20
|
+
## 1.0.0-canary.18
|
|
19
21
|
|
|
20
22
|
### Patch Changes
|
|
21
23
|
|
|
22
|
-
- Updated dependencies [
|
|
23
|
-
- @ai-sdk/
|
|
24
|
+
- Updated dependencies [40acf9b]
|
|
25
|
+
- @ai-sdk/provider-utils@3.0.0-canary.18
|
|
26
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.18
|
|
24
27
|
|
|
25
|
-
## 0.
|
|
28
|
+
## 1.0.0-canary.17
|
|
26
29
|
|
|
27
30
|
### Patch Changes
|
|
28
31
|
|
|
29
|
-
- Updated dependencies [
|
|
30
|
-
|
|
32
|
+
- Updated dependencies [516be5b]
|
|
33
|
+
- Updated dependencies [ea7a7c9]
|
|
34
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.17
|
|
35
|
+
- @ai-sdk/provider-utils@3.0.0-canary.17
|
|
31
36
|
|
|
32
|
-
## 0.
|
|
37
|
+
## 1.0.0-canary.16
|
|
33
38
|
|
|
34
39
|
### Patch Changes
|
|
35
40
|
|
|
36
|
-
- Updated dependencies [
|
|
37
|
-
- @ai-sdk/provider@
|
|
38
|
-
- @ai-sdk/openai-compatible@0.
|
|
39
|
-
- @ai-sdk/provider-utils@2.2.7
|
|
41
|
+
- Updated dependencies [87b828f]
|
|
42
|
+
- @ai-sdk/provider-utils@3.0.0-canary.16
|
|
43
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.16
|
|
40
44
|
|
|
41
|
-
## 0.
|
|
45
|
+
## 1.0.0-canary.15
|
|
42
46
|
|
|
43
47
|
### Patch Changes
|
|
44
48
|
|
|
45
|
-
- Updated dependencies [
|
|
46
|
-
|
|
49
|
+
- Updated dependencies [a571d6e]
|
|
50
|
+
- Updated dependencies [a8c8bd5]
|
|
51
|
+
- Updated dependencies [7979f7f]
|
|
52
|
+
- Updated dependencies [41fa418]
|
|
53
|
+
- @ai-sdk/provider-utils@3.0.0-canary.15
|
|
54
|
+
- @ai-sdk/provider@2.0.0-canary.14
|
|
55
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.15
|
|
47
56
|
|
|
48
|
-
## 0.
|
|
57
|
+
## 1.0.0-canary.14
|
|
49
58
|
|
|
50
59
|
### Patch Changes
|
|
51
60
|
|
|
52
|
-
- Updated dependencies [
|
|
53
|
-
|
|
54
|
-
- @ai-sdk/
|
|
55
|
-
- @ai-sdk/provider
|
|
61
|
+
- Updated dependencies [957b739]
|
|
62
|
+
- Updated dependencies [9bd5ab5]
|
|
63
|
+
- @ai-sdk/provider-utils@3.0.0-canary.14
|
|
64
|
+
- @ai-sdk/provider@2.0.0-canary.13
|
|
65
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.14
|
|
56
66
|
|
|
57
|
-
## 0.
|
|
67
|
+
## 1.0.0-canary.13
|
|
58
68
|
|
|
59
69
|
### Patch Changes
|
|
60
70
|
|
|
61
|
-
- Updated dependencies [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- @ai-sdk/
|
|
71
|
+
- Updated dependencies [7b3ae3f]
|
|
72
|
+
- Updated dependencies [d9209ca]
|
|
73
|
+
- Updated dependencies [0ff02bb]
|
|
74
|
+
- @ai-sdk/provider@2.0.0-canary.12
|
|
75
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.13
|
|
76
|
+
- @ai-sdk/provider-utils@3.0.0-canary.13
|
|
65
77
|
|
|
66
|
-
## 0.
|
|
78
|
+
## 1.0.0-canary.12
|
|
67
79
|
|
|
68
80
|
### Patch Changes
|
|
69
81
|
|
|
70
|
-
- Updated dependencies [
|
|
71
|
-
|
|
72
|
-
|
|
82
|
+
- Updated dependencies [9bf7291]
|
|
83
|
+
- Updated dependencies [4617fab]
|
|
84
|
+
- Updated dependencies [e030615]
|
|
85
|
+
- @ai-sdk/provider@2.0.0-canary.11
|
|
86
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.12
|
|
87
|
+
- @ai-sdk/provider-utils@3.0.0-canary.12
|
|
88
|
+
|
|
89
|
+
## 1.0.0-canary.11
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Updated dependencies [db72adc]
|
|
94
|
+
- Updated dependencies [42e32b0]
|
|
95
|
+
- Updated dependencies [66962ed]
|
|
96
|
+
- Updated dependencies [9301f86]
|
|
97
|
+
- Updated dependencies [a3f768e]
|
|
98
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.11
|
|
99
|
+
- @ai-sdk/provider-utils@3.0.0-canary.11
|
|
100
|
+
- @ai-sdk/provider@2.0.0-canary.10
|
|
101
|
+
|
|
102
|
+
## 1.0.0-canary.10
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- Updated dependencies [cf8280e]
|
|
107
|
+
- Updated dependencies [e86be6f]
|
|
108
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.10
|
|
109
|
+
- @ai-sdk/provider@2.0.0-canary.9
|
|
110
|
+
- @ai-sdk/provider-utils@3.0.0-canary.10
|
|
111
|
+
|
|
112
|
+
## 1.0.0-canary.9
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- Updated dependencies [95857aa]
|
|
117
|
+
- Updated dependencies [7ea4132]
|
|
118
|
+
- @ai-sdk/provider@2.0.0-canary.8
|
|
119
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.9
|
|
120
|
+
- @ai-sdk/provider-utils@3.0.0-canary.9
|
|
121
|
+
|
|
122
|
+
## 1.0.0-canary.8
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- Updated dependencies [5d142ab]
|
|
127
|
+
- Updated dependencies [b6b43c7]
|
|
128
|
+
- Updated dependencies [b9a6121]
|
|
129
|
+
- Updated dependencies [8aa9e20]
|
|
130
|
+
- Updated dependencies [3795467]
|
|
131
|
+
- @ai-sdk/provider-utils@3.0.0-canary.8
|
|
132
|
+
- @ai-sdk/provider@2.0.0-canary.7
|
|
133
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.8
|
|
134
|
+
|
|
135
|
+
## 1.0.0-canary.7
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- fa49207: feat(providers/openai-compatible): convert to providerOptions
|
|
140
|
+
- Updated dependencies [fa49207]
|
|
141
|
+
- Updated dependencies [26735b5]
|
|
142
|
+
- Updated dependencies [443d8ec]
|
|
143
|
+
- Updated dependencies [14c9410]
|
|
144
|
+
- Updated dependencies [d9c98f4]
|
|
145
|
+
- Updated dependencies [c4a2fec]
|
|
146
|
+
- Updated dependencies [0054544]
|
|
147
|
+
- Updated dependencies [9e9c809]
|
|
148
|
+
- Updated dependencies [32831c6]
|
|
149
|
+
- Updated dependencies [d0f9495]
|
|
150
|
+
- Updated dependencies [fd65bc6]
|
|
151
|
+
- Updated dependencies [393138b]
|
|
152
|
+
- Updated dependencies [7182d14]
|
|
153
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.7
|
|
154
|
+
- @ai-sdk/provider@2.0.0-canary.6
|
|
155
|
+
- @ai-sdk/provider-utils@3.0.0-canary.7
|
|
156
|
+
|
|
157
|
+
## 1.0.0-canary.6
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- Updated dependencies [6db02c9]
|
|
162
|
+
- Updated dependencies [411e483]
|
|
163
|
+
- Updated dependencies [79457bd]
|
|
164
|
+
- Updated dependencies [ad80501]
|
|
165
|
+
- Updated dependencies [1766ede]
|
|
166
|
+
- Updated dependencies [f10304b]
|
|
167
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.6
|
|
168
|
+
- @ai-sdk/provider@2.0.0-canary.5
|
|
169
|
+
- @ai-sdk/provider-utils@3.0.0-canary.6
|
|
170
|
+
|
|
171
|
+
## 1.0.0-canary.5
|
|
172
|
+
|
|
173
|
+
### Patch Changes
|
|
174
|
+
|
|
175
|
+
- Updated dependencies [6f6bb89]
|
|
176
|
+
- @ai-sdk/provider@2.0.0-canary.4
|
|
177
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.5
|
|
178
|
+
- @ai-sdk/provider-utils@3.0.0-canary.5
|
|
179
|
+
|
|
180
|
+
## 1.0.0-canary.4
|
|
181
|
+
|
|
182
|
+
### Patch Changes
|
|
183
|
+
|
|
184
|
+
- Updated dependencies [d1a1aa1]
|
|
185
|
+
- @ai-sdk/provider@2.0.0-canary.3
|
|
186
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.4
|
|
187
|
+
- @ai-sdk/provider-utils@3.0.0-canary.4
|
|
188
|
+
|
|
189
|
+
## 1.0.0-canary.3
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- Updated dependencies [a166433]
|
|
194
|
+
- Updated dependencies [abf9a79]
|
|
195
|
+
- Updated dependencies [9f95b35]
|
|
196
|
+
- Updated dependencies [0a87932]
|
|
197
|
+
- Updated dependencies [6dc848c]
|
|
198
|
+
- @ai-sdk/provider-utils@3.0.0-canary.3
|
|
199
|
+
- @ai-sdk/provider@2.0.0-canary.2
|
|
200
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.3
|
|
201
|
+
|
|
202
|
+
## 1.0.0-canary.2
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- Updated dependencies [c57e248]
|
|
207
|
+
- Updated dependencies [33f4a6a]
|
|
208
|
+
- @ai-sdk/provider@2.0.0-canary.1
|
|
209
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.2
|
|
210
|
+
- @ai-sdk/provider-utils@3.0.0-canary.2
|
|
211
|
+
|
|
212
|
+
## 1.0.0-canary.1
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- Updated dependencies [060370c]
|
|
217
|
+
- Updated dependencies [0c0c0b3]
|
|
218
|
+
- Updated dependencies [63d791d]
|
|
219
|
+
- @ai-sdk/provider-utils@3.0.0-canary.1
|
|
220
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.1
|
|
221
|
+
|
|
222
|
+
## 1.0.0-canary.0
|
|
223
|
+
|
|
224
|
+
### Major Changes
|
|
225
|
+
|
|
226
|
+
- d5f588f: AI SDK 5
|
|
227
|
+
|
|
228
|
+
### Patch Changes
|
|
229
|
+
|
|
230
|
+
- Updated dependencies [d5f588f]
|
|
231
|
+
- @ai-sdk/provider-utils@3.0.0-canary.0
|
|
232
|
+
- @ai-sdk/openai-compatible@1.0.0-canary.0
|
|
233
|
+
- @ai-sdk/provider@2.0.0-canary.0
|
|
73
234
|
|
|
74
235
|
## 0.2.5
|
|
75
236
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProviderV2, LanguageModelV2 } from '@ai-sdk/provider';
|
|
2
2
|
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
3
|
-
import { OpenAICompatibleChatSettings } from '@ai-sdk/openai-compatible';
|
|
4
3
|
export { OpenAICompatibleErrorData as DeepSeekErrorData } from '@ai-sdk/openai-compatible';
|
|
5
4
|
|
|
6
5
|
type DeepSeekChatModelId = 'deepseek-chat' | 'deepseek-reasoner' | (string & {});
|
|
7
|
-
interface DeepSeekChatSettings extends OpenAICompatibleChatSettings {
|
|
8
|
-
}
|
|
9
6
|
|
|
10
7
|
interface DeepSeekProviderSettings {
|
|
11
8
|
/**
|
|
@@ -26,19 +23,19 @@ interface DeepSeekProviderSettings {
|
|
|
26
23
|
*/
|
|
27
24
|
fetch?: FetchFunction;
|
|
28
25
|
}
|
|
29
|
-
interface DeepSeekProvider extends
|
|
26
|
+
interface DeepSeekProvider extends ProviderV2 {
|
|
30
27
|
/**
|
|
31
28
|
Creates a DeepSeek model for text generation.
|
|
32
29
|
*/
|
|
33
|
-
(modelId: DeepSeekChatModelId
|
|
30
|
+
(modelId: DeepSeekChatModelId): LanguageModelV2;
|
|
34
31
|
/**
|
|
35
32
|
Creates a DeepSeek model for text generation.
|
|
36
33
|
*/
|
|
37
|
-
languageModel(modelId: DeepSeekChatModelId
|
|
34
|
+
languageModel(modelId: DeepSeekChatModelId): LanguageModelV2;
|
|
38
35
|
/**
|
|
39
36
|
Creates a DeepSeek chat model for text generation.
|
|
40
37
|
*/
|
|
41
|
-
chat(modelId: DeepSeekChatModelId
|
|
38
|
+
chat(modelId: DeepSeekChatModelId): LanguageModelV2;
|
|
42
39
|
}
|
|
43
40
|
declare function createDeepSeek(options?: DeepSeekProviderSettings): DeepSeekProvider;
|
|
44
41
|
declare const deepseek: DeepSeekProvider;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProviderV2, LanguageModelV2 } from '@ai-sdk/provider';
|
|
2
2
|
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
3
|
-
import { OpenAICompatibleChatSettings } from '@ai-sdk/openai-compatible';
|
|
4
3
|
export { OpenAICompatibleErrorData as DeepSeekErrorData } from '@ai-sdk/openai-compatible';
|
|
5
4
|
|
|
6
5
|
type DeepSeekChatModelId = 'deepseek-chat' | 'deepseek-reasoner' | (string & {});
|
|
7
|
-
interface DeepSeekChatSettings extends OpenAICompatibleChatSettings {
|
|
8
|
-
}
|
|
9
6
|
|
|
10
7
|
interface DeepSeekProviderSettings {
|
|
11
8
|
/**
|
|
@@ -26,19 +23,19 @@ interface DeepSeekProviderSettings {
|
|
|
26
23
|
*/
|
|
27
24
|
fetch?: FetchFunction;
|
|
28
25
|
}
|
|
29
|
-
interface DeepSeekProvider extends
|
|
26
|
+
interface DeepSeekProvider extends ProviderV2 {
|
|
30
27
|
/**
|
|
31
28
|
Creates a DeepSeek model for text generation.
|
|
32
29
|
*/
|
|
33
|
-
(modelId: DeepSeekChatModelId
|
|
30
|
+
(modelId: DeepSeekChatModelId): LanguageModelV2;
|
|
34
31
|
/**
|
|
35
32
|
Creates a DeepSeek model for text generation.
|
|
36
33
|
*/
|
|
37
|
-
languageModel(modelId: DeepSeekChatModelId
|
|
34
|
+
languageModel(modelId: DeepSeekChatModelId): LanguageModelV2;
|
|
38
35
|
/**
|
|
39
36
|
Creates a DeepSeek chat model for text generation.
|
|
40
37
|
*/
|
|
41
|
-
chat(modelId: DeepSeekChatModelId
|
|
38
|
+
chat(modelId: DeepSeekChatModelId): LanguageModelV2;
|
|
42
39
|
}
|
|
43
40
|
declare function createDeepSeek(options?: DeepSeekProviderSettings): DeepSeekProvider;
|
|
44
41
|
declare const deepseek: DeepSeekProvider;
|
package/dist/index.js
CHANGED
|
@@ -43,8 +43,8 @@ var buildDeepseekMetadata = (usage) => {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
var deepSeekMetadataExtractor = {
|
|
46
|
-
extractMetadata: ({ parsedBody }) => {
|
|
47
|
-
const parsed = (0, import_provider_utils.safeValidateTypes)({
|
|
46
|
+
extractMetadata: async ({ parsedBody }) => {
|
|
47
|
+
const parsed = await (0, import_provider_utils.safeValidateTypes)({
|
|
48
48
|
value: parsedBody,
|
|
49
49
|
schema: deepSeekResponseSchema
|
|
50
50
|
});
|
|
@@ -53,9 +53,9 @@ var deepSeekMetadataExtractor = {
|
|
|
53
53
|
createStreamExtractor: () => {
|
|
54
54
|
let usage;
|
|
55
55
|
return {
|
|
56
|
-
processChunk: (chunk) => {
|
|
56
|
+
processChunk: async (chunk) => {
|
|
57
57
|
var _a, _b;
|
|
58
|
-
const parsed = (0, import_provider_utils.safeValidateTypes)({
|
|
58
|
+
const parsed = await (0, import_provider_utils.safeValidateTypes)({
|
|
59
59
|
value: chunk,
|
|
60
60
|
schema: deepSeekStreamChunkSchema
|
|
61
61
|
});
|
|
@@ -97,22 +97,24 @@ function createDeepSeek(options = {}) {
|
|
|
97
97
|
})}`,
|
|
98
98
|
...options.headers
|
|
99
99
|
});
|
|
100
|
-
const createLanguageModel = (modelId
|
|
101
|
-
return new import_openai_compatible.OpenAICompatibleChatLanguageModel(modelId,
|
|
100
|
+
const createLanguageModel = (modelId) => {
|
|
101
|
+
return new import_openai_compatible.OpenAICompatibleChatLanguageModel(modelId, {
|
|
102
102
|
provider: `deepseek.chat`,
|
|
103
103
|
url: ({ path }) => `${baseURL}${path}`,
|
|
104
104
|
headers: getHeaders,
|
|
105
105
|
fetch: options.fetch,
|
|
106
|
-
defaultObjectGenerationMode: "json",
|
|
107
106
|
metadataExtractor: deepSeekMetadataExtractor
|
|
108
107
|
});
|
|
109
108
|
};
|
|
110
|
-
const provider = (modelId
|
|
109
|
+
const provider = (modelId) => createLanguageModel(modelId);
|
|
111
110
|
provider.languageModel = createLanguageModel;
|
|
112
111
|
provider.chat = createLanguageModel;
|
|
113
112
|
provider.textEmbeddingModel = (modelId) => {
|
|
114
113
|
throw new import_provider.NoSuchModelError({ modelId, modelType: "textEmbeddingModel" });
|
|
115
114
|
};
|
|
115
|
+
provider.imageModel = (modelId) => {
|
|
116
|
+
throw new import_provider.NoSuchModelError({ modelId, modelType: "imageModel" });
|
|
117
|
+
};
|
|
116
118
|
return provider;
|
|
117
119
|
}
|
|
118
120
|
var deepseek = createDeepSeek();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/deepseek-provider.ts","../src/deepseek-metadata-extractor.ts"],"sourcesContent":["export { createDeepSeek, deepseek } from './deepseek-provider';\nexport type {\n DeepSeekProvider,\n DeepSeekProviderSettings,\n} from './deepseek-provider';\nexport type { OpenAICompatibleErrorData as DeepSeekErrorData } from '@ai-sdk/openai-compatible';\n","import { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';\nimport {\n
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/deepseek-provider.ts","../src/deepseek-metadata-extractor.ts"],"sourcesContent":["export { createDeepSeek, deepseek } from './deepseek-provider';\nexport type {\n DeepSeekProvider,\n DeepSeekProviderSettings,\n} from './deepseek-provider';\nexport type { OpenAICompatibleErrorData as DeepSeekErrorData } from '@ai-sdk/openai-compatible';\n","import { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';\nimport {\n LanguageModelV2,\n NoSuchModelError,\n ProviderV2,\n} from '@ai-sdk/provider';\nimport {\n FetchFunction,\n loadApiKey,\n withoutTrailingSlash,\n} from '@ai-sdk/provider-utils';\nimport { DeepSeekChatModelId } from './deepseek-chat-options';\nimport { deepSeekMetadataExtractor } from './deepseek-metadata-extractor';\n\nexport interface DeepSeekProviderSettings {\n /**\nDeepSeek API key.\n*/\n apiKey?: string;\n /**\nBase URL for the API calls.\n*/\n baseURL?: string;\n /**\nCustom headers to include in the requests.\n*/\n headers?: Record<string, string>;\n /**\nCustom fetch implementation. You can use it as a middleware to intercept requests,\nor to provide a custom fetch implementation for e.g. testing.\n*/\n fetch?: FetchFunction;\n}\n\nexport interface DeepSeekProvider extends ProviderV2 {\n /**\nCreates a DeepSeek model for text generation.\n*/\n (modelId: DeepSeekChatModelId): LanguageModelV2;\n\n /**\nCreates a DeepSeek model for text generation.\n*/\n languageModel(modelId: DeepSeekChatModelId): LanguageModelV2;\n\n /**\nCreates a DeepSeek chat model for text generation.\n*/\n chat(modelId: DeepSeekChatModelId): LanguageModelV2;\n}\n\nexport function createDeepSeek(\n options: DeepSeekProviderSettings = {},\n): DeepSeekProvider {\n const baseURL = withoutTrailingSlash(\n options.baseURL ?? 'https://api.deepseek.com/v1',\n );\n const getHeaders = () => ({\n Authorization: `Bearer ${loadApiKey({\n apiKey: options.apiKey,\n environmentVariableName: 'DEEPSEEK_API_KEY',\n description: 'DeepSeek API key',\n })}`,\n ...options.headers,\n });\n\n const createLanguageModel = (modelId: DeepSeekChatModelId) => {\n return new OpenAICompatibleChatLanguageModel(modelId, {\n provider: `deepseek.chat`,\n url: ({ path }) => `${baseURL}${path}`,\n headers: getHeaders,\n fetch: options.fetch,\n metadataExtractor: deepSeekMetadataExtractor,\n });\n };\n\n const provider = (modelId: DeepSeekChatModelId) =>\n createLanguageModel(modelId);\n\n provider.languageModel = createLanguageModel;\n provider.chat = createLanguageModel;\n\n provider.textEmbeddingModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'textEmbeddingModel' });\n };\n provider.imageModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'imageModel' });\n };\n\n return provider;\n}\n\nexport const deepseek = createDeepSeek();\n","import { MetadataExtractor } from '@ai-sdk/openai-compatible';\nimport { safeValidateTypes } from '@ai-sdk/provider-utils';\nimport { z } from 'zod';\n\nconst buildDeepseekMetadata = (\n usage: z.infer<typeof deepSeekUsageSchema> | undefined,\n) => {\n return usage == null\n ? undefined\n : {\n deepseek: {\n promptCacheHitTokens: usage.prompt_cache_hit_tokens ?? NaN,\n promptCacheMissTokens: usage.prompt_cache_miss_tokens ?? NaN,\n },\n };\n};\n\nexport const deepSeekMetadataExtractor: MetadataExtractor = {\n extractMetadata: async ({ parsedBody }: { parsedBody: unknown }) => {\n const parsed = await safeValidateTypes({\n value: parsedBody,\n schema: deepSeekResponseSchema,\n });\n\n return !parsed.success || parsed.value.usage == null\n ? undefined\n : buildDeepseekMetadata(parsed.value.usage);\n },\n\n createStreamExtractor: () => {\n let usage: z.infer<typeof deepSeekUsageSchema> | undefined;\n\n return {\n processChunk: async (chunk: unknown) => {\n const parsed = await safeValidateTypes({\n value: chunk,\n schema: deepSeekStreamChunkSchema,\n });\n\n if (\n parsed.success &&\n parsed.value.choices?.[0]?.finish_reason === 'stop' &&\n parsed.value.usage\n ) {\n usage = parsed.value.usage;\n }\n },\n buildMetadata: () => buildDeepseekMetadata(usage),\n };\n },\n};\n\nconst deepSeekUsageSchema = z.object({\n prompt_cache_hit_tokens: z.number().nullish(),\n prompt_cache_miss_tokens: z.number().nullish(),\n});\n\nconst deepSeekResponseSchema = z.object({\n usage: deepSeekUsageSchema.nullish(),\n});\n\nconst deepSeekStreamChunkSchema = z.object({\n choices: z\n .array(\n z.object({\n finish_reason: z.string().nullish(),\n }),\n )\n .nullish(),\n usage: deepSeekUsageSchema.nullish(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,+BAAkD;AAClD,sBAIO;AACP,IAAAA,yBAIO;;;ACTP,4BAAkC;AAClC,iBAAkB;AAElB,IAAM,wBAAwB,CAC5B,UACG;AANL;AAOE,SAAO,SAAS,OACZ,SACA;AAAA,IACE,UAAU;AAAA,MACR,uBAAsB,WA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YAAR,YAAmB;AAAA,EACrB;AACA,QAAM,aAAa,OAAO;AAAA,IACxB,eAAe,cAAU,mCAAW;AAAA,MAClC,QAAQ,QAAQ;AAAA,MAChB,yBAAyB;AAAA,MACzB,aAAa;AAAA,IACf,CAAC,CAAC;AAAA,IACF,GAAG,QAAQ;AAAA,EACb;AAEA,QAAM,sBAAsB,CAAC,YAAiC;AAC5D,WAAO,IAAI,2DAAkC,SAAS;AAAA,MACpD,UAAU;AAAA,MACV,KAAK,CAAC,EAAE,KAAK,MAAM,GAAG,OAAO,GAAG,IAAI;AAAA,MACpC,SAAS;AAAA,MACT,OAAO,QAAQ;AAAA,MACf,mBAAmB;AAAA,IACrB,CAAC;AAAA,EACH;AAEA,QAAM,WAAW,CAAC,YAChB,oBAAoB,OAAO;AAE7B,WAAS,gBAAgB;AACzB,WAAS,OAAO;AAEhB,WAAS,qBAAqB,CAAC,YAAoB;AACjD,UAAM,IAAI,iCAAiB,EAAE,SAAS,WAAW,qBAAqB,CAAC;AAAA,EACzE;AACA,WAAS,aAAa,CAAC,YAAoB;AACzC,UAAM,IAAI,iCAAiB,EAAE,SAAS,WAAW,aAAa,CAAC;AAAA,EACjE;AAEA,SAAO;AACT;AAEO,IAAM,WAAW,eAAe;","names":["import_provider_utils"]}
|
package/dist/index.mjs
CHANGED
|
@@ -21,8 +21,8 @@ var buildDeepseekMetadata = (usage) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
var deepSeekMetadataExtractor = {
|
|
24
|
-
extractMetadata: ({ parsedBody }) => {
|
|
25
|
-
const parsed = safeValidateTypes({
|
|
24
|
+
extractMetadata: async ({ parsedBody }) => {
|
|
25
|
+
const parsed = await safeValidateTypes({
|
|
26
26
|
value: parsedBody,
|
|
27
27
|
schema: deepSeekResponseSchema
|
|
28
28
|
});
|
|
@@ -31,9 +31,9 @@ var deepSeekMetadataExtractor = {
|
|
|
31
31
|
createStreamExtractor: () => {
|
|
32
32
|
let usage;
|
|
33
33
|
return {
|
|
34
|
-
processChunk: (chunk) => {
|
|
34
|
+
processChunk: async (chunk) => {
|
|
35
35
|
var _a, _b;
|
|
36
|
-
const parsed = safeValidateTypes({
|
|
36
|
+
const parsed = await safeValidateTypes({
|
|
37
37
|
value: chunk,
|
|
38
38
|
schema: deepSeekStreamChunkSchema
|
|
39
39
|
});
|
|
@@ -75,22 +75,24 @@ function createDeepSeek(options = {}) {
|
|
|
75
75
|
})}`,
|
|
76
76
|
...options.headers
|
|
77
77
|
});
|
|
78
|
-
const createLanguageModel = (modelId
|
|
79
|
-
return new OpenAICompatibleChatLanguageModel(modelId,
|
|
78
|
+
const createLanguageModel = (modelId) => {
|
|
79
|
+
return new OpenAICompatibleChatLanguageModel(modelId, {
|
|
80
80
|
provider: `deepseek.chat`,
|
|
81
81
|
url: ({ path }) => `${baseURL}${path}`,
|
|
82
82
|
headers: getHeaders,
|
|
83
83
|
fetch: options.fetch,
|
|
84
|
-
defaultObjectGenerationMode: "json",
|
|
85
84
|
metadataExtractor: deepSeekMetadataExtractor
|
|
86
85
|
});
|
|
87
86
|
};
|
|
88
|
-
const provider = (modelId
|
|
87
|
+
const provider = (modelId) => createLanguageModel(modelId);
|
|
89
88
|
provider.languageModel = createLanguageModel;
|
|
90
89
|
provider.chat = createLanguageModel;
|
|
91
90
|
provider.textEmbeddingModel = (modelId) => {
|
|
92
91
|
throw new NoSuchModelError({ modelId, modelType: "textEmbeddingModel" });
|
|
93
92
|
};
|
|
93
|
+
provider.imageModel = (modelId) => {
|
|
94
|
+
throw new NoSuchModelError({ modelId, modelType: "imageModel" });
|
|
95
|
+
};
|
|
94
96
|
return provider;
|
|
95
97
|
}
|
|
96
98
|
var deepseek = createDeepSeek();
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/deepseek-provider.ts","../src/deepseek-metadata-extractor.ts"],"sourcesContent":["import { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';\nimport {\n
|
|
1
|
+
{"version":3,"sources":["../src/deepseek-provider.ts","../src/deepseek-metadata-extractor.ts"],"sourcesContent":["import { OpenAICompatibleChatLanguageModel } from '@ai-sdk/openai-compatible';\nimport {\n LanguageModelV2,\n NoSuchModelError,\n ProviderV2,\n} from '@ai-sdk/provider';\nimport {\n FetchFunction,\n loadApiKey,\n withoutTrailingSlash,\n} from '@ai-sdk/provider-utils';\nimport { DeepSeekChatModelId } from './deepseek-chat-options';\nimport { deepSeekMetadataExtractor } from './deepseek-metadata-extractor';\n\nexport interface DeepSeekProviderSettings {\n /**\nDeepSeek API key.\n*/\n apiKey?: string;\n /**\nBase URL for the API calls.\n*/\n baseURL?: string;\n /**\nCustom headers to include in the requests.\n*/\n headers?: Record<string, string>;\n /**\nCustom fetch implementation. You can use it as a middleware to intercept requests,\nor to provide a custom fetch implementation for e.g. testing.\n*/\n fetch?: FetchFunction;\n}\n\nexport interface DeepSeekProvider extends ProviderV2 {\n /**\nCreates a DeepSeek model for text generation.\n*/\n (modelId: DeepSeekChatModelId): LanguageModelV2;\n\n /**\nCreates a DeepSeek model for text generation.\n*/\n languageModel(modelId: DeepSeekChatModelId): LanguageModelV2;\n\n /**\nCreates a DeepSeek chat model for text generation.\n*/\n chat(modelId: DeepSeekChatModelId): LanguageModelV2;\n}\n\nexport function createDeepSeek(\n options: DeepSeekProviderSettings = {},\n): DeepSeekProvider {\n const baseURL = withoutTrailingSlash(\n options.baseURL ?? 'https://api.deepseek.com/v1',\n );\n const getHeaders = () => ({\n Authorization: `Bearer ${loadApiKey({\n apiKey: options.apiKey,\n environmentVariableName: 'DEEPSEEK_API_KEY',\n description: 'DeepSeek API key',\n })}`,\n ...options.headers,\n });\n\n const createLanguageModel = (modelId: DeepSeekChatModelId) => {\n return new OpenAICompatibleChatLanguageModel(modelId, {\n provider: `deepseek.chat`,\n url: ({ path }) => `${baseURL}${path}`,\n headers: getHeaders,\n fetch: options.fetch,\n metadataExtractor: deepSeekMetadataExtractor,\n });\n };\n\n const provider = (modelId: DeepSeekChatModelId) =>\n createLanguageModel(modelId);\n\n provider.languageModel = createLanguageModel;\n provider.chat = createLanguageModel;\n\n provider.textEmbeddingModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'textEmbeddingModel' });\n };\n provider.imageModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'imageModel' });\n };\n\n return provider;\n}\n\nexport const deepseek = createDeepSeek();\n","import { MetadataExtractor } from '@ai-sdk/openai-compatible';\nimport { safeValidateTypes } from '@ai-sdk/provider-utils';\nimport { z } from 'zod';\n\nconst buildDeepseekMetadata = (\n usage: z.infer<typeof deepSeekUsageSchema> | undefined,\n) => {\n return usage == null\n ? undefined\n : {\n deepseek: {\n promptCacheHitTokens: usage.prompt_cache_hit_tokens ?? NaN,\n promptCacheMissTokens: usage.prompt_cache_miss_tokens ?? NaN,\n },\n };\n};\n\nexport const deepSeekMetadataExtractor: MetadataExtractor = {\n extractMetadata: async ({ parsedBody }: { parsedBody: unknown }) => {\n const parsed = await safeValidateTypes({\n value: parsedBody,\n schema: deepSeekResponseSchema,\n });\n\n return !parsed.success || parsed.value.usage == null\n ? undefined\n : buildDeepseekMetadata(parsed.value.usage);\n },\n\n createStreamExtractor: () => {\n let usage: z.infer<typeof deepSeekUsageSchema> | undefined;\n\n return {\n processChunk: async (chunk: unknown) => {\n const parsed = await safeValidateTypes({\n value: chunk,\n schema: deepSeekStreamChunkSchema,\n });\n\n if (\n parsed.success &&\n parsed.value.choices?.[0]?.finish_reason === 'stop' &&\n parsed.value.usage\n ) {\n usage = parsed.value.usage;\n }\n },\n buildMetadata: () => buildDeepseekMetadata(usage),\n };\n },\n};\n\nconst deepSeekUsageSchema = z.object({\n prompt_cache_hit_tokens: z.number().nullish(),\n prompt_cache_miss_tokens: z.number().nullish(),\n});\n\nconst deepSeekResponseSchema = z.object({\n usage: deepSeekUsageSchema.nullish(),\n});\n\nconst deepSeekStreamChunkSchema = z.object({\n choices: z\n .array(\n z.object({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.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@ai-sdk/openai-compatible": "0.
|
|
23
|
-
"@ai-sdk/provider": "
|
|
24
|
-
"@ai-sdk/provider-utils": "
|
|
22
|
+
"@ai-sdk/openai-compatible": "1.0.0-alpha.1",
|
|
23
|
+
"@ai-sdk/provider": "2.0.0-alpha.1",
|
|
24
|
+
"@ai-sdk/provider-utils": "3.0.0-alpha.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "20.17.24",
|
|
28
28
|
"tsup": "^8",
|
|
29
|
-
"typescript": "5.
|
|
30
|
-
"zod": "3.
|
|
29
|
+
"typescript": "5.8.3",
|
|
30
|
+
"zod": "3.24.4",
|
|
31
31
|
"@vercel/ai-tsconfig": "0.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"zod": "^3.
|
|
34
|
+
"zod": "^3.24.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=18"
|
|
@@ -51,13 +51,15 @@
|
|
|
51
51
|
"ai"
|
|
52
52
|
],
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "tsup",
|
|
55
|
-
"build:watch": "tsup --watch",
|
|
56
|
-
"clean": "rm -rf dist",
|
|
54
|
+
"build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
|
|
55
|
+
"build:watch": "pnpm clean && tsup --watch",
|
|
56
|
+
"clean": "rm -rf dist *.tsbuildinfo",
|
|
57
57
|
"lint": "eslint \"./**/*.ts*\"",
|
|
58
|
-
"type-check": "tsc --
|
|
58
|
+
"type-check": "tsc --build",
|
|
59
59
|
"prettier-check": "prettier --check \"./**/*.ts*\"",
|
|
60
60
|
"test": "pnpm test:node && pnpm test:edge",
|
|
61
|
+
"test:update": "pnpm test:node -u",
|
|
62
|
+
"test:watch": "vitest --config vitest.node.config.js",
|
|
61
63
|
"test:edge": "vitest --config vitest.edge.config.js --run",
|
|
62
64
|
"test:node": "vitest --config vitest.node.config.js --run"
|
|
63
65
|
}
|