From 1bd1224af79d591500ace6637b7e5b91dfd06b9d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 5 Dec 2026 09:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E6=96=B9=20AI=EF=BC=9A=E6=95=99?= =?UTF-8?q?=E6=9D=90=E6=96=B9=E6=8F=90=E9=97=AE=E8=A6=81=E6=B1=82=E5=85=BC?= =?UTF-8?q?=E8=AF=81=E6=97=B6=E5=8F=96=E6=9C=80=E8=B4=B4=E8=BF=91=E4=B8=BB?= =?UTF-8?q?=E8=AF=81=E7=9A=84=E4=B8=80=E9=A6=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 线上实测证名带兼证(如气阴两虚兼血瘀)时,模型以「没有单一对应方」为由返回空药味; 明确要求取最贴近主证的汤剂或散剂方后,同类证名均能给出组成与剂量。 Co-Authored-By: Claude Opus 5 <[EMAIL]> --- .../common/service/prescriptionai/PrescriptionAiGenerator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/server/app/common/service/prescriptionai/PrescriptionAiGenerator.php b/server/app/common/service/prescriptionai/PrescriptionAiGenerator.php index 491bf00c0..7512bd563 100755 --- a/server/app/common/service/prescriptionai/PrescriptionAiGenerator.php +++ b/server/app/common/service/prescriptionai/PrescriptionAiGenerator.php @@ -742,6 +742,7 @@ final class PrescriptionAiGenerator return '方剂学知识问答(不涉及具体患者)。' . ($syndrome['disease'] !== '' ? '病名:' . $syndrome['disease'] . '。' : '') . '证候:' . $syndrome['syndrome'] . '。治法:' . $syndrome['treatment_principle'] . '。' . '请选出《方剂学》《中医内科学》教材中与此证候、治法最对应的一首代表方,按教材所载组成与常用剂量给出,药味不超过20味。' + . '证候含兼证或有多首可选时,取最贴近主证的一首汤剂或散剂方,不选中成药,herbs不得为空。' . '只输出一个JSON对象:{"prescription_name":"方名","herbs":[{"name":"药名","dosage":数值,"unit":"克"}],"times_per_day":数值或null,"usage_days":数值或null,"rationale":"方义,不超过300字"}。' . ($catalogNames !== [] ? '药名优先逐字使用MEDICINE_CATALOG中的对应名称(含炮制品,如“生山药”),清单中没有的药味照常写教材药名,不得因此删减原方药味;'