ai 4.1.16 → 4.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "4.1.16",
3
+ "version": "4.1.18",
4
4
  "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -1573,26 +1573,30 @@ async function streamUI({
1573
1573
  // streamUI tools don't support multi-modal tool result conversion
1574
1574
  });
1575
1575
  const result = await retry(
1576
- async () => model.doStream({
1577
- mode: {
1578
- type: "regular",
1579
- ...prepareToolsAndToolChoice({
1580
- tools,
1581
- toolChoice,
1582
- activeTools: void 0
1583
- })
1584
- },
1585
- ...prepareCallSettings(settings),
1586
- inputFormat: validatedPrompt.type,
1587
- prompt: await convertToLanguageModelPrompt({
1588
- prompt: validatedPrompt,
1589
- modelSupportsImageUrls: model.supportsImageUrls,
1590
- modelSupportsUrl: model.supportsUrl
1591
- }),
1592
- providerMetadata: providerOptions,
1593
- abortSignal,
1594
- headers
1595
- })
1576
+ async () => {
1577
+ var _a9;
1578
+ return model.doStream({
1579
+ mode: {
1580
+ type: "regular",
1581
+ ...prepareToolsAndToolChoice({
1582
+ tools,
1583
+ toolChoice,
1584
+ activeTools: void 0
1585
+ })
1586
+ },
1587
+ ...prepareCallSettings(settings),
1588
+ inputFormat: validatedPrompt.type,
1589
+ prompt: await convertToLanguageModelPrompt({
1590
+ prompt: validatedPrompt,
1591
+ modelSupportsImageUrls: model.supportsImageUrls,
1592
+ modelSupportsUrl: (_a9 = model.supportsUrl) == null ? void 0 : _a9.bind(model)
1593
+ // support 'this' context
1594
+ }),
1595
+ providerMetadata: providerOptions,
1596
+ abortSignal,
1597
+ headers
1598
+ });
1599
+ }
1596
1600
  );
1597
1601
  const [stream, forkedStream] = result.stream.tee();
1598
1602
  (async () => {