From 3b45e76a7b624a9babfe39fa28aa41f56840818b Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 17 Jul 2026 00:02:37 +0000 Subject: [PATCH] fix: mark Detection models as required now they are available --- internal/captcha/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/captcha/handler.go b/internal/captcha/handler.go index fe08b05..180b653 100644 --- a/internal/captcha/handler.go +++ b/internal/captcha/handler.go @@ -35,8 +35,8 @@ var modelConfigs = map[string]struct { "Rotation-RotNetR.onnx": {remote: "[AntiCAP]-Rotation-RotNetR.onnx", optional: false}, "Siamese-ResNet18.onnx": {remote: "[AntiCAP]-Siamese-ResNet18.onnx", optional: false}, "CharSets.txt": {remote: "[Dddd]-CharSets.txt", optional: false}, - "Detection_Icon.onnx": {remote: "Detection_Icon.onnx", optional: true}, - "Detection_Text.onnx": {remote: "Detection_Text.onnx", optional: true}, + "Detection_Icon.onnx": {remote: "Detection_Icon.onnx", optional: false}, + "Detection_Text.onnx": {remote: "Detection_Text.onnx", optional: false}, } // 从 Gitea 仓库下载(公开仓库,无需认证)