n8n-nodes-tembory 1.0.52 → 1.0.53
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.
|
@@ -3190,8 +3190,6 @@ class Mem0Memory {
|
|
|
3190
3190
|
messages.push({ role: 'user', content: input });
|
|
3191
3191
|
if (output)
|
|
3192
3192
|
messages.push({ role: 'assistant', content: output });
|
|
3193
|
-
if (!messages.length)
|
|
3194
|
-
return;
|
|
3195
3193
|
const body = { messages };
|
|
3196
3194
|
if (adv.useVectorMemory === false)
|
|
3197
3195
|
body.infer = false;
|
|
@@ -3332,7 +3330,8 @@ class Mem0Memory {
|
|
|
3332
3330
|
}
|
|
3333
3331
|
return;
|
|
3334
3332
|
}
|
|
3335
|
-
|
|
3333
|
+
if (messages.length)
|
|
3334
|
+
await GenericFunctions_1.mem0ApiRequest.call(this, 'POST', '/v1/memories/', body);
|
|
3336
3335
|
if (adv.includeRecentMessages !== false && recentForMem0.length) {
|
|
3337
3336
|
for (const recent of recentForMem0) {
|
|
3338
3337
|
await GenericFunctions_1.mem0ApiRequest.call(this, 'POST', '/v1/memories/', {
|
package/package.json
CHANGED