fix(codearts): 识别 InferHub 未注册模型

(cherry picked from commit c9f34538ec)
This commit is contained in:
JianFeeeee
2026-10-19 18:02:30 +08:00
committed by root
parent dcf327d3c5
commit efc9b37965
2 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,9 @@ func TestDeadModelGoneJudgement(t *testing.T) {
{"The model does not exist", true, "does not exist"},
{"error: model_not_found", true, "独占一句话(行尾)"},
{"model_not_found.", true, "后面是句末标点"},
{"model is not registered", true, "CodeArts/InferHub 下架模型的真实文案"},
{"InferHub.002002009.404: The model is not registered, please request other model", true,
"CodeArts 完整 404 文案"},
// ── 阴性:看着像但**不是**下架 ──
{"error_class=model_not_found, retry allowed", false,
"字段名后面还有内容(初版误判下架,实测教训)"},

View File

@ -6789,6 +6789,7 @@ end
-- 或收尾括号/引号,**不含逗号**。
local DEAD_GONE_PATTERNS = {
"model%s+not%s+found",
"model%s+is%s+not%s+registered",
"unknown%s+model",
"no%s+such%s+model",
"nonexistent%s+model",