refactor(anthropic): fix N+1 thinking message storage issue (#7958)
Signed-off-by: Rabi Mishra <mishra.rabi@gmail.com>
This commit is contained in:
@@ -280,6 +280,9 @@ pub fn render_message_streaming(
|
||||
|
||||
for content in &message.content {
|
||||
if !matches!(content, MessageContent::Thinking(_)) {
|
||||
if *thinking_header_shown {
|
||||
println!();
|
||||
}
|
||||
*thinking_header_shown = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user