mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 增强OCR程序解释/优化/解决能力 & 🎈 perf: 增强OCR的健壮性
This commit is contained in:
parent
9c735de71e
commit
ece976ebff
@ -156,11 +156,6 @@ export class tools extends plugin {
|
|||||||
async ocr2anythingContext() {
|
async ocr2anythingContext() {
|
||||||
// 当前消息
|
// 当前消息
|
||||||
const curMsg = this.e;
|
const curMsg = this.e;
|
||||||
// 安全性检测
|
|
||||||
if (curMsg.img) {
|
|
||||||
curMsg.reply("请发送图片!")
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// 上一个消息
|
// 上一个消息
|
||||||
const preMsg = this.getContext().ocr2anythingContext;
|
const preMsg = this.getContext().ocr2anythingContext;
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user