chore(session): 将标题生成阈值从 10 条减至 5 条用户消息
This commit is contained in:
parent
228204517d
commit
dcb2d552d9
@ -285,9 +285,9 @@ impl Session {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// 检查是否需要自动生成 title(10 条用户消息后)
|
||||
/// 检查是否需要自动生成 title(5 条用户消息后)
|
||||
pub fn should_generate_title(&self) -> bool {
|
||||
self.title == "新对话" && self.message_count >= 10
|
||||
self.title == "新对话" && self.message_count >= 5
|
||||
}
|
||||
|
||||
/// 生成标题(调用 LLM)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user