mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 回退
This commit is contained in:
parent
a4ac59d8f9
commit
4c16489ce1
1 changed files with 11 additions and 4 deletions
|
|
@ -828,10 +828,17 @@ export function getMaxModelTokens (model = 'gpt-3.5-turbo') {
|
||||||
|
|
||||||
export function getUin (e) {
|
export function getUin (e) {
|
||||||
if (e?.bot?.uin) return e.bot.uin
|
if (e?.bot?.uin) return e.bot.uin
|
||||||
if (Array.isArray(e.bot.uin)) {
|
if (e) {
|
||||||
if (Config.trssBotUin && e.bot.uin.indexOf(Config.trssBotUin) > -1) return Config.trssBotUin
|
if (Array.isArray(e.bot.uin)) {
|
||||||
else return e.bot.uin[0]
|
if (Config.trssBotUin && e.bot.uin.indexOf(Config.trssBotUin) > -1) return Config.trssBotUin
|
||||||
} else return e.bot.uin
|
else return e.bot.uin[0]
|
||||||
|
} else return e.bot.uin
|
||||||
|
} else {
|
||||||
|
if (Array.isArray(Bot.uin)) {
|
||||||
|
if (Config.trssBotUin && Bot.uin.indexOf(Config.trssBotUin) > -1) return Config.trssBotUin
|
||||||
|
else return Bot.uin[0]
|
||||||
|
} else return Bot.uin
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue