Skip to content

Commit

Permalink
fix: shamrock的小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Nov 28, 2023
1 parent f1c2682 commit 88270f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,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 (e?.self_id) return e.self_id
if (Array.isArray(Bot.uin)) {
if (Config.trssBotUin && Bot.uin.indexOf(Config.trssBotUin) > -1) { return Config.trssBotUin } else {
Bot.uin.forEach((u) => {
Expand Down

0 comments on commit 88270f1

Please sign in to comment.