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

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