Skip to content

Commit

Permalink
enable vision command on image reply for group chat
Browse files Browse the repository at this point in the history
  • Loading branch information
fegloff committed Jan 18, 2024
1 parent b93ab44 commit 9c43b03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/open-ai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ export class OpenAIBot implements PayableBot {
const prompt = ctx.message?.caption ?? ctx.message?.text
if (prompt && !isNaN(+prompt)) { // && !isNaN(+prompt)
return true
} else if (prompt && (ctx.chat?.type === 'private' || ctx.hasCommand(SupportedCommands.vision.name))) {
return true
}
}
return false
Expand Down

0 comments on commit 9c43b03

Please sign in to comment.