@dangvv/openclaw-mem0 0.3.2 → 0.3.3
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/package.json +1 -1
- package/patches/mem0ai+2.3.0.patch +26 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/node_modules/mem0ai/dist/oss/index.js b/node_modules/mem0ai/dist/oss/index.js
|
|
2
|
-
index d8d27d4..
|
|
2
|
+
index d8d27d4..ce31af3 100644
|
|
3
3
|
--- a/node_modules/mem0ai/dist/oss/index.js
|
|
4
4
|
+++ b/node_modules/mem0ai/dist/oss/index.js
|
|
5
5
|
@@ -122,7 +122,10 @@ var MemoryConfigSchema = import_zod.z.object({
|
|
@@ -14,8 +14,20 @@ index d8d27d4..6c86b70 100644
|
|
|
14
14
|
this.model = config.model || "text-embedding-3-small";
|
|
15
15
|
this.embeddingDims = config.embeddingDims || 1536;
|
|
16
16
|
}
|
|
17
|
+
@@ -257,7 +260,10 @@ var OpenAILLM = class {
|
|
18
|
+
var import_openai3 = __toESM(require("openai"));
|
|
19
|
+
var OpenAIStructuredLLM = class {
|
|
20
|
+
constructor(config) {
|
|
21
|
+
- this.openai = new import_openai3.default({ apiKey: config.apiKey });
|
|
22
|
+
+ this.openai = new import_openai3.default({
|
|
23
|
+
+ apiKey: config.apiKey,
|
|
24
|
+
+ baseURL: config.baseURL
|
|
25
|
+
+ });
|
|
26
|
+
this.model = config.model || "gpt-4-turbo-preview";
|
|
27
|
+
}
|
|
28
|
+
async generateResponse(messages, responseFormat, tools) {
|
|
17
29
|
diff --git a/node_modules/mem0ai/dist/oss/index.mjs b/node_modules/mem0ai/dist/oss/index.mjs
|
|
18
|
-
index 9e2c8be..
|
|
30
|
+
index 9e2c8be..fa8e8c2 100644
|
|
19
31
|
--- a/node_modules/mem0ai/dist/oss/index.mjs
|
|
20
32
|
+++ b/node_modules/mem0ai/dist/oss/index.mjs
|
|
21
33
|
@@ -61,7 +61,10 @@ var MemoryConfigSchema = z.object({
|
|
@@ -30,3 +42,15 @@ index 9e2c8be..7a8f0c5 100644
|
|
|
30
42
|
this.model = config.model || "text-embedding-3-small";
|
|
31
43
|
this.embeddingDims = config.embeddingDims || 1536;
|
|
32
44
|
}
|
|
45
|
+
@@ -196,7 +199,10 @@ var OpenAILLM = class {
|
|
46
|
+
import OpenAI3 from "openai";
|
|
47
|
+
var OpenAIStructuredLLM = class {
|
|
48
|
+
constructor(config) {
|
|
49
|
+
- this.openai = new OpenAI3({ apiKey: config.apiKey });
|
|
50
|
+
+ this.openai = new OpenAI3({
|
|
51
|
+
+ apiKey: config.apiKey,
|
|
52
|
+
+ baseURL: config.baseURL
|
|
53
|
+
+ });
|
|
54
|
+
this.model = config.model || "gpt-4-turbo-preview";
|
|
55
|
+
}
|
|
56
|
+
async generateResponse(messages, responseFormat, tools) {
|