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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +45 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +35 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/rsc/dist/rsc-server.mjs +24 -20
- package/rsc/dist/rsc-server.mjs.map +1 -1
- package/test/dist/index.d.mts +3 -0
- package/test/dist/index.d.ts +3 -0
- package/test/dist/index.js.map +1 -1
- package/test/dist/index.mjs.map +1 -1
package/package.json
CHANGED
package/rsc/dist/rsc-server.mjs
CHANGED
@@ -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 () =>
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
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 () => {
|