@ai-sdk/togetherai 3.0.0-beta.5 → 3.0.0-beta.57
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 +482 -8
- package/README.md +2 -0
- package/dist/index.js +131 -115
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
- package/src/index.ts +2 -2
- package/src/reranking/togetherai-reranking-api.ts +1 -1
- package/src/reranking/{togetherai-reranking-options.ts → togetherai-reranking-model-options.ts} +5 -1
- package/src/reranking/togetherai-reranking-model.ts +5 -6
- package/src/togetherai-image-model-options.ts +43 -0
- package/src/togetherai-image-model.ts +24 -46
- package/src/togetherai-provider.ts +7 -7
- package/dist/index.d.mts +0 -103
- package/dist/index.mjs +0 -354
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,479 @@
|
|
|
1
1
|
# @ai-sdk/togetherai
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.57
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b8396f0: trigger initial beta release
|
|
8
|
+
- Updated dependencies [b8396f0]
|
|
9
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.57
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.0-beta.49
|
|
11
|
+
- @ai-sdk/provider@4.0.0-beta.19
|
|
12
|
+
|
|
13
|
+
## 3.0.0-canary.56
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [aeda373]
|
|
18
|
+
- Updated dependencies [375fdd7]
|
|
19
|
+
- Updated dependencies [b4507d5]
|
|
20
|
+
- @ai-sdk/provider-utils@5.0.0-canary.48
|
|
21
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.56
|
|
22
|
+
|
|
23
|
+
## 3.0.0-canary.55
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [bae5e2b]
|
|
28
|
+
- @ai-sdk/provider-utils@5.0.0-canary.47
|
|
29
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.55
|
|
30
|
+
|
|
31
|
+
## 3.0.0-canary.54
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [ce769dd]
|
|
36
|
+
- @ai-sdk/provider@4.0.0-canary.18
|
|
37
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.54
|
|
38
|
+
- @ai-sdk/provider-utils@5.0.0-canary.46
|
|
39
|
+
|
|
40
|
+
## 3.0.0-canary.53
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies [ee798eb]
|
|
45
|
+
- Updated dependencies [daf6637]
|
|
46
|
+
- @ai-sdk/provider-utils@5.0.0-canary.45
|
|
47
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.53
|
|
48
|
+
|
|
49
|
+
## 3.0.0-canary.52
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [6c93e36]
|
|
54
|
+
- Updated dependencies [f617ac2]
|
|
55
|
+
- @ai-sdk/provider-utils@5.0.0-canary.44
|
|
56
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.52
|
|
57
|
+
|
|
58
|
+
## 3.0.0-canary.51
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [9f1e1ba]
|
|
63
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.51
|
|
64
|
+
|
|
65
|
+
## 3.0.0-canary.50
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
70
|
+
- Updated dependencies [7fc6bd6]
|
|
71
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.50
|
|
72
|
+
- @ai-sdk/provider-utils@5.0.0-canary.43
|
|
73
|
+
- @ai-sdk/provider@4.0.0-canary.17
|
|
74
|
+
|
|
75
|
+
## 3.0.0-canary.49
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- 2458cea: Fix: omit `seed` from request body when undefined to avoid "Unsupported use of 'seed' parameter" errors from non-diffusion models (e.g. google/gemini-3-pro-image)
|
|
80
|
+
- Updated dependencies [a6617c5]
|
|
81
|
+
- @ai-sdk/provider-utils@5.0.0-canary.42
|
|
82
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.49
|
|
83
|
+
|
|
84
|
+
## 3.0.0-canary.48
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- Updated dependencies [28dfa06]
|
|
89
|
+
- Updated dependencies [e93fa91]
|
|
90
|
+
- @ai-sdk/provider-utils@5.0.0-canary.41
|
|
91
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.48
|
|
92
|
+
|
|
93
|
+
## 3.0.0-canary.47
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [a7de9c9]
|
|
98
|
+
- @ai-sdk/provider-utils@5.0.0-canary.40
|
|
99
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.47
|
|
100
|
+
|
|
101
|
+
## 3.0.0-canary.46
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- Updated dependencies [105f95b]
|
|
106
|
+
- @ai-sdk/provider-utils@5.0.0-canary.39
|
|
107
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.46
|
|
108
|
+
|
|
109
|
+
## 3.0.0-canary.45
|
|
110
|
+
|
|
111
|
+
### Patch Changes
|
|
112
|
+
|
|
113
|
+
- Updated dependencies [ca446f8]
|
|
114
|
+
- @ai-sdk/provider-utils@5.0.0-canary.38
|
|
115
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.45
|
|
116
|
+
|
|
117
|
+
## 3.0.0-canary.44
|
|
118
|
+
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- Updated dependencies [d848405]
|
|
122
|
+
- @ai-sdk/provider-utils@5.0.0-canary.37
|
|
123
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.44
|
|
124
|
+
|
|
125
|
+
## 3.0.0-canary.43
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- Updated dependencies [ca39020]
|
|
130
|
+
- @ai-sdk/provider-utils@5.0.0-canary.36
|
|
131
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.43
|
|
132
|
+
|
|
133
|
+
## 3.0.0-canary.42
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- Updated dependencies [f634bac]
|
|
138
|
+
- @ai-sdk/provider-utils@5.0.0-canary.35
|
|
139
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.42
|
|
140
|
+
|
|
141
|
+
## 3.0.0-canary.41
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- Updated dependencies [69254e0]
|
|
146
|
+
- Updated dependencies [3015fc3]
|
|
147
|
+
- @ai-sdk/provider-utils@5.0.0-canary.34
|
|
148
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.41
|
|
149
|
+
|
|
150
|
+
## 3.0.0-canary.40
|
|
151
|
+
|
|
152
|
+
### Patch Changes
|
|
153
|
+
|
|
154
|
+
- Updated dependencies [2427d88]
|
|
155
|
+
- @ai-sdk/provider-utils@5.0.0-canary.33
|
|
156
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.40
|
|
157
|
+
|
|
158
|
+
## 3.0.0-canary.39
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- Updated dependencies [5463d0d]
|
|
163
|
+
- @ai-sdk/provider-utils@5.0.0-canary.32
|
|
164
|
+
- @ai-sdk/provider@4.0.0-canary.16
|
|
165
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.39
|
|
166
|
+
|
|
167
|
+
## 3.0.0-canary.38
|
|
168
|
+
|
|
169
|
+
### Patch Changes
|
|
170
|
+
|
|
171
|
+
- Updated dependencies [cd9c311]
|
|
172
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.38
|
|
173
|
+
|
|
174
|
+
## 3.0.0-canary.37
|
|
175
|
+
|
|
176
|
+
### Patch Changes
|
|
177
|
+
|
|
178
|
+
- 0c4c275: trigger initial canary release
|
|
179
|
+
- Updated dependencies [0c4c275]
|
|
180
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.37
|
|
181
|
+
- @ai-sdk/provider-utils@5.0.0-canary.31
|
|
182
|
+
- @ai-sdk/provider@4.0.0-canary.15
|
|
183
|
+
|
|
184
|
+
## 3.0.0-beta.36
|
|
185
|
+
|
|
186
|
+
### Patch Changes
|
|
187
|
+
|
|
188
|
+
- Updated dependencies [e59c955]
|
|
189
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.36
|
|
190
|
+
|
|
191
|
+
## 3.0.0-beta.35
|
|
192
|
+
|
|
193
|
+
### Major Changes
|
|
194
|
+
|
|
195
|
+
- 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
|
|
196
|
+
|
|
197
|
+
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
|
|
198
|
+
|
|
199
|
+
### Patch Changes
|
|
200
|
+
|
|
201
|
+
- Updated dependencies [08d2129]
|
|
202
|
+
- Updated dependencies [04e9009]
|
|
203
|
+
- @ai-sdk/provider-utils@5.0.0-beta.30
|
|
204
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.35
|
|
205
|
+
|
|
206
|
+
## 3.0.0-beta.34
|
|
207
|
+
|
|
208
|
+
### Patch Changes
|
|
209
|
+
|
|
210
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
211
|
+
- Updated dependencies [9bd6512]
|
|
212
|
+
- Updated dependencies [258c093]
|
|
213
|
+
- Updated dependencies [b6783da]
|
|
214
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.34
|
|
215
|
+
- @ai-sdk/provider-utils@5.0.0-beta.29
|
|
216
|
+
- @ai-sdk/provider@4.0.0-beta.14
|
|
217
|
+
|
|
218
|
+
## 3.0.0-beta.33
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
223
|
+
- Updated dependencies [9f0e36c]
|
|
224
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.33
|
|
225
|
+
- @ai-sdk/provider@4.0.0-beta.13
|
|
226
|
+
- @ai-sdk/provider-utils@5.0.0-beta.28
|
|
227
|
+
|
|
228
|
+
## 3.0.0-beta.32
|
|
229
|
+
|
|
230
|
+
### Patch Changes
|
|
231
|
+
|
|
232
|
+
- Updated dependencies [ab81968]
|
|
233
|
+
- Updated dependencies [785fe16]
|
|
234
|
+
- Updated dependencies [67df0a0]
|
|
235
|
+
- Updated dependencies [befb78c]
|
|
236
|
+
- Updated dependencies [0458559]
|
|
237
|
+
- Updated dependencies [58a2ad7]
|
|
238
|
+
- Updated dependencies [5852c0a]
|
|
239
|
+
- Updated dependencies [fc92055]
|
|
240
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.32
|
|
241
|
+
- @ai-sdk/provider-utils@5.0.0-beta.27
|
|
242
|
+
|
|
243
|
+
## 3.0.0-beta.31
|
|
244
|
+
|
|
245
|
+
### Patch Changes
|
|
246
|
+
|
|
247
|
+
- Updated dependencies [2e98477]
|
|
248
|
+
- Updated dependencies [bfb756d]
|
|
249
|
+
- @ai-sdk/provider-utils@5.0.0-beta.26
|
|
250
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.31
|
|
251
|
+
|
|
252
|
+
## 3.0.0-beta.30
|
|
253
|
+
|
|
254
|
+
### Patch Changes
|
|
255
|
+
|
|
256
|
+
- Updated dependencies [eea8d98]
|
|
257
|
+
- @ai-sdk/provider-utils@5.0.0-beta.25
|
|
258
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.30
|
|
259
|
+
|
|
260
|
+
## 3.0.0-beta.29
|
|
261
|
+
|
|
262
|
+
### Patch Changes
|
|
263
|
+
|
|
264
|
+
- Updated dependencies [f807e45]
|
|
265
|
+
- @ai-sdk/provider-utils@5.0.0-beta.24
|
|
266
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.29
|
|
267
|
+
|
|
268
|
+
## 3.0.0-beta.28
|
|
269
|
+
|
|
270
|
+
### Patch Changes
|
|
271
|
+
|
|
272
|
+
- Updated dependencies [350ea38]
|
|
273
|
+
- @ai-sdk/provider-utils@5.0.0-beta.23
|
|
274
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.28
|
|
275
|
+
|
|
276
|
+
## 3.0.0-beta.27
|
|
277
|
+
|
|
278
|
+
### Patch Changes
|
|
279
|
+
|
|
280
|
+
- Updated dependencies [083947b]
|
|
281
|
+
- @ai-sdk/provider-utils@5.0.0-beta.22
|
|
282
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.27
|
|
283
|
+
|
|
284
|
+
## 3.0.0-beta.26
|
|
285
|
+
|
|
286
|
+
### Patch Changes
|
|
287
|
+
|
|
288
|
+
- Updated dependencies [add1126]
|
|
289
|
+
- @ai-sdk/provider-utils@5.0.0-beta.21
|
|
290
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.26
|
|
291
|
+
|
|
292
|
+
## 3.0.0-beta.25
|
|
293
|
+
|
|
294
|
+
### Patch Changes
|
|
295
|
+
|
|
296
|
+
- b3976a2: Add workflow serialization support to all provider models.
|
|
297
|
+
|
|
298
|
+
**`@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.
|
|
299
|
+
|
|
300
|
+
**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.
|
|
301
|
+
|
|
302
|
+
All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
|
|
303
|
+
|
|
304
|
+
- Updated dependencies [b3976a2]
|
|
305
|
+
- Updated dependencies [ff5eba1]
|
|
306
|
+
- @ai-sdk/provider-utils@5.0.0-beta.20
|
|
307
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.25
|
|
308
|
+
- @ai-sdk/provider@4.0.0-beta.12
|
|
309
|
+
|
|
310
|
+
## 3.0.0-beta.24
|
|
311
|
+
|
|
312
|
+
### Major Changes
|
|
313
|
+
|
|
314
|
+
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
|
|
315
|
+
|
|
316
|
+
### Patch Changes
|
|
317
|
+
|
|
318
|
+
- Updated dependencies [ef992f8]
|
|
319
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.24
|
|
320
|
+
- @ai-sdk/provider@4.0.0-beta.11
|
|
321
|
+
- @ai-sdk/provider-utils@5.0.0-beta.19
|
|
322
|
+
|
|
323
|
+
## 3.0.0-beta.23
|
|
324
|
+
|
|
325
|
+
### Patch Changes
|
|
326
|
+
|
|
327
|
+
- 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
|
|
328
|
+
- Updated dependencies [90e2d8a]
|
|
329
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.23
|
|
330
|
+
- @ai-sdk/provider-utils@5.0.0-beta.18
|
|
331
|
+
|
|
332
|
+
## 3.0.0-beta.22
|
|
333
|
+
|
|
334
|
+
### Patch Changes
|
|
335
|
+
|
|
336
|
+
- Updated dependencies [3ae1786]
|
|
337
|
+
- @ai-sdk/provider-utils@5.0.0-beta.17
|
|
338
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.22
|
|
339
|
+
|
|
340
|
+
## 3.0.0-beta.21
|
|
341
|
+
|
|
342
|
+
### Patch Changes
|
|
343
|
+
|
|
344
|
+
- Updated dependencies [176466a]
|
|
345
|
+
- @ai-sdk/provider@4.0.0-beta.10
|
|
346
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.21
|
|
347
|
+
- @ai-sdk/provider-utils@5.0.0-beta.16
|
|
348
|
+
|
|
349
|
+
## 3.0.0-beta.20
|
|
350
|
+
|
|
351
|
+
### Patch Changes
|
|
352
|
+
|
|
353
|
+
- Updated dependencies [e311194]
|
|
354
|
+
- @ai-sdk/provider@4.0.0-beta.9
|
|
355
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.20
|
|
356
|
+
- @ai-sdk/provider-utils@5.0.0-beta.15
|
|
357
|
+
|
|
358
|
+
## 3.0.0-beta.19
|
|
359
|
+
|
|
360
|
+
### Patch Changes
|
|
361
|
+
|
|
362
|
+
- Updated dependencies [34bd95d]
|
|
363
|
+
- Updated dependencies [008271d]
|
|
364
|
+
- @ai-sdk/provider@4.0.0-beta.8
|
|
365
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.19
|
|
366
|
+
- @ai-sdk/provider-utils@5.0.0-beta.14
|
|
367
|
+
|
|
368
|
+
## 3.0.0-beta.18
|
|
369
|
+
|
|
370
|
+
### Patch Changes
|
|
371
|
+
|
|
372
|
+
- Updated dependencies [b0c2869]
|
|
373
|
+
- Updated dependencies [7e26e81]
|
|
374
|
+
- @ai-sdk/provider-utils@5.0.0-beta.13
|
|
375
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.18
|
|
376
|
+
|
|
377
|
+
## 3.0.0-beta.17
|
|
378
|
+
|
|
379
|
+
### Patch Changes
|
|
380
|
+
|
|
381
|
+
- Updated dependencies [816ff67]
|
|
382
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.17
|
|
383
|
+
|
|
384
|
+
## 3.0.0-beta.16
|
|
385
|
+
|
|
386
|
+
### Patch Changes
|
|
387
|
+
|
|
388
|
+
- Updated dependencies [46d1149]
|
|
389
|
+
- @ai-sdk/provider-utils@5.0.0-beta.12
|
|
390
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.16
|
|
391
|
+
|
|
392
|
+
## 3.0.0-beta.15
|
|
393
|
+
|
|
394
|
+
### Patch Changes
|
|
395
|
+
|
|
396
|
+
- Updated dependencies [6fd51c0]
|
|
397
|
+
- @ai-sdk/provider-utils@5.0.0-beta.11
|
|
398
|
+
- @ai-sdk/provider@4.0.0-beta.7
|
|
399
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.15
|
|
400
|
+
|
|
401
|
+
## 3.0.0-beta.14
|
|
402
|
+
|
|
403
|
+
### Patch Changes
|
|
404
|
+
|
|
405
|
+
- Updated dependencies [c29a26f]
|
|
406
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.14
|
|
407
|
+
- @ai-sdk/provider-utils@5.0.0-beta.10
|
|
408
|
+
- @ai-sdk/provider@4.0.0-beta.6
|
|
409
|
+
|
|
410
|
+
## 3.0.0-beta.13
|
|
411
|
+
|
|
412
|
+
### Patch Changes
|
|
413
|
+
|
|
414
|
+
- 38fc777: Add AI Gateway hint to provider READMEs
|
|
415
|
+
- Updated dependencies [38fc777]
|
|
416
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.13
|
|
417
|
+
|
|
418
|
+
## 3.0.0-beta.12
|
|
419
|
+
|
|
420
|
+
### Patch Changes
|
|
421
|
+
|
|
422
|
+
- Updated dependencies [2e17091]
|
|
423
|
+
- @ai-sdk/provider-utils@5.0.0-beta.9
|
|
424
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.12
|
|
425
|
+
|
|
426
|
+
## 3.0.0-beta.11
|
|
427
|
+
|
|
428
|
+
### Patch Changes
|
|
429
|
+
|
|
430
|
+
- Updated dependencies [986c6fd]
|
|
431
|
+
- Updated dependencies [493295c]
|
|
432
|
+
- @ai-sdk/provider-utils@5.0.0-beta.8
|
|
433
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.11
|
|
434
|
+
|
|
435
|
+
## 3.0.0-beta.10
|
|
436
|
+
|
|
437
|
+
### Patch Changes
|
|
438
|
+
|
|
439
|
+
- Updated dependencies [1f509d4]
|
|
440
|
+
- @ai-sdk/provider-utils@5.0.0-beta.7
|
|
441
|
+
- @ai-sdk/provider@4.0.0-beta.5
|
|
442
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.10
|
|
443
|
+
|
|
444
|
+
## 3.0.0-beta.9
|
|
445
|
+
|
|
446
|
+
### Patch Changes
|
|
447
|
+
|
|
448
|
+
- Updated dependencies [74d520f]
|
|
449
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.9
|
|
450
|
+
|
|
451
|
+
## 3.0.0-beta.8
|
|
452
|
+
|
|
453
|
+
### Patch Changes
|
|
454
|
+
|
|
455
|
+
- Updated dependencies [3887c70]
|
|
456
|
+
- @ai-sdk/provider-utils@5.0.0-beta.6
|
|
457
|
+
- @ai-sdk/provider@4.0.0-beta.4
|
|
458
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.8
|
|
459
|
+
|
|
460
|
+
## 3.0.0-beta.7
|
|
461
|
+
|
|
462
|
+
### Patch Changes
|
|
463
|
+
|
|
464
|
+
- Updated dependencies [776b617]
|
|
465
|
+
- @ai-sdk/provider-utils@5.0.0-beta.5
|
|
466
|
+
- @ai-sdk/provider@4.0.0-beta.3
|
|
467
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.7
|
|
468
|
+
|
|
469
|
+
## 3.0.0-beta.6
|
|
470
|
+
|
|
471
|
+
### Patch Changes
|
|
472
|
+
|
|
473
|
+
- Updated dependencies [61753c3]
|
|
474
|
+
- @ai-sdk/provider-utils@5.0.0-beta.4
|
|
475
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.6
|
|
476
|
+
|
|
3
477
|
## 3.0.0-beta.5
|
|
4
478
|
|
|
5
479
|
### Patch Changes
|
|
@@ -374,13 +848,13 @@
|
|
|
374
848
|
Before
|
|
375
849
|
|
|
376
850
|
```ts
|
|
377
|
-
model.textEmbeddingModel(
|
|
851
|
+
model.textEmbeddingModel("my-model-id");
|
|
378
852
|
```
|
|
379
853
|
|
|
380
854
|
After
|
|
381
855
|
|
|
382
856
|
```ts
|
|
383
|
-
model.embeddingModel(
|
|
857
|
+
model.embeddingModel("my-model-id");
|
|
384
858
|
```
|
|
385
859
|
|
|
386
860
|
- 95f65c2: chore: use import \* from zod/v4
|
|
@@ -610,13 +1084,13 @@
|
|
|
610
1084
|
Before
|
|
611
1085
|
|
|
612
1086
|
```ts
|
|
613
|
-
model.textEmbeddingModel(
|
|
1087
|
+
model.textEmbeddingModel("my-model-id");
|
|
614
1088
|
```
|
|
615
1089
|
|
|
616
1090
|
After
|
|
617
1091
|
|
|
618
1092
|
```ts
|
|
619
|
-
model.embeddingModel(
|
|
1093
|
+
model.embeddingModel("my-model-id");
|
|
620
1094
|
```
|
|
621
1095
|
|
|
622
1096
|
- Updated dependencies [8d9e8ad]
|
|
@@ -1111,7 +1585,7 @@
|
|
|
1111
1585
|
|
|
1112
1586
|
```js
|
|
1113
1587
|
await generateImage({
|
|
1114
|
-
model: luma.image(
|
|
1588
|
+
model: luma.image("photon-flash-1", {
|
|
1115
1589
|
maxImagesPerCall: 5,
|
|
1116
1590
|
pollIntervalMillis: 500,
|
|
1117
1591
|
}),
|
|
@@ -1124,7 +1598,7 @@
|
|
|
1124
1598
|
|
|
1125
1599
|
```js
|
|
1126
1600
|
await generateImage({
|
|
1127
|
-
model: luma.image(
|
|
1601
|
+
model: luma.image("photon-flash-1"),
|
|
1128
1602
|
prompt,
|
|
1129
1603
|
n: 10,
|
|
1130
1604
|
maxImagesPerCall: 5,
|
|
@@ -1412,7 +1886,7 @@
|
|
|
1412
1886
|
|
|
1413
1887
|
```js
|
|
1414
1888
|
await generateImage({
|
|
1415
|
-
model: luma.image(
|
|
1889
|
+
model: luma.image("photon-flash-1", {
|
|
1416
1890
|
maxImagesPerCall: 5,
|
|
1417
1891
|
pollIntervalMillis: 500,
|
|
1418
1892
|
}),
|
|
@@ -1425,7 +1899,7 @@
|
|
|
1425
1899
|
|
|
1426
1900
|
```js
|
|
1427
1901
|
await generateImage({
|
|
1428
|
-
model: luma.image(
|
|
1902
|
+
model: luma.image("photon-flash-1"),
|
|
1429
1903
|
prompt,
|
|
1430
1904
|
n: 10,
|
|
1431
1905
|
maxImagesPerCall: 5,
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The **[Together.ai provider](https://ai-sdk.dev/providers/ai-sdk-providers/togetherai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Together.ai](https://together.ai) platform.
|
|
4
4
|
|
|
5
|
+
> **Deploying to Vercel?** With Vercel's AI Gateway you can access Together.ai (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 Together.ai provider is available in the `@ai-sdk/togetherai` module. You can install it with
|