feat: 增强OCR程序解释/优化/解决能力 & 🎈 perf: 增强OCR的健壮性

This commit is contained in:
zhiyu1998 2023-04-09 20:58:41 +08:00
parent 9c735de71e
commit ece976ebff

View File

@ -156,11 +156,6 @@ export class tools extends plugin {
async ocr2anythingContext() {
// 当前消息
const curMsg = this.e;
// 安全性检测
if (curMsg.img) {
curMsg.reply("请发送图片!")
return;
}
// 上一个消息
const preMsg = this.getContext().ocr2anythingContext;
try {