Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit c0ce59f

Browse files
authored
fix: flush chat content to for each response data (#1275)
1 parent 1c835d7 commit c0ce59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/commands/chat_cmd.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void ChatCmd::Exec(std::string msg) {
115115
std::cout << std::endl;
116116
return false;
117117
}
118-
std::cout << cp.content;
118+
std::cout << cp.content << std::flush;
119119
ai_chat += cp.content;
120120
return true;
121121
};

0 commit comments

Comments
 (0)