From 01e0f0adbccf1653163e0fdbf321e6747f52de8e Mon Sep 17 00:00:00 2001 From: MingNian <1281442923@qq.com> Date: Tue, 2 Jun 2026 14:30:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20VLM=20prompt=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E9=A3=9F=E7=89=A9=E8=AF=86=E5=88=AB=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E9=99=90=E4=BA=8E=E4=B8=AD=E9=A4=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/Health.WebApi/Endpoints/ai_chat_endpoints.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/Health.WebApi/Endpoints/ai_chat_endpoints.cs b/backend/src/Health.WebApi/Endpoints/ai_chat_endpoints.cs index fda129d..8959829 100644 --- a/backend/src/Health.WebApi/Endpoints/ai_chat_endpoints.cs +++ b/backend/src/Health.WebApi/Endpoints/ai_chat_endpoints.cs @@ -270,11 +270,10 @@ public static class AiChatEndpoints } var prompt = """ - 识别图片中所有食物,只返回JSON,不要加任何其他文字: + 识别图片中所有食物,用中文名称,只返回JSON: { - "foods": [{"name":"中文菜名","portion":"份量","calories":整数}] + "foods": [{"name":"食物名","portion":"份量","calories":整数}] } - 常见参考:米饭200g/230卡,炒青菜200g/80卡,红烧肉150g/400卡,番茄炒蛋200g/180卡,青椒肉丝200g/200卡。 """; try