mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: shamrock的小问题
This commit is contained in:
parent
c99019cd91
commit
cef2f7378d
2 changed files with 29 additions and 28 deletions
|
|
@ -848,6 +848,7 @@ export function getMaxModelTokens (model = 'gpt-3.5-turbo') {
|
|||
|
||||
export function getUin (e) {
|
||||
if (e?.bot?.uin) return e.bot.uin
|
||||
if (e?.bot?.self_id) return e.bot.self_id
|
||||
if (Array.isArray(Bot.uin)) {
|
||||
if (Config.trssBotUin && Bot.uin.indexOf(Config.trssBotUin) > -1) { return Config.trssBotUin } else {
|
||||
Bot.uin.forEach((u) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue