feat: update README with enhanced descriptions and security features; refactor catastrophic guard checks and tool execution handling
This commit is contained in:
@@ -110,10 +110,15 @@ impl StreamedTurn {
|
||||
}
|
||||
msg
|
||||
};
|
||||
let content = if self.accumulated_content.is_empty() {
|
||||
let full_content = if self.accumulated_reasoning.is_empty() {
|
||||
self.accumulated_content.clone()
|
||||
} else {
|
||||
format!("<think>\n{}\n</think>\n\n{}", self.accumulated_reasoning, self.accumulated_content)
|
||||
};
|
||||
let content = if full_content.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(self.accumulated_content.clone())
|
||||
Some(full_content)
|
||||
};
|
||||
msg.content = content;
|
||||
msg
|
||||
|
||||
Reference in New Issue
Block a user