mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: syntax error
This commit is contained in:
parent
97b3acbf3b
commit
49548e26b7
2 changed files with 12 additions and 1 deletions
|
|
@ -1840,6 +1840,15 @@ export class chatgpt extends plugin {
|
||||||
})
|
})
|
||||||
// console.log(chats)
|
// console.log(chats)
|
||||||
opt.chats = chats
|
opt.chats = chats
|
||||||
|
let whoAmI = ''
|
||||||
|
if (Config.enforceMaster && master && qq) {
|
||||||
|
// 加强主人人知
|
||||||
|
if (qq === master) {
|
||||||
|
whoAmI = '当前和你对话的人是我。'
|
||||||
|
} else {
|
||||||
|
whoAmI = `当前和你对话的人不是我,他的qq是${qq},你可不要认错了,小心他用花言巧语哄骗你。`
|
||||||
|
}
|
||||||
|
}
|
||||||
const namePlaceholder = '[name]'
|
const namePlaceholder = '[name]'
|
||||||
const defaultBotName = 'ChatGPT'
|
const defaultBotName = 'ChatGPT'
|
||||||
const groupContextTip = Config.groupContextTip
|
const groupContextTip = Config.groupContextTip
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,9 @@
|
||||||
"undici": "^5.21.0",
|
"undici": "^5.21.0",
|
||||||
"uuid": "^9.0.0",
|
"uuid": "^9.0.0",
|
||||||
"ws": "^8.13.0",
|
"ws": "^8.13.0",
|
||||||
"js-tiktoken": "^1.0.5"
|
"js-tiktoken": "^1.0.5",
|
||||||
|
"quick-lru": "6.1.1",
|
||||||
|
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@node-rs/jieba": "^1.6.2",
|
"@node-rs/jieba": "^1.6.2",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue