@postalsys/email-ai-tools 1.3.3 → 1.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.4](https://github.com/postalsys/email-ai-tools/compare/v1.3.3...v1.3.4) (2023-09-19)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **embeddings:** Changed embeddings output structure ([368467c](https://github.com/postalsys/email-ai-tools/commit/368467cabcb21dab9d4819933f6d3027f3cd3f26))
9
+
3
10
  ## [1.3.3](https://github.com/postalsys/email-ai-tools/compare/v1.3.2...v1.3.3) (2023-09-19)
4
11
 
5
12
 
@@ -236,13 +236,13 @@ class Embedder {
236
236
  async getEmbeddings() {
237
237
  let chunks = this.getChunks();
238
238
 
239
- let result = [];
239
+ let embeddings = [];
240
240
 
241
241
  for (let chunk of chunks) {
242
- result.push(await this.getChunkEmbeddings(chunk));
242
+ embeddings.push(await this.getChunkEmbeddings(chunk));
243
243
  }
244
244
 
245
- return result;
245
+ return { model: this.gptModel, embeddings };
246
246
  }
247
247
  }
248
248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postalsys/email-ai-tools",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Email AI tools",
5
5
  "main": "index.js",
6
6
  "scripts": {