From 3a67bbf52a01227002c04ad4ff269144077fbf87 Mon Sep 17 00:00:00 2001 From: imeepos Date: Tue, 22 Jul 2025 18:40:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96markdown=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/services/conversation_service.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/desktop/src-tauri/src/business/services/conversation_service.rs b/apps/desktop/src-tauri/src/business/services/conversation_service.rs index 3ee7e15..d1561ea 100644 --- a/apps/desktop/src-tauri/src/business/services/conversation_service.rs +++ b/apps/desktop/src-tauri/src/business/services/conversation_service.rs @@ -146,14 +146,6 @@ impl ConversationService { // 构建contents数组,包含历史消息 let mut contents = Vec::new(); - // 添加系统提示(如果有) - if let Some(system_prompt) = system_prompt { - contents.push(ContentPart { - role: "system".to_string(), - parts: vec![Part::Text { text: system_prompt.to_string() }], - }); - } - // 添加历史消息 for msg in history_messages { let parts = self.convert_message_content_to_parts(&msg.content)?;