fix: 优化markdown解析器

This commit is contained in:
imeepos 2025-07-22 18:40:03 +08:00
parent 34895c2d55
commit 3a67bbf52a
1 changed files with 0 additions and 8 deletions

View File

@ -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)?;