mm_llm 1.3.1 → 1.3.2
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/index.js +6 -8
- package/lib/admin.js +6 -5
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const Manager = require('./lib/manager');
|
|
7
|
-
const admin_module = require('./lib/admin');
|
|
1
|
+
const LLM = require('./lib/llm.js');
|
|
2
|
+
const Memory = require('./lib/memory.js');
|
|
3
|
+
const Sqlite = require('./lib/sqlite.js');
|
|
4
|
+
const Manager = require('./lib/manager.js');
|
|
5
|
+
const adminLib = require('./lib/admin.js');
|
|
8
6
|
|
|
9
7
|
module.exports = {
|
|
10
8
|
LLM,
|
|
11
9
|
Memory,
|
|
12
10
|
Sqlite,
|
|
13
11
|
Manager,
|
|
14
|
-
...
|
|
12
|
+
...adminLib
|
|
15
13
|
};
|
package/lib/admin.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
const { reg } = require('mm_admin');
|
|
4
|
-
const Manager = require('./manager');
|
|
2
|
+
const Manager = require('./manager.js');
|
|
5
3
|
|
|
6
4
|
/**
|
|
7
5
|
* 大模型管理器实例池(Admin 工厂)
|
|
8
6
|
*/
|
|
9
|
-
let admin = reg('
|
|
7
|
+
let admin = reg('llm');
|
|
10
8
|
admin.setClass(Manager);
|
|
11
9
|
|
|
12
10
|
/**
|
|
@@ -19,4 +17,7 @@ function llmAdmin(scope, config) {
|
|
|
19
17
|
return admin.get(scope || 'os', config);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
module.exports = {
|
|
20
|
+
module.exports = {
|
|
21
|
+
admin,
|
|
22
|
+
llmAdmin
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_llm",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "这是一个适用于多用户、多智能体、多技能、多工具的模块,方便打造多智能体系统。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mm_mod",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"test": "node test.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"mm_admin": "^1.
|
|
44
|
-
"mm_machine": "^6.0.
|
|
45
|
-
"mm_config": "^2.
|
|
46
|
-
"openai": "^7.
|
|
43
|
+
"mm_admin": "^1.2.2",
|
|
44
|
+
"mm_machine": "^6.0.2",
|
|
45
|
+
"mm_config": "^2.9.3",
|
|
46
|
+
"openai": "^7.62.0"
|
|
47
47
|
}
|
|
48
48
|
}
|