n8n-nodes-tembory 1.1.9 → 1.1.11
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.
|
@@ -2903,10 +2903,17 @@ class TemboryMemory {
|
|
|
2903
2903
|
}
|
|
2904
2904
|
const chatHistory = (result.response[memoryKey] || []).map(toBaseMessage);
|
|
2905
2905
|
currentMessages = chatHistory;
|
|
2906
|
-
|
|
2906
|
+
const variables = {
|
|
2907
2907
|
[memoryKey]: chatHistory,
|
|
2908
|
-
chatHistory,
|
|
2909
2908
|
};
|
|
2909
|
+
if (memoryKey !== 'chatHistory') {
|
|
2910
|
+
Object.defineProperty(variables, 'chatHistory', {
|
|
2911
|
+
value: chatHistory,
|
|
2912
|
+
enumerable: false,
|
|
2913
|
+
configurable: true,
|
|
2914
|
+
});
|
|
2915
|
+
}
|
|
2916
|
+
return variables;
|
|
2910
2917
|
},
|
|
2911
2918
|
saveContext: async (inputValues = {}, outputValues = {}) => {
|
|
2912
2919
|
loadCache.clear();
|
package/package.json
CHANGED