wechaty-web-panel 1.4.10 → 1.4.12
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 +6 -0
- package/dist/cjs/src/package-json.d.ts +1 -0
- package/dist/cjs/src/package-json.js +4 -3
- package/dist/cjs/src/proxy/openAi.js +1 -0
- package/dist/cjs/src/service/msg-filters.js +1 -1
- package/dist/esm/src/package-json.d.ts +1 -0
- package/dist/esm/src/package-json.js +4 -3
- package/dist/esm/src/proxy/openAi.js +1 -0
- package/dist/esm/src/service/msg-filters.js +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ exports.packageJson = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
exports.packageJson = {
|
|
8
8
|
"name": "wechaty-web-panel",
|
|
9
|
-
"version": "1.4.
|
|
9
|
+
"version": "1.4.12",
|
|
10
10
|
"description": "智能微秘书插件",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
@@ -59,7 +59,8 @@ exports.packageJson = {
|
|
|
59
59
|
"eslint-plugin-prettier": "^3.1.4",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
61
|
"prettier": "^2.0.5",
|
|
62
|
-
"wechaty": "^1.20.2"
|
|
62
|
+
"wechaty": "^1.20.2",
|
|
63
|
+
"wechaty-puppet-padlocal": "^1.20.1"
|
|
63
64
|
},
|
|
64
65
|
"readme": "README.md",
|
|
65
66
|
"engines": {
|
|
@@ -68,7 +69,7 @@ exports.packageJson = {
|
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
71
|
"axios": "^0.27.2",
|
|
71
|
-
"chatgpt": "^
|
|
72
|
+
"chatgpt": "^5.0.4",
|
|
72
73
|
"dayjs": "^1.11.7",
|
|
73
74
|
"isomorphic-fetch": "^3.0.0",
|
|
74
75
|
"ix": "^4.5.2",
|
|
@@ -25,6 +25,7 @@ async function geGPT3Reply(content, uid) {
|
|
|
25
25
|
return [{ type: 1, content: '请到平台配置Openai apikey参数方可使用' }];
|
|
26
26
|
}
|
|
27
27
|
if (!chatGPT) {
|
|
28
|
+
console.log('看到此消息说明已启用最新版chat gpt 3.5 turbo模型');
|
|
28
29
|
await initChatGPT();
|
|
29
30
|
}
|
|
30
31
|
const { conversationId, text, id } = await chatGPT.sendMessage(content, chatOption[uid]);
|
|
@@ -164,7 +164,7 @@ async function callbackEvent({ that, msg, name, id, config, room, isMention }) {
|
|
|
164
164
|
return [];
|
|
165
165
|
}
|
|
166
166
|
msg = msg.trim();
|
|
167
|
-
const topic = await room.topic();
|
|
167
|
+
const topic = room ? await room.topic() : '';
|
|
168
168
|
const data = {
|
|
169
169
|
uid: id,
|
|
170
170
|
uname: name,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const packageJson = {
|
|
5
5
|
"name": "wechaty-web-panel",
|
|
6
|
-
"version": "1.4.
|
|
6
|
+
"version": "1.4.12",
|
|
7
7
|
"description": "智能微秘书插件",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
@@ -56,7 +56,8 @@ export const packageJson = {
|
|
|
56
56
|
"eslint-plugin-prettier": "^3.1.4",
|
|
57
57
|
"npm-run-all": "^4.1.5",
|
|
58
58
|
"prettier": "^2.0.5",
|
|
59
|
-
"wechaty": "^1.20.2"
|
|
59
|
+
"wechaty": "^1.20.2",
|
|
60
|
+
"wechaty-puppet-padlocal": "^1.20.1"
|
|
60
61
|
},
|
|
61
62
|
"readme": "README.md",
|
|
62
63
|
"engines": {
|
|
@@ -65,7 +66,7 @@ export const packageJson = {
|
|
|
65
66
|
},
|
|
66
67
|
"dependencies": {
|
|
67
68
|
"axios": "^0.27.2",
|
|
68
|
-
"chatgpt": "^
|
|
69
|
+
"chatgpt": "^5.0.4",
|
|
69
70
|
"dayjs": "^1.11.7",
|
|
70
71
|
"isomorphic-fetch": "^3.0.0",
|
|
71
72
|
"ix": "^4.5.2",
|
|
@@ -21,6 +21,7 @@ async function geGPT3Reply(content, uid) {
|
|
|
21
21
|
return [{ type: 1, content: '请到平台配置Openai apikey参数方可使用' }];
|
|
22
22
|
}
|
|
23
23
|
if (!chatGPT) {
|
|
24
|
+
console.log('看到此消息说明已启用最新版chat gpt 3.5 turbo模型');
|
|
24
25
|
await initChatGPT();
|
|
25
26
|
}
|
|
26
27
|
const { conversationId, text, id } = await chatGPT.sendMessage(content, chatOption[uid]);
|
|
@@ -152,7 +152,7 @@ async function callbackEvent({ that, msg, name, id, config, room, isMention }) {
|
|
|
152
152
|
return [];
|
|
153
153
|
}
|
|
154
154
|
msg = msg.trim();
|
|
155
|
-
const topic = await room.topic();
|
|
155
|
+
const topic = room ? await room.topic() : '';
|
|
156
156
|
const data = {
|
|
157
157
|
uid: id,
|
|
158
158
|
uname: name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wechaty-web-panel",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.12",
|
|
4
4
|
"description": "智能微秘书插件",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
"eslint-plugin-prettier": "^3.1.4",
|
|
54
54
|
"npm-run-all": "^4.1.5",
|
|
55
55
|
"prettier": "^2.0.5",
|
|
56
|
-
"wechaty": "^1.20.2"
|
|
56
|
+
"wechaty": "^1.20.2",
|
|
57
|
+
"wechaty-puppet-padlocal": "^1.20.1"
|
|
57
58
|
},
|
|
58
59
|
"readme": "README.md",
|
|
59
60
|
"engines": {
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
},
|
|
63
64
|
"dependencies": {
|
|
64
65
|
"axios": "^0.27.2",
|
|
65
|
-
"chatgpt": "^
|
|
66
|
+
"chatgpt": "^5.0.4",
|
|
66
67
|
"dayjs": "^1.11.7",
|
|
67
68
|
"isomorphic-fetch": "^3.0.0",
|
|
68
69
|
"ix": "^4.5.2",
|