mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: merge (maybe broken?)
This commit is contained in:
commit
df715e22a2
10 changed files with 120 additions and 47 deletions
|
|
@ -239,9 +239,11 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
|
|||
} else {
|
||||
// execute function
|
||||
try {
|
||||
let isAdmin = ['admin', 'owner'].includes(this.e.sender.role) || (this.e.group?.is_admin && this.e.isMaster)
|
||||
let isOwner = ['owner'].includes(this.e.sender.role) || (this.e.group?.is_owner && this.e.isMaster)
|
||||
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'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import OpenAI from 'openai';
|
||||
import OpenAI from 'openai'
|
||||
import { BaseClient } from './BaseClient.js'
|
||||
|
||||
export default class OpenAILikeClient extends BaseClient {
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue