@xdarkicex/openclaw-memory-libravdb 1.4.49 → 1.4.50
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/dist/index.js +4 -0
- package/dist/ingest-queue.js +4 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38242,6 +38242,10 @@ var IngestQueue = class {
|
|
|
38242
38242
|
this.rpcCall = rpcCall;
|
|
38243
38243
|
this.logger = logger;
|
|
38244
38244
|
this.options = { ...DEFAULT_OPTIONS, ...options };
|
|
38245
|
+
if (!(this.options.chunkTokens > 0)) {
|
|
38246
|
+
this.logger.warn?.(`[libravdb] chunkTokens ${this.options.chunkTokens} is invalid; using default ${DEFAULT_OPTIONS.chunkTokens}`);
|
|
38247
|
+
this.options.chunkTokens = DEFAULT_OPTIONS.chunkTokens;
|
|
38248
|
+
}
|
|
38245
38249
|
}
|
|
38246
38250
|
async enqueueIngest(sourceDoc, text, baseParams) {
|
|
38247
38251
|
if (this.options.chunkTokens === Infinity) {
|
package/dist/ingest-queue.js
CHANGED
|
@@ -14,6 +14,10 @@ export class IngestQueue {
|
|
|
14
14
|
this.rpcCall = rpcCall;
|
|
15
15
|
this.logger = logger;
|
|
16
16
|
this.options = { ...DEFAULT_OPTIONS, ...options };
|
|
17
|
+
if (!(this.options.chunkTokens > 0)) {
|
|
18
|
+
this.logger.warn?.(`[libravdb] chunkTokens ${this.options.chunkTokens} is invalid; using default ${DEFAULT_OPTIONS.chunkTokens}`);
|
|
19
|
+
this.options.chunkTokens = DEFAULT_OPTIONS.chunkTokens;
|
|
20
|
+
}
|
|
17
21
|
}
|
|
18
22
|
async enqueueIngest(sourceDoc, text, baseParams) {
|
|
19
23
|
if (this.options.chunkTokens === Infinity) {
|
package/openclaw.plugin.json
CHANGED