mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 修复gemini禁言和提出对非管理员不生效的问题
This commit is contained in:
parent
fcca28de37
commit
08afc95f06
2 changed files with 2 additions and 2 deletions
|
|
@ -312,7 +312,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
|
||||||
let args = Object.assign(fc.args, {
|
let args = Object.assign(fc.args, {
|
||||||
isAdmin,
|
isAdmin,
|
||||||
isOwner,
|
isOwner,
|
||||||
sender: this.e.sender,
|
sender: this.e.sender.user_id,
|
||||||
mode: 'gemini'
|
mode: 'gemini'
|
||||||
})
|
})
|
||||||
functionResponse.response.content = await chosenTool.func(args, this.e)
|
functionResponse.response.content = await chosenTool.func(args, this.e)
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export class JinyanTool extends AbstractTool {
|
||||||
},
|
},
|
||||||
time: {
|
time: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: '禁言时长,单位为秒,默认为600'
|
description: '禁言时长,单位为秒,默认为600。如果需要解除禁言则填0.'
|
||||||
},
|
},
|
||||||
isPunish: {
|
isPunish: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue