From 2e549c4fed5cbdef99c93c403c05391cc2f7016a Mon Sep 17 00:00:00 2001 From: Fantasy lee <129943055+Fantasylee21@users.noreply.github.com> Date: Sat, 7 Jun 2025 21:40:34 +0800 Subject: [PATCH] =?UTF-8?q?[fix]:=20=E5=AE=8C=E5=96=84=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/v1/endpoints/aichat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v1/endpoints/aichat.py b/app/api/v1/endpoints/aichat.py index 95c969f..a8ad20d 100644 --- a/app/api/v1/endpoints/aichat.py +++ b/app/api/v1/endpoints/aichat.py @@ -30,7 +30,7 @@ async def generate_notes( messages = json.loads(history) else: # 首轮对话可加 system prompt - messages = [{"role": "system", "content": "你是一个智能笔记助手。"}] + messages = [{"role": "system", "content": "你是一个智能笔记助手。我们设置了笔记管理系统,我们做了以下功能:文献上传、文献搜索、文献推荐、文献笔记、文献综述、思维导图生成等。请根据用户输入生成相关内容。"}] # 2. 追加用户输入 messages.append({"role": "user", "content": input.input})