@kalera/munin-sdk 1.0.2 → 1.0.4
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/.turbo/turbo-build.log +1 -1
- package/dist/client.js +8 -0
- package/package.json +1 -1
- package/src/client.ts +8 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/client.js
CHANGED
|
@@ -93,6 +93,14 @@ export class MuninClient {
|
|
|
93
93
|
return mem;
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
+
// Server 'search' action returns 'memories' instead of 'results'
|
|
97
|
+
if (Array.isArray(data.memories)) {
|
|
98
|
+
data.memories = data.memories.map((mem) => {
|
|
99
|
+
if (mem.embedding)
|
|
100
|
+
delete mem.embedding;
|
|
101
|
+
return mem;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
96
104
|
// Clean graph in search
|
|
97
105
|
if (data.knowledge_graph) {
|
|
98
106
|
data.knowledge_graph = this.formatGraph(data.knowledge_graph);
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -131,6 +131,14 @@ export class MuninClient {
|
|
|
131
131
|
return mem;
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
+
|
|
135
|
+
// Server 'search' action returns 'memories' instead of 'results'
|
|
136
|
+
if (Array.isArray(data.memories)) {
|
|
137
|
+
data.memories = data.memories.map((mem: any) => {
|
|
138
|
+
if (mem.embedding) delete mem.embedding;
|
|
139
|
+
return mem;
|
|
140
|
+
});
|
|
141
|
+
}
|
|
134
142
|
|
|
135
143
|
// Clean graph in search
|
|
136
144
|
if (data.knowledge_graph) {
|