舌象原图要求模型直接观察,去掉误导性的图片识别说明

- TcmEvidenceGuard:提示词改为直接观察附带的舌象/望诊原图并描述所见,单张不清只说明该张,不再把全部望诊判为未知
- DifyChatService:本地文字识别不可用或无文字时不再给图片附加“未取得可用原文”说明,原图照常携带
- 同步更新 TcmEvidenceGuardTaskAnalysisR37Test 断言

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gr
2026-10-27 15:12:24 +08:00
co-authored by Claude Opus 5.5
parent c3c37e1650
commit f0f555f20f
3 changed files with 7 additions and 7 deletions
@@ -1087,10 +1087,9 @@ class DifyChatService
$physical = count(array_filter(array_slice($items, 0, $local + 1), static fn (array $item): bool =>
!in_array($item['status'] ?? '', ['skipped', 'omitted', 'rejected'], true)));
$label = '原始附件#' . (int) $source['index'] . '(' . $source['label'] . '),本次实际附件' . $physical;
if ($check['status'] !== 'processed') {
$lines[] = $label . ':本地文字识别未取得可用原文;原图仍已携带,不能据此补写数字。';
continue;
}
// 舌象等照片本就没有文字;识别不可用/无文字时不再附加说明,
// 否则模型会误以为原图未读取而把舌象判为未知。原图照常携带。
if ($check['status'] !== 'processed') continue;
$rows = [];
foreach (($check['lines'] ?? []) as $row) {
if (!is_array($row) || !is_string($row['text'] ?? null) || !is_numeric($row['confidence'] ?? null)) continue;