@ai-sdk/deepseek 3.0.0-beta.9 → 3.0.0-canary.35

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,233 @@
1
1
  # @ai-sdk/deepseek
2
2
 
3
+ ## 3.0.0-canary.35
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5463d0d]
8
+ - @ai-sdk/provider-utils@5.0.0-canary.32
9
+ - @ai-sdk/provider@4.0.0-canary.16
10
+
11
+ ## 3.0.0-canary.34
12
+
13
+ ### Patch Changes
14
+
15
+ - 0c4c275: trigger initial canary release
16
+ - Updated dependencies [0c4c275]
17
+ - @ai-sdk/provider-utils@5.0.0-canary.31
18
+ - @ai-sdk/provider@4.0.0-canary.15
19
+
20
+ ## 3.0.0-beta.33
21
+
22
+ ### Major Changes
23
+
24
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
25
+
26
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [08d2129]
31
+ - @ai-sdk/provider-utils@5.0.0-beta.30
32
+
33
+ ## 3.0.0-beta.32
34
+
35
+ ### Patch Changes
36
+
37
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
38
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
39
+ - Updated dependencies [9bd6512]
40
+ - Updated dependencies [258c093]
41
+ - Updated dependencies [b6783da]
42
+ - @ai-sdk/provider-utils@5.0.0-beta.29
43
+ - @ai-sdk/provider@4.0.0-beta.14
44
+
45
+ ## 3.0.0-beta.31
46
+
47
+ ### Patch Changes
48
+
49
+ - 9f0e36c: trigger release for all packages after provenance setup
50
+ - Updated dependencies [9f0e36c]
51
+ - @ai-sdk/provider@4.0.0-beta.13
52
+ - @ai-sdk/provider-utils@5.0.0-beta.28
53
+
54
+ ## 3.0.0-beta.30
55
+
56
+ ### Patch Changes
57
+
58
+ - 0498012: fix(provider/deepseek): preserve reasoning_content for deepseek-v4 in multi-turn requests
59
+ - 58a2ad7: fix: more precise default message for tool execution denial
60
+ - Updated dependencies [785fe16]
61
+ - Updated dependencies [67df0a0]
62
+ - Updated dependencies [befb78c]
63
+ - Updated dependencies [0458559]
64
+ - Updated dependencies [5852c0a]
65
+ - Updated dependencies [fc92055]
66
+ - @ai-sdk/provider-utils@5.0.0-beta.27
67
+
68
+ ## 3.0.0-beta.29
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [2e98477]
73
+ - @ai-sdk/provider-utils@5.0.0-beta.26
74
+
75
+ ## 3.0.0-beta.28
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [eea8d98]
80
+ - @ai-sdk/provider-utils@5.0.0-beta.25
81
+
82
+ ## 3.0.0-beta.27
83
+
84
+ ### Patch Changes
85
+
86
+ - f807e45: Extract shared `StreamingToolCallTracker` class into `@ai-sdk/provider-utils` to deduplicate streaming tool call handling across OpenAI-compatible providers. Also adds missing `generateId()` fallback for `toolCallId` in Alibaba's `doGenerate` path and ensures all providers finalize unfinished tool calls during stream flush.
87
+ - Updated dependencies [f807e45]
88
+ - @ai-sdk/provider-utils@5.0.0-beta.24
89
+
90
+ ## 3.0.0-beta.26
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [350ea38]
95
+ - @ai-sdk/provider-utils@5.0.0-beta.23
96
+
97
+ ## 3.0.0-beta.25
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies [083947b]
102
+ - @ai-sdk/provider-utils@5.0.0-beta.22
103
+
104
+ ## 3.0.0-beta.24
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [add1126]
109
+ - @ai-sdk/provider-utils@5.0.0-beta.21
110
+
111
+ ## 3.0.0-beta.23
112
+
113
+ ### Patch Changes
114
+
115
+ - b3976a2: Add workflow serialization support to all provider models.
116
+
117
+ **`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
118
+
119
+ **All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
120
+
121
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
122
+
123
+ - Updated dependencies [b3976a2]
124
+ - Updated dependencies [ff5eba1]
125
+ - @ai-sdk/provider-utils@5.0.0-beta.20
126
+ - @ai-sdk/provider@4.0.0-beta.12
127
+
128
+ ## 3.0.0-beta.22
129
+
130
+ ### Major Changes
131
+
132
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies [ef992f8]
137
+ - @ai-sdk/provider@4.0.0-beta.11
138
+ - @ai-sdk/provider-utils@5.0.0-beta.19
139
+
140
+ ## 3.0.0-beta.21
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [90e2d8a]
145
+ - @ai-sdk/provider-utils@5.0.0-beta.18
146
+
147
+ ## 3.0.0-beta.20
148
+
149
+ ### Patch Changes
150
+
151
+ - Updated dependencies [3ae1786]
152
+ - @ai-sdk/provider-utils@5.0.0-beta.17
153
+
154
+ ## 3.0.0-beta.19
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [176466a]
159
+ - @ai-sdk/provider@4.0.0-beta.10
160
+ - @ai-sdk/provider-utils@5.0.0-beta.16
161
+
162
+ ## 3.0.0-beta.18
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [e311194]
167
+ - @ai-sdk/provider@4.0.0-beta.9
168
+ - @ai-sdk/provider-utils@5.0.0-beta.15
169
+
170
+ ## 3.0.0-beta.17
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [34bd95d]
175
+ - Updated dependencies [008271d]
176
+ - @ai-sdk/provider@4.0.0-beta.8
177
+ - @ai-sdk/provider-utils@5.0.0-beta.14
178
+
179
+ ## 3.0.0-beta.16
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [b0c2869]
184
+ - Updated dependencies [7e26e81]
185
+ - @ai-sdk/provider-utils@5.0.0-beta.13
186
+
187
+ ## 3.0.0-beta.15
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies [46d1149]
192
+ - @ai-sdk/provider-utils@5.0.0-beta.12
193
+
194
+ ## 3.0.0-beta.14
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [6fd51c0]
199
+ - @ai-sdk/provider-utils@5.0.0-beta.11
200
+ - @ai-sdk/provider@4.0.0-beta.7
201
+
202
+ ## 3.0.0-beta.13
203
+
204
+ ### Patch Changes
205
+
206
+ - Updated dependencies [c29a26f]
207
+ - @ai-sdk/provider-utils@5.0.0-beta.10
208
+ - @ai-sdk/provider@4.0.0-beta.6
209
+
210
+ ## 3.0.0-beta.12
211
+
212
+ ### Patch Changes
213
+
214
+ - 38fc777: Add AI Gateway hint to provider READMEs
215
+
216
+ ## 3.0.0-beta.11
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [2e17091]
221
+ - @ai-sdk/provider-utils@5.0.0-beta.9
222
+
223
+ ## 3.0.0-beta.10
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [986c6fd]
228
+ - Updated dependencies [493295c]
229
+ - @ai-sdk/provider-utils@5.0.0-beta.8
230
+
3
231
  ## 3.0.0-beta.9
4
232
 
5
233
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **[DeepSeek provider](https://ai-sdk.dev/providers/ai-sdk-providers/deepseek)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [DeepSeek](https://www.deepseek.com) platform.
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access DeepSeek (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
6
+
5
7
  ## Setup
6
8
 
7
9
  The DeepSeek provider is available in the `@ai-sdk/deepseek` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod/v4';
4
4
 
5
5
  type DeepSeekChatModelId = 'deepseek-chat' | 'deepseek-reasoner' | (string & {});
6
- declare const deepseekLanguageModelOptions: z.ZodObject<{
6
+ declare const deepseekLanguageModelChatOptions: z.ZodObject<{
7
7
  thinking: z.ZodOptional<z.ZodObject<{
8
8
  type: z.ZodOptional<z.ZodEnum<{
9
9
  enabled: "enabled";
@@ -11,7 +11,7 @@ declare const deepseekLanguageModelOptions: z.ZodObject<{
11
11
  }>>;
12
12
  }, z.core.$strip>>;
13
13
  }, z.core.$strip>;
14
- type DeepSeekLanguageModelOptions = z.infer<typeof deepseekLanguageModelOptions>;
14
+ type DeepSeekLanguageModelChatOptions = z.infer<typeof deepseekLanguageModelChatOptions>;
15
15
 
16
16
  interface DeepSeekProviderSettings {
17
17
  /**
@@ -51,7 +51,7 @@ interface DeepSeekProvider extends ProviderV4 {
51
51
  textEmbeddingModel(modelId: string): never;
52
52
  }
53
53
  declare function createDeepSeek(options?: DeepSeekProviderSettings): DeepSeekProvider;
54
- declare const deepseek: DeepSeekProvider;
54
+ declare const deepSeek: DeepSeekProvider;
55
55
 
56
56
  declare const VERSION: string;
57
57
 
@@ -65,4 +65,4 @@ declare const deepSeekErrorSchema: z.ZodObject<{
65
65
  }, z.core.$strip>;
66
66
  type DeepSeekErrorData = z.infer<typeof deepSeekErrorSchema>;
67
67
 
68
- export { type DeepSeekLanguageModelOptions as DeepSeekChatOptions, type DeepSeekErrorData, type DeepSeekLanguageModelOptions, type DeepSeekProvider, type DeepSeekProviderSettings, VERSION, createDeepSeek, deepseek };
68
+ export { type DeepSeekLanguageModelChatOptions as DeepSeekChatOptions, type DeepSeekErrorData, type DeepSeekLanguageModelChatOptions, type DeepSeekLanguageModelChatOptions as DeepSeekLanguageModelOptions, type DeepSeekProvider, type DeepSeekProviderSettings, VERSION, createDeepSeek, deepSeek, deepSeek as deepseek };