Skip to content

Commit b8d8c5f

Browse files
arjun37602Arjun Balaji
andauthored
bug fix (#2375)
Co-authored-by: Arjun Balaji <arjbal@amazon.com>
1 parent bacc9b3 commit b8d8c5f

File tree

1 file changed

+5
-0
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+5
-0
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,11 @@ impl ChatSession {
791791
show_summary: false,
792792
strategy: CompactStrategy {
793793
truncate_large_messages: self.conversation.history().len() <= 2,
794+
max_message_length: if self.conversation.history().len() <= 2 {
795+
25_000
796+
} else {
797+
Default::default()
798+
},
794799
..Default::default()
795800
},
796801
});

0 commit comments

Comments
 (0)