mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: gemini禁言越权问题
This commit is contained in:
parent
7c2961cdcd
commit
ac304e0ed3
1 changed files with 4 additions and 2 deletions
|
|
@ -232,9 +232,11 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
|
|||
} else {
|
||||
// execute function
|
||||
try {
|
||||
let isAdmin = ['admin', 'owner'].includes(this.e.sender.role)
|
||||
let isOwner = ['owner'].includes(this.e.sender.role)
|
||||
let args = Object.assign(functionCall.args, {
|
||||
isAdmin: this.e.group?.is_admin,
|
||||
isOwner: this.e.group?.is_owner,
|
||||
isAdmin,
|
||||
isOwner,
|
||||
sender: this.e.sender,
|
||||
mode: 'gemini'
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue