Skip to content

Commit 9c43b03

Browse files
committed
enable vision command on image reply for group chat
1 parent b93ab44 commit 9c43b03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/open-ai/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ export class OpenAIBot implements PayableBot {
147147
const prompt = ctx.message?.caption ?? ctx.message?.text
148148
if (prompt && !isNaN(+prompt)) { // && !isNaN(+prompt)
149149
return true
150+
} else if (prompt && (ctx.chat?.type === 'private' || ctx.hasCommand(SupportedCommands.vision.name))) {
151+
return true
150152
}
151153
}
152154
return false

0 commit comments

Comments
 (0)