We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6184e1d commit 37c0130Copy full SHA for 37c0130
src/orchestrator/handlers/chat_completions_detection/streaming.rs
@@ -684,11 +684,7 @@ fn merge_content(chunks: &[ChatCompletionChunk]) -> Option<Content> {
684
.and_then(|choice| choice.delta.content.clone())
685
})
686
.collect::<String>();
687
- if content_text.is_empty() {
688
- None
689
- } else {
690
- Some(Content::Text(content_text))
691
- }
+ (!content_text.is_empty()).then_some(Content::Text(content_text))
692
}
693
694
/// Consumes a detection batch stream, builds responses, and sends them to a response channel.
0 commit comments