ai 6.0.0-beta.114 → 6.0.0-beta.116
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +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.116" : "0.0.0-test";
|
|
789
789
|
|
|
790
790
|
// src/util/download/download.ts
|
|
791
791
|
var download = async ({ url }) => {
|
|
@@ -9519,7 +9519,7 @@ function pruneMessages({
|
|
|
9519
9519
|
const keptToolCallIds = /* @__PURE__ */ new Set();
|
|
9520
9520
|
const keptApprovalIds = /* @__PURE__ */ new Set();
|
|
9521
9521
|
if (keepLastMessagesCount != null) {
|
|
9522
|
-
for (const message of messages.slice(
|
|
9522
|
+
for (const message of messages.slice(-keepLastMessagesCount)) {
|
|
9523
9523
|
if ((message.role === "assistant" || message.role === "tool") && typeof message.content !== "string") {
|
|
9524
9524
|
for (const part of message.content) {
|
|
9525
9525
|
if (part.type === "tool-call" || part.type === "tool-result") {
|