@aidejs/core 0.1.0-beta.0 → 0.1.0
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 +6 -2
- package/package.json +1 -1
- package/src/index.js +1 -2
package/CHANGELOG
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -7,7 +7,6 @@ const { debug } = require("./utils");
|
|
|
7
7
|
module.exports = class Aidejs {
|
|
8
8
|
|
|
9
9
|
static tool = new Tool(); // 工具管理对象
|
|
10
|
-
static messages = [];
|
|
11
10
|
|
|
12
11
|
constructor(options = {}) {
|
|
13
12
|
this.options = initOption(options, {
|
|
@@ -40,7 +39,7 @@ module.exports = class Aidejs {
|
|
|
40
39
|
let _this = this, toolCalls = false;
|
|
41
40
|
|
|
42
41
|
// 记忆管理对象
|
|
43
|
-
let memory = new Memory([...
|
|
42
|
+
let memory = new Memory([..._this.options.messages]);
|
|
44
43
|
|
|
45
44
|
let runInputback = () => {
|
|
46
45
|
if (inputback) {
|