⚡ Reduce dialogue memory injection from 8000 to 2000 chars for faster startup
This commit is contained in:
@@ -208,7 +208,7 @@ impl AgentLoop {
|
||||
// Inject recent dialogue from verbatim memory
|
||||
{
|
||||
let memory = self.memory.lock().await;
|
||||
if let Ok(dialogue) = memory.dialogue_read(8000).await {
|
||||
if let Ok(dialogue) = memory.dialogue_read(2000).await {
|
||||
if !dialogue.is_empty() {
|
||||
system_prompt = format!(
|
||||
"{}\n\n## Past Conversations (Verbatim Memory)\n{}\n---\nContinue the conversation naturally.",
|
||||
|
||||
Reference in New Issue
Block a user