mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +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 {
|
} else {
|
||||||
// execute function
|
// execute function
|
||||||
try {
|
try {
|
||||||
|
let isAdmin = ['admin', 'owner'].includes(this.e.sender.role)
|
||||||
|
let isOwner = ['owner'].includes(this.e.sender.role)
|
||||||
let args = Object.assign(functionCall.args, {
|
let args = Object.assign(functionCall.args, {
|
||||||
isAdmin: this.e.group?.is_admin,
|
isAdmin,
|
||||||
isOwner: this.e.group?.is_owner,
|
isOwner,
|
||||||
sender: this.e.sender,
|
sender: this.e.sender,
|
||||||
mode: 'gemini'
|
mode: 'gemini'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue