chore(session): 将标题生成阈值从 10 条减至 5 条用户消息

This commit is contained in:
xiaoxixi 2026-04-29 22:46:33 +08:00
parent 228204517d
commit dcb2d552d9

View File

@ -285,9 +285,9 @@ impl Session {
Ok(())
}
/// 检查是否需要自动生成 title10 条用户消息后)
/// 检查是否需要自动生成 title5 条用户消息后)
pub fn should_generate_title(&self) -> bool {
self.title == "新对话" && self.message_count >= 10
self.title == "新对话" && self.message_count >= 5
}
/// 生成标题(调用 LLM