@ai-sdk/open-responses 0.0.0-07500555-20260730161446

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 ADDED
@@ -0,0 +1,648 @@
1
+ # @ai-sdk/open-responses
2
+
3
+ ## 0.0.0-07500555-20260730161446
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [589d87c]
8
+ - @ai-sdk/provider@0.0.0-07500555-20260730161446
9
+ - @ai-sdk/provider-utils@0.0.0-07500555-20260730161446
10
+
11
+ ## 2.0.12
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [02ffdcb]
16
+ - Updated dependencies [76cb673]
17
+ - @ai-sdk/provider-utils@5.0.12
18
+
19
+ ## 2.0.11
20
+
21
+ ### Patch Changes
22
+
23
+ - 75f86f4: fix(provider/openai, provider/open-responses): throw a descriptive error when the Responses API returns a 200 with no `output`
24
+
25
+ A successful (200) Responses body missing the `output` array previously threw an opaque `output is not iterable` TypeError from `doGenerate`. Both providers now surface a clear `APICallError` ("Responses API returned no output …"), including the incomplete-details reason (and status, for open-responses) when present. When the body includes a `response.error`, its message is surfaced first so upstream error details aren't masked by the generic fallback. This makes malformed/incomplete upstream responses actionable instead of a cryptic crash.
26
+
27
+ - Updated dependencies [cd06458]
28
+ - @ai-sdk/provider-utils@5.0.11
29
+
30
+ ## 2.0.10
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [31c7be8]
35
+ - @ai-sdk/provider-utils@5.0.10
36
+
37
+ ## 2.0.9
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [4be62c1]
42
+ - Updated dependencies [7805e4a]
43
+ - Updated dependencies [cd12954]
44
+ - @ai-sdk/provider-utils@5.0.9
45
+
46
+ ## 2.0.8
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [e193290]
51
+ - @ai-sdk/provider-utils@5.0.8
52
+
53
+ ## 2.0.7
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [0f93c57]
58
+ - @ai-sdk/provider@4.0.3
59
+ - @ai-sdk/provider-utils@5.0.7
60
+
61
+ ## 2.0.6
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies [ac306ed]
66
+ - @ai-sdk/provider-utils@5.0.6
67
+
68
+ ## 2.0.5
69
+
70
+ ### Patch Changes
71
+
72
+ - 5c5c0f5: Add experimental streaming transcription support for transcription models, including OpenAI `gpt-realtime-whisper` and xAI WebSocket STT.
73
+ - Updated dependencies [5c5c0f5]
74
+ - @ai-sdk/provider@4.0.2
75
+ - @ai-sdk/provider-utils@5.0.5
76
+
77
+ ## 2.0.4
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [c6f5e62]
82
+ - @ai-sdk/provider-utils@5.0.4
83
+
84
+ ## 2.0.3
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [8c616f0]
89
+ - @ai-sdk/provider-utils@5.0.3
90
+
91
+ ## 2.0.2
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies [0274f34]
96
+ - @ai-sdk/provider@4.0.1
97
+ - @ai-sdk/provider-utils@5.0.2
98
+
99
+ ## 2.0.1
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies [6a436e3]
104
+ - @ai-sdk/provider-utils@5.0.1
105
+
106
+ ## 2.0.0
107
+
108
+ ### Major Changes
109
+
110
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
111
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
112
+ - 8359612: Start v7 pre-release
113
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
114
+
115
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
116
+
117
+ ### Patch Changes
118
+
119
+ - 74d520f: feat: migrate providers to support new top-level `reasoning` parameter
120
+ - 9f0e36c: trigger release for all packages after provenance setup
121
+ - 58a2ad7: fix: more precise default message for tool execution denial
122
+ - fb82a6c: Harden streamed tool call argument handling against prototype pollution.
123
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
124
+ - 0c4c275: trigger initial canary release
125
+ - 8831e80: chore(provider/open-responses): update provider to use v4 types
126
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
127
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
128
+ - e69a836: feat(open-responses): add option to pass reasoning summary for OpenResponses
129
+ - 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types
130
+ - b8396f0: trigger initial beta release
131
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
132
+ - 52d2e30: fix(open-responses): map non-image file parts to input_file
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
+ - ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
142
+
143
+ ## 2.0.0-beta.55
144
+
145
+ ### Patch Changes
146
+
147
+ - Updated dependencies [0416e3e]
148
+ - @ai-sdk/provider@4.0.0-beta.20
149
+ - @ai-sdk/provider-utils@5.0.0-beta.50
150
+
151
+ ## 2.0.0-beta.54
152
+
153
+ ### Patch Changes
154
+
155
+ - b8396f0: trigger initial beta release
156
+ - Updated dependencies [b8396f0]
157
+ - @ai-sdk/provider-utils@5.0.0-beta.49
158
+ - @ai-sdk/provider@4.0.0-beta.19
159
+
160
+ ## 2.0.0-canary.53
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [aeda373]
165
+ - Updated dependencies [375fdd7]
166
+ - Updated dependencies [b4507d5]
167
+ - @ai-sdk/provider-utils@5.0.0-canary.48
168
+
169
+ ## 2.0.0-canary.52
170
+
171
+ ### Patch Changes
172
+
173
+ - fb82a6c: Harden streamed tool call argument handling against prototype pollution.
174
+
175
+ ## 2.0.0-canary.51
176
+
177
+ ### Patch Changes
178
+
179
+ - Updated dependencies [bae5e2b]
180
+ - @ai-sdk/provider-utils@5.0.0-canary.47
181
+
182
+ ## 2.0.0-canary.50
183
+
184
+ ### Patch Changes
185
+
186
+ - Updated dependencies [ce769dd]
187
+ - @ai-sdk/provider@4.0.0-canary.18
188
+ - @ai-sdk/provider-utils@5.0.0-canary.46
189
+
190
+ ## 2.0.0-canary.49
191
+
192
+ ### Patch Changes
193
+
194
+ - Updated dependencies [ee798eb]
195
+ - Updated dependencies [daf6637]
196
+ - @ai-sdk/provider-utils@5.0.0-canary.45
197
+
198
+ ## 2.0.0-canary.48
199
+
200
+ ### Patch Changes
201
+
202
+ - Updated dependencies [6c93e36]
203
+ - Updated dependencies [f617ac2]
204
+ - @ai-sdk/provider-utils@5.0.0-canary.44
205
+
206
+ ## 2.0.0-canary.47
207
+
208
+ ### Patch Changes
209
+
210
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
211
+ - Updated dependencies [7fc6bd6]
212
+ - @ai-sdk/provider-utils@5.0.0-canary.43
213
+ - @ai-sdk/provider@4.0.0-canary.17
214
+
215
+ ## 2.0.0-canary.46
216
+
217
+ ### Patch Changes
218
+
219
+ - Updated dependencies [a6617c5]
220
+ - @ai-sdk/provider-utils@5.0.0-canary.42
221
+
222
+ ## 2.0.0-canary.45
223
+
224
+ ### Patch Changes
225
+
226
+ - Updated dependencies [28dfa06]
227
+ - Updated dependencies [e93fa91]
228
+ - @ai-sdk/provider-utils@5.0.0-canary.41
229
+
230
+ ## 2.0.0-canary.44
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies [a7de9c9]
235
+ - @ai-sdk/provider-utils@5.0.0-canary.40
236
+
237
+ ## 2.0.0-canary.43
238
+
239
+ ### Patch Changes
240
+
241
+ - Updated dependencies [105f95b]
242
+ - @ai-sdk/provider-utils@5.0.0-canary.39
243
+
244
+ ## 2.0.0-canary.42
245
+
246
+ ### Patch Changes
247
+
248
+ - 52d2e30: fix(open-responses): map non-image file parts to input_file
249
+
250
+ ## 2.0.0-canary.41
251
+
252
+ ### Patch Changes
253
+
254
+ - Updated dependencies [ca446f8]
255
+ - @ai-sdk/provider-utils@5.0.0-canary.38
256
+
257
+ ## 2.0.0-canary.40
258
+
259
+ ### Patch Changes
260
+
261
+ - Updated dependencies [d848405]
262
+ - @ai-sdk/provider-utils@5.0.0-canary.37
263
+
264
+ ## 2.0.0-canary.39
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [ca39020]
269
+ - @ai-sdk/provider-utils@5.0.0-canary.36
270
+
271
+ ## 2.0.0-canary.38
272
+
273
+ ### Patch Changes
274
+
275
+ - Updated dependencies [f634bac]
276
+ - @ai-sdk/provider-utils@5.0.0-canary.35
277
+
278
+ ## 2.0.0-canary.37
279
+
280
+ ### Patch Changes
281
+
282
+ - Updated dependencies [69254e0]
283
+ - Updated dependencies [3015fc3]
284
+ - @ai-sdk/provider-utils@5.0.0-canary.34
285
+
286
+ ## 2.0.0-canary.36
287
+
288
+ ### Patch Changes
289
+
290
+ - Updated dependencies [2427d88]
291
+ - @ai-sdk/provider-utils@5.0.0-canary.33
292
+
293
+ ## 2.0.0-canary.35
294
+
295
+ ### Patch Changes
296
+
297
+ - 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types
298
+ - Updated dependencies [5463d0d]
299
+ - @ai-sdk/provider-utils@5.0.0-canary.32
300
+ - @ai-sdk/provider@4.0.0-canary.16
301
+
302
+ ## 2.0.0-canary.34
303
+
304
+ ### Patch Changes
305
+
306
+ - 0c4c275: trigger initial canary release
307
+ - Updated dependencies [0c4c275]
308
+ - @ai-sdk/provider-utils@5.0.0-canary.31
309
+ - @ai-sdk/provider@4.0.0-canary.15
310
+
311
+ ## 2.0.0-beta.33
312
+
313
+ ### Major Changes
314
+
315
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
316
+
317
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
318
+
319
+ ### Patch Changes
320
+
321
+ - Updated dependencies [08d2129]
322
+ - @ai-sdk/provider-utils@5.0.0-beta.30
323
+
324
+ ## 2.0.0-beta.32
325
+
326
+ ### Patch Changes
327
+
328
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
329
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
330
+ - Updated dependencies [9bd6512]
331
+ - Updated dependencies [258c093]
332
+ - Updated dependencies [b6783da]
333
+ - @ai-sdk/provider-utils@5.0.0-beta.29
334
+ - @ai-sdk/provider@4.0.0-beta.14
335
+
336
+ ## 2.0.0-beta.31
337
+
338
+ ### Patch Changes
339
+
340
+ - 9f0e36c: trigger release for all packages after provenance setup
341
+ - Updated dependencies [9f0e36c]
342
+ - @ai-sdk/provider@4.0.0-beta.13
343
+ - @ai-sdk/provider-utils@5.0.0-beta.28
344
+
345
+ ## 2.0.0-beta.30
346
+
347
+ ### Patch Changes
348
+
349
+ - 58a2ad7: fix: more precise default message for tool execution denial
350
+ - Updated dependencies [785fe16]
351
+ - Updated dependencies [67df0a0]
352
+ - Updated dependencies [befb78c]
353
+ - Updated dependencies [0458559]
354
+ - Updated dependencies [5852c0a]
355
+ - Updated dependencies [fc92055]
356
+ - @ai-sdk/provider-utils@5.0.0-beta.27
357
+
358
+ ## 2.0.0-beta.29
359
+
360
+ ### Patch Changes
361
+
362
+ - Updated dependencies [2e98477]
363
+ - @ai-sdk/provider-utils@5.0.0-beta.26
364
+
365
+ ## 2.0.0-beta.28
366
+
367
+ ### Patch Changes
368
+
369
+ - Updated dependencies [eea8d98]
370
+ - @ai-sdk/provider-utils@5.0.0-beta.25
371
+
372
+ ## 2.0.0-beta.27
373
+
374
+ ### Patch Changes
375
+
376
+ - Updated dependencies [f807e45]
377
+ - @ai-sdk/provider-utils@5.0.0-beta.24
378
+
379
+ ## 2.0.0-beta.26
380
+
381
+ ### Patch Changes
382
+
383
+ - Updated dependencies [350ea38]
384
+ - @ai-sdk/provider-utils@5.0.0-beta.23
385
+
386
+ ## 2.0.0-beta.25
387
+
388
+ ### Patch Changes
389
+
390
+ - Updated dependencies [083947b]
391
+ - @ai-sdk/provider-utils@5.0.0-beta.22
392
+
393
+ ## 2.0.0-beta.24
394
+
395
+ ### Patch Changes
396
+
397
+ - Updated dependencies [add1126]
398
+ - @ai-sdk/provider-utils@5.0.0-beta.21
399
+
400
+ ## 2.0.0-beta.23
401
+
402
+ ### Patch Changes
403
+
404
+ - b3976a2: Add workflow serialization support to all provider models.
405
+
406
+ **`@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.
407
+
408
+ **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.
409
+
410
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
411
+
412
+ - ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
413
+ - Updated dependencies [b3976a2]
414
+ - Updated dependencies [ff5eba1]
415
+ - @ai-sdk/provider-utils@5.0.0-beta.20
416
+ - @ai-sdk/provider@4.0.0-beta.12
417
+
418
+ ## 2.0.0-beta.22
419
+
420
+ ### Major Changes
421
+
422
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
423
+
424
+ ### Patch Changes
425
+
426
+ - Updated dependencies [ef992f8]
427
+ - @ai-sdk/provider@4.0.0-beta.11
428
+ - @ai-sdk/provider-utils@5.0.0-beta.19
429
+
430
+ ## 2.0.0-beta.21
431
+
432
+ ### Patch Changes
433
+
434
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
435
+ - Updated dependencies [90e2d8a]
436
+ - @ai-sdk/provider-utils@5.0.0-beta.18
437
+
438
+ ## 2.0.0-beta.20
439
+
440
+ ### Patch Changes
441
+
442
+ - Updated dependencies [3ae1786]
443
+ - @ai-sdk/provider-utils@5.0.0-beta.17
444
+
445
+ ## 2.0.0-beta.19
446
+
447
+ ### Patch Changes
448
+
449
+ - Updated dependencies [176466a]
450
+ - @ai-sdk/provider@4.0.0-beta.10
451
+ - @ai-sdk/provider-utils@5.0.0-beta.16
452
+
453
+ ## 2.0.0-beta.18
454
+
455
+ ### Patch Changes
456
+
457
+ - Updated dependencies [e311194]
458
+ - @ai-sdk/provider@4.0.0-beta.9
459
+ - @ai-sdk/provider-utils@5.0.0-beta.15
460
+
461
+ ## 2.0.0-beta.17
462
+
463
+ ### Patch Changes
464
+
465
+ - e69a836: feat(open-responses): add option to pass reasoning summary for OpenResponses
466
+
467
+ ## 2.0.0-beta.16
468
+
469
+ ### Patch Changes
470
+
471
+ - Updated dependencies [34bd95d]
472
+ - Updated dependencies [008271d]
473
+ - @ai-sdk/provider@4.0.0-beta.8
474
+ - @ai-sdk/provider-utils@5.0.0-beta.14
475
+
476
+ ## 2.0.0-beta.15
477
+
478
+ ### Patch Changes
479
+
480
+ - Updated dependencies [b0c2869]
481
+ - Updated dependencies [7e26e81]
482
+ - @ai-sdk/provider-utils@5.0.0-beta.13
483
+
484
+ ## 2.0.0-beta.14
485
+
486
+ ### Patch Changes
487
+
488
+ - Updated dependencies [46d1149]
489
+ - @ai-sdk/provider-utils@5.0.0-beta.12
490
+
491
+ ## 2.0.0-beta.13
492
+
493
+ ### Patch Changes
494
+
495
+ - Updated dependencies [6fd51c0]
496
+ - @ai-sdk/provider-utils@5.0.0-beta.11
497
+ - @ai-sdk/provider@4.0.0-beta.7
498
+
499
+ ## 2.0.0-beta.12
500
+
501
+ ### Patch Changes
502
+
503
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
504
+ - Updated dependencies [c29a26f]
505
+ - @ai-sdk/provider-utils@5.0.0-beta.10
506
+ - @ai-sdk/provider@4.0.0-beta.6
507
+
508
+ ## 2.0.0-beta.11
509
+
510
+ ### Patch Changes
511
+
512
+ - Updated dependencies [2e17091]
513
+ - @ai-sdk/provider-utils@5.0.0-beta.9
514
+
515
+ ## 2.0.0-beta.10
516
+
517
+ ### Patch Changes
518
+
519
+ - Updated dependencies [986c6fd]
520
+ - Updated dependencies [493295c]
521
+ - @ai-sdk/provider-utils@5.0.0-beta.8
522
+
523
+ ## 2.0.0-beta.9
524
+
525
+ ### Patch Changes
526
+
527
+ - Updated dependencies [1f509d4]
528
+ - @ai-sdk/provider-utils@5.0.0-beta.7
529
+ - @ai-sdk/provider@4.0.0-beta.5
530
+
531
+ ## 2.0.0-beta.8
532
+
533
+ ### Patch Changes
534
+
535
+ - 74d520f: feat: migrate providers to support new top-level `reasoning` parameter
536
+
537
+ ## 2.0.0-beta.7
538
+
539
+ ### Patch Changes
540
+
541
+ - Updated dependencies [3887c70]
542
+ - @ai-sdk/provider-utils@5.0.0-beta.6
543
+ - @ai-sdk/provider@4.0.0-beta.4
544
+
545
+ ## 2.0.0-beta.6
546
+
547
+ ### Patch Changes
548
+
549
+ - Updated dependencies [776b617]
550
+ - @ai-sdk/provider-utils@5.0.0-beta.5
551
+ - @ai-sdk/provider@4.0.0-beta.3
552
+
553
+ ## 2.0.0-beta.5
554
+
555
+ ### Patch Changes
556
+
557
+ - Updated dependencies [61753c3]
558
+ - @ai-sdk/provider-utils@5.0.0-beta.4
559
+
560
+ ## 2.0.0-beta.4
561
+
562
+ ### Patch Changes
563
+
564
+ - Updated dependencies [f7d4f01]
565
+ - @ai-sdk/provider-utils@5.0.0-beta.3
566
+ - @ai-sdk/provider@4.0.0-beta.2
567
+
568
+ ## 2.0.0-beta.3
569
+
570
+ ### Patch Changes
571
+
572
+ - Updated dependencies [5c2a5a2]
573
+ - @ai-sdk/provider@4.0.0-beta.1
574
+ - @ai-sdk/provider-utils@5.0.0-beta.2
575
+
576
+ ## 2.0.0-beta.2
577
+
578
+ ### Patch Changes
579
+
580
+ - 8831e80: chore(provider/open-responses): update provider to use v4 types
581
+
582
+ ## 2.0.0-beta.1
583
+
584
+ ### Patch Changes
585
+
586
+ - Updated dependencies [531251e]
587
+ - @ai-sdk/provider-utils@5.0.0-beta.1
588
+
589
+ ## 2.0.0-beta.0
590
+
591
+ ### Major Changes
592
+
593
+ - 8359612: Start v7 pre-release
594
+
595
+ ### Patch Changes
596
+
597
+ - Updated dependencies [8359612]
598
+ - @ai-sdk/provider@4.0.0-beta.0
599
+ - @ai-sdk/provider-utils@5.0.0-beta.0
600
+
601
+ ## 1.0.6
602
+
603
+ ### Patch Changes
604
+
605
+ - Updated dependencies [ad4cfc2]
606
+ - @ai-sdk/provider-utils@4.0.19
607
+
608
+ ## 1.0.5
609
+
610
+ ### Patch Changes
611
+
612
+ - Updated dependencies [824b295]
613
+ - @ai-sdk/provider-utils@4.0.18
614
+
615
+ ## 1.0.4
616
+
617
+ ### Patch Changes
618
+
619
+ - Updated dependencies [08336f1]
620
+ - @ai-sdk/provider-utils@4.0.17
621
+
622
+ ## 1.0.3
623
+
624
+ ### Patch Changes
625
+
626
+ - Updated dependencies [58bc42d]
627
+ - @ai-sdk/provider-utils@4.0.16
628
+
629
+ ## 1.0.2
630
+
631
+ ### Patch Changes
632
+
633
+ - Updated dependencies [4024a3a]
634
+ - @ai-sdk/provider-utils@4.0.15
635
+
636
+ ## 1.0.1
637
+
638
+ ### Patch Changes
639
+
640
+ - Updated dependencies [7168375]
641
+ - @ai-sdk/provider@3.0.8
642
+ - @ai-sdk/provider-utils@4.0.14
643
+
644
+ ## 1.0.0
645
+
646
+ ### Major Changes
647
+
648
+ - 8a4f19d: feat(open-responses): add Open Responses provider
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Vercel, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # AI SDK - Open Responses Provider
2
+
3
+ The **[Open Responses provider](https://ai-sdk.dev/providers/ai-sdk-providers/open-responses)** for the [AI SDK](https://ai-sdk.dev/docs)
4
+ contains language model support for [Open Responses](https://www.openresponses.org/) compatible APIs.
5
+
6
+ ## Setup
7
+
8
+ The Open Responses provider is available in the `@ai-sdk/open-responses` module. You can install it with
9
+
10
+ ```bash
11
+ npm i @ai-sdk/open-responses
12
+ ```
13
+
14
+ ## Skill for Coding Agents
15
+
16
+ If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:
17
+
18
+ ```shell
19
+ npx skills add vercel/ai
20
+ ```
21
+
22
+ ## Provider Instance
23
+
24
+ Create an Open Responses provider instance using `createOpenResponses`:
25
+
26
+ ```ts
27
+ import { createOpenResponses } from '@ai-sdk/open-responses';
28
+
29
+ const openResponses = createOpenResponses({
30
+ name: 'aProvider',
31
+ url: 'http://localhost:1234/v1/responses',
32
+ });
33
+ ```
34
+
35
+ You can use this instance to access models served by any Open Responses compatible endpoint.
36
+
37
+ ## Example
38
+
39
+ ```ts
40
+ import { createOpenResponses } from '@ai-sdk/open-responses';
41
+ import { generateText } from 'ai';
42
+
43
+ const openResponses = createOpenResponses({
44
+ name: 'aProvider',
45
+ url: 'http://localhost:1234/v1/responses',
46
+ });
47
+
48
+ const { text } = await generateText({
49
+ model: openResponses('mistralai/ministral-3-14b-reasoning'),
50
+ prompt: 'Invent a new holiday and describe its traditions.',
51
+ maxOutputTokens: 100,
52
+ });
53
+ ```
54
+
55
+ ## Documentation
56
+
57
+ Please check out the **[Open Responses provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/open-responses)** for more information.