ai 4.0.37 → 4.0.38
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 +6 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/rsc/dist/rsc-server.mjs +1 -1
- package/rsc/dist/rsc-server.mjs.map +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
@@ -1717,7 +1717,7 @@ function convertToCoreMessages(messages, options) {
|
|
1717
1717
|
break;
|
1718
1718
|
}
|
1719
1719
|
case "assistant": {
|
1720
|
-
if (toolInvocations == null) {
|
1720
|
+
if (toolInvocations == null || toolInvocations.length === 0) {
|
1721
1721
|
coreMessages.push({ role: "assistant", content });
|
1722
1722
|
break;
|
1723
1723
|
}
|