ai 6.0.20 → 6.0.22
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 +14 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +5 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -909,7 +909,7 @@ import {
|
|
|
909
909
|
} from "@ai-sdk/provider-utils";
|
|
910
910
|
|
|
911
911
|
// src/version.ts
|
|
912
|
-
var VERSION = true ? "6.0.
|
|
912
|
+
var VERSION = true ? "6.0.22" : "0.0.0-test";
|
|
913
913
|
|
|
914
914
|
// src/util/download/download.ts
|
|
915
915
|
var download = async ({ url }) => {
|
|
@@ -5672,11 +5672,7 @@ function streamText({
|
|
|
5672
5672
|
onAbort,
|
|
5673
5673
|
onStepFinish,
|
|
5674
5674
|
experimental_context,
|
|
5675
|
-
_internal: {
|
|
5676
|
-
now: now2 = now,
|
|
5677
|
-
generateId: generateId2 = originalGenerateId2,
|
|
5678
|
-
currentDate = () => /* @__PURE__ */ new Date()
|
|
5679
|
-
} = {},
|
|
5675
|
+
_internal: { now: now2 = now, generateId: generateId2 = originalGenerateId2 } = {},
|
|
5680
5676
|
...settings
|
|
5681
5677
|
}) {
|
|
5682
5678
|
const totalTimeoutMs = getTotalTimeoutMs(timeout);
|
|
@@ -5709,7 +5705,6 @@ function streamText({
|
|
|
5709
5705
|
onAbort,
|
|
5710
5706
|
onStepFinish,
|
|
5711
5707
|
now: now2,
|
|
5712
|
-
currentDate,
|
|
5713
5708
|
generateId: generateId2,
|
|
5714
5709
|
experimental_context,
|
|
5715
5710
|
download: download2
|
|
@@ -5799,7 +5794,6 @@ var DefaultStreamTextResult = class {
|
|
|
5799
5794
|
prepareStep,
|
|
5800
5795
|
includeRawChunks,
|
|
5801
5796
|
now: now2,
|
|
5802
|
-
currentDate,
|
|
5803
5797
|
generateId: generateId2,
|
|
5804
5798
|
onChunk,
|
|
5805
5799
|
onError,
|
|
@@ -6366,7 +6360,7 @@ var DefaultStreamTextResult = class {
|
|
|
6366
6360
|
let stepFirstChunk = true;
|
|
6367
6361
|
let stepResponse = {
|
|
6368
6362
|
id: generateId2(),
|
|
6369
|
-
timestamp:
|
|
6363
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
6370
6364
|
modelId: model.modelId
|
|
6371
6365
|
};
|
|
6372
6366
|
let activeText = "";
|
|
@@ -7726,6 +7720,7 @@ var uiMessagesSchema = lazySchema2(
|
|
|
7726
7720
|
toolCallId: z8.string(),
|
|
7727
7721
|
state: z8.literal("output-error"),
|
|
7728
7722
|
input: z8.unknown(),
|
|
7723
|
+
rawInput: z8.unknown().optional(),
|
|
7729
7724
|
providerExecuted: z8.boolean().optional(),
|
|
7730
7725
|
output: z8.never().optional(),
|
|
7731
7726
|
errorText: z8.string(),
|
|
@@ -7825,6 +7820,7 @@ var uiMessagesSchema = lazySchema2(
|
|
|
7825
7820
|
state: z8.literal("output-error"),
|
|
7826
7821
|
providerExecuted: z8.boolean().optional(),
|
|
7827
7822
|
input: z8.unknown(),
|
|
7823
|
+
rawInput: z8.unknown().optional(),
|
|
7828
7824
|
output: z8.never().optional(),
|
|
7829
7825
|
errorText: z8.string(),
|
|
7830
7826
|
callProviderMetadata: providerMetadataSchema.optional(),
|