@ai-sdk/huggingface 2.0.0-beta.9 → 2.0.0-canary.38

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,283 @@
1
1
  # @ai-sdk/huggingface
2
2
 
3
+ ## 2.0.0-canary.38
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [cd9c311]
8
+ - @ai-sdk/openai-compatible@3.0.0-canary.38
9
+
10
+ ## 2.0.0-canary.37
11
+
12
+ ### Patch Changes
13
+
14
+ - 0c4c275: trigger initial canary release
15
+ - Updated dependencies [0c4c275]
16
+ - @ai-sdk/openai-compatible@3.0.0-canary.37
17
+ - @ai-sdk/provider-utils@5.0.0-canary.31
18
+ - @ai-sdk/provider@4.0.0-canary.15
19
+
20
+ ## 2.0.0-beta.36
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [e59c955]
25
+ - @ai-sdk/openai-compatible@3.0.0-beta.36
26
+
27
+ ## 2.0.0-beta.35
28
+
29
+ ### Major Changes
30
+
31
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
32
+
33
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [08d2129]
38
+ - Updated dependencies [04e9009]
39
+ - @ai-sdk/provider-utils@5.0.0-beta.30
40
+ - @ai-sdk/openai-compatible@3.0.0-beta.35
41
+
42
+ ## 2.0.0-beta.34
43
+
44
+ ### Patch Changes
45
+
46
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
47
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
48
+ - Updated dependencies [9bd6512]
49
+ - Updated dependencies [258c093]
50
+ - Updated dependencies [b6783da]
51
+ - @ai-sdk/openai-compatible@3.0.0-beta.34
52
+ - @ai-sdk/provider-utils@5.0.0-beta.29
53
+ - @ai-sdk/provider@4.0.0-beta.14
54
+
55
+ ## 2.0.0-beta.33
56
+
57
+ ### Patch Changes
58
+
59
+ - 9f0e36c: trigger release for all packages after provenance setup
60
+ - Updated dependencies [9f0e36c]
61
+ - @ai-sdk/openai-compatible@3.0.0-beta.33
62
+ - @ai-sdk/provider@4.0.0-beta.13
63
+ - @ai-sdk/provider-utils@5.0.0-beta.28
64
+
65
+ ## 2.0.0-beta.32
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [ab81968]
70
+ - Updated dependencies [785fe16]
71
+ - Updated dependencies [67df0a0]
72
+ - Updated dependencies [befb78c]
73
+ - Updated dependencies [0458559]
74
+ - Updated dependencies [58a2ad7]
75
+ - Updated dependencies [5852c0a]
76
+ - Updated dependencies [fc92055]
77
+ - @ai-sdk/openai-compatible@3.0.0-beta.32
78
+ - @ai-sdk/provider-utils@5.0.0-beta.27
79
+
80
+ ## 2.0.0-beta.31
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [2e98477]
85
+ - Updated dependencies [bfb756d]
86
+ - @ai-sdk/provider-utils@5.0.0-beta.26
87
+ - @ai-sdk/openai-compatible@3.0.0-beta.31
88
+
89
+ ## 2.0.0-beta.30
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [eea8d98]
94
+ - @ai-sdk/provider-utils@5.0.0-beta.25
95
+ - @ai-sdk/openai-compatible@3.0.0-beta.30
96
+
97
+ ## 2.0.0-beta.29
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies [f807e45]
102
+ - @ai-sdk/provider-utils@5.0.0-beta.24
103
+ - @ai-sdk/openai-compatible@3.0.0-beta.29
104
+
105
+ ## 2.0.0-beta.28
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [350ea38]
110
+ - @ai-sdk/provider-utils@5.0.0-beta.23
111
+ - @ai-sdk/openai-compatible@3.0.0-beta.28
112
+
113
+ ## 2.0.0-beta.27
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [083947b]
118
+ - @ai-sdk/provider-utils@5.0.0-beta.22
119
+ - @ai-sdk/openai-compatible@3.0.0-beta.27
120
+
121
+ ## 2.0.0-beta.26
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [add1126]
126
+ - @ai-sdk/provider-utils@5.0.0-beta.21
127
+ - @ai-sdk/openai-compatible@3.0.0-beta.26
128
+
129
+ ## 2.0.0-beta.25
130
+
131
+ ### Patch Changes
132
+
133
+ - b3976a2: Add workflow serialization support to all provider models.
134
+
135
+ **`@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.
136
+
137
+ **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.
138
+
139
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
140
+
141
+ - Updated dependencies [b3976a2]
142
+ - Updated dependencies [ff5eba1]
143
+ - @ai-sdk/provider-utils@5.0.0-beta.20
144
+ - @ai-sdk/openai-compatible@3.0.0-beta.25
145
+ - @ai-sdk/provider@4.0.0-beta.12
146
+
147
+ ## 2.0.0-beta.24
148
+
149
+ ### Major Changes
150
+
151
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [ef992f8]
156
+ - @ai-sdk/openai-compatible@3.0.0-beta.24
157
+ - @ai-sdk/provider@4.0.0-beta.11
158
+ - @ai-sdk/provider-utils@5.0.0-beta.19
159
+
160
+ ## 2.0.0-beta.23
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [90e2d8a]
165
+ - @ai-sdk/openai-compatible@3.0.0-beta.23
166
+ - @ai-sdk/provider-utils@5.0.0-beta.18
167
+
168
+ ## 2.0.0-beta.22
169
+
170
+ ### Patch Changes
171
+
172
+ - Updated dependencies [3ae1786]
173
+ - @ai-sdk/provider-utils@5.0.0-beta.17
174
+ - @ai-sdk/openai-compatible@3.0.0-beta.22
175
+
176
+ ## 2.0.0-beta.21
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [176466a]
181
+ - @ai-sdk/provider@4.0.0-beta.10
182
+ - @ai-sdk/openai-compatible@3.0.0-beta.21
183
+ - @ai-sdk/provider-utils@5.0.0-beta.16
184
+
185
+ ## 2.0.0-beta.20
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [e311194]
190
+ - @ai-sdk/provider@4.0.0-beta.9
191
+ - @ai-sdk/openai-compatible@3.0.0-beta.20
192
+ - @ai-sdk/provider-utils@5.0.0-beta.15
193
+
194
+ ## 2.0.0-beta.19
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [34bd95d]
199
+ - Updated dependencies [008271d]
200
+ - @ai-sdk/provider@4.0.0-beta.8
201
+ - @ai-sdk/openai-compatible@3.0.0-beta.19
202
+ - @ai-sdk/provider-utils@5.0.0-beta.14
203
+
204
+ ## 2.0.0-beta.18
205
+
206
+ ### Patch Changes
207
+
208
+ - Updated dependencies [b0c2869]
209
+ - Updated dependencies [7e26e81]
210
+ - @ai-sdk/provider-utils@5.0.0-beta.13
211
+ - @ai-sdk/openai-compatible@3.0.0-beta.18
212
+
213
+ ## 2.0.0-beta.17
214
+
215
+ ### Patch Changes
216
+
217
+ - Updated dependencies [816ff67]
218
+ - @ai-sdk/openai-compatible@3.0.0-beta.17
219
+
220
+ ## 2.0.0-beta.16
221
+
222
+ ### Patch Changes
223
+
224
+ - Updated dependencies [46d1149]
225
+ - @ai-sdk/provider-utils@5.0.0-beta.12
226
+ - @ai-sdk/openai-compatible@3.0.0-beta.16
227
+
228
+ ## 2.0.0-beta.15
229
+
230
+ ### Patch Changes
231
+
232
+ - Updated dependencies [6fd51c0]
233
+ - @ai-sdk/provider-utils@5.0.0-beta.11
234
+ - @ai-sdk/provider@4.0.0-beta.7
235
+ - @ai-sdk/openai-compatible@3.0.0-beta.15
236
+
237
+ ## 2.0.0-beta.14
238
+
239
+ ### Patch Changes
240
+
241
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
242
+ - Updated dependencies [c29a26f]
243
+ - @ai-sdk/openai-compatible@3.0.0-beta.14
244
+ - @ai-sdk/provider-utils@5.0.0-beta.10
245
+ - @ai-sdk/provider@4.0.0-beta.6
246
+
247
+ ## 2.0.0-beta.13
248
+
249
+ ### Patch Changes
250
+
251
+ - 38fc777: Add AI Gateway hint to provider READMEs
252
+ - Updated dependencies [38fc777]
253
+ - @ai-sdk/openai-compatible@3.0.0-beta.13
254
+
255
+ ## 2.0.0-beta.12
256
+
257
+ ### Patch Changes
258
+
259
+ - Updated dependencies [2e17091]
260
+ - @ai-sdk/provider-utils@5.0.0-beta.9
261
+ - @ai-sdk/openai-compatible@3.0.0-beta.12
262
+
263
+ ## 2.0.0-beta.11
264
+
265
+ ### Patch Changes
266
+
267
+ - Updated dependencies [986c6fd]
268
+ - Updated dependencies [493295c]
269
+ - @ai-sdk/provider-utils@5.0.0-beta.8
270
+ - @ai-sdk/openai-compatible@3.0.0-beta.11
271
+
272
+ ## 2.0.0-beta.10
273
+
274
+ ### Patch Changes
275
+
276
+ - Updated dependencies [1f509d4]
277
+ - @ai-sdk/provider-utils@5.0.0-beta.7
278
+ - @ai-sdk/provider@4.0.0-beta.5
279
+ - @ai-sdk/openai-compatible@3.0.0-beta.10
280
+
3
281
  ## 2.0.0-beta.9
4
282
 
5
283
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **[Hugging Face Inference Providers](https://huggingface.co/docs/inference-providers/index)** for the [Vercel AI SDK](https://ai-sdk.dev/docs) contains language model support for thousands of models through multiple inference providers via the Hugging Face router API.
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Hugging Face (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 Hugging Face provider is available in the `@ai-sdk/huggingface` module. You can install it with:
package/dist/index.d.ts CHANGED
@@ -54,6 +54,8 @@ declare function createHuggingFace(options?: HuggingFaceProviderSettings): Huggi
54
54
  /**
55
55
  * Default Hugging Face provider instance.
56
56
  */
57
- declare const huggingface: HuggingFaceProvider;
57
+ declare const huggingFace: HuggingFaceProvider;
58
58
 
59
- export { type HuggingFaceProvider, type HuggingFaceProviderSettings, type HuggingFaceResponsesModelId, type HuggingFaceResponsesSettings, createHuggingFace, huggingface };
59
+ declare const VERSION: string;
60
+
61
+ export { type HuggingFaceProvider, type HuggingFaceProviderSettings, type HuggingFaceResponsesModelId, type HuggingFaceResponsesSettings, VERSION, createHuggingFace, huggingFace, huggingFace as huggingface };