unify flag

This commit is contained in:
Ahmed Ibrahim
2025-08-04 16:56:52 -07:00
parent bd171e5206
commit 1a33de34b0
3 changed files with 2 additions and 27 deletions

View File

@@ -93,9 +93,7 @@ impl ModelClient {
// Wrap it with the aggregation adapter so callers see *only*
// the final assistant message per turn (matching the
// behaviour of the Responses API).
let mut aggregated = if self.config.show_reasoning_content
&& !self.config.hide_agent_reasoning
{
let mut aggregated = if !self.config.hide_agent_reasoning {
crate::chat_completions::AggregatedChatStream::streaming_mode(response_stream)
} else {
response_stream.aggregate()