fix: 优化markdown解析器
This commit is contained in:
parent
34895c2d55
commit
3a67bbf52a
|
|
@ -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)?;
|
||||
|
|
|
|||
Loading…
Reference in New Issue