ai 5.0.0-beta.27 → 5.0.0-beta.28
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 +10 -0
- package/dist/bin/ai.min.js +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
@@ -879,7 +879,8 @@ function prepareToolsAndToolChoice({
|
|
879
879
|
type: "function",
|
880
880
|
name: name16,
|
881
881
|
description: tool3.description,
|
882
|
-
inputSchema: asSchema(tool3.inputSchema).jsonSchema
|
882
|
+
inputSchema: asSchema(tool3.inputSchema).jsonSchema,
|
883
|
+
providerOptions: tool3.providerOptions
|
883
884
|
};
|
884
885
|
case "provider-defined":
|
885
886
|
return {
|
@@ -8752,8 +8753,8 @@ var AbstractChat = class {
|
|
8752
8753
|
} : part
|
8753
8754
|
);
|
8754
8755
|
}
|
8755
|
-
if (this.status !== "streaming" && this.status !== "submitted" && ((_a16 = this.sendAutomaticallyWhen) == null ? void 0 : _a16.call(this, { messages }))) {
|
8756
|
-
|
8756
|
+
if (this.status !== "streaming" && this.status !== "submitted" && ((_a16 = this.sendAutomaticallyWhen) == null ? void 0 : _a16.call(this, { messages: this.state.messages }))) {
|
8757
|
+
this.makeRequest({
|
8757
8758
|
trigger: "submit-message",
|
8758
8759
|
messageId: (_b = this.lastMessage) == null ? void 0 : _b.id
|
8759
8760
|
});
|