ai 6.0.0-beta.112 → 6.0.0-beta.114
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -785,7 +785,7 @@ import {
|
|
|
785
785
|
} from "@ai-sdk/provider-utils";
|
|
786
786
|
|
|
787
787
|
// src/version.ts
|
|
788
|
-
var VERSION = true ? "6.0.0-beta.
|
|
788
|
+
var VERSION = true ? "6.0.0-beta.114" : "0.0.0-test";
|
|
789
789
|
|
|
790
790
|
// src/util/download/download.ts
|
|
791
791
|
var download = async ({ url }) => {
|
|
@@ -1621,7 +1621,7 @@ async function standardizePrompt(prompt) {
|
|
|
1621
1621
|
if (!validationResult.success) {
|
|
1622
1622
|
throw new InvalidPromptError2({
|
|
1623
1623
|
prompt,
|
|
1624
|
-
message: "The messages
|
|
1624
|
+
message: "The messages do not match the ModelMessage[] schema.",
|
|
1625
1625
|
cause: validationResult.error
|
|
1626
1626
|
});
|
|
1627
1627
|
}
|
|
@@ -7436,6 +7436,7 @@ async function createAgentUIStream({
|
|
|
7436
7436
|
agent,
|
|
7437
7437
|
messages,
|
|
7438
7438
|
options,
|
|
7439
|
+
abortSignal,
|
|
7439
7440
|
experimental_transform,
|
|
7440
7441
|
...uiMessageStreamOptions
|
|
7441
7442
|
}) {
|
|
@@ -7449,6 +7450,7 @@ async function createAgentUIStream({
|
|
|
7449
7450
|
const result = await agent.stream({
|
|
7450
7451
|
prompt: modelMessages,
|
|
7451
7452
|
options,
|
|
7453
|
+
abortSignal,
|
|
7452
7454
|
experimental_transform
|
|
7453
7455
|
});
|
|
7454
7456
|
return result.toUIMessageStream(uiMessageStreamOptions);
|