Skip to content

Commit 774ab86

Browse files
author
Murat Kaan Meral
committed
fix: remove unnecessary if condition
1 parent 6ad0120 commit 774ab86

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

  • src/strands/experimental/bidirectional_streaming/models

src/strands/experimental/bidirectional_streaming/models/novasonic.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -610,14 +610,7 @@ def _convert_nova_event(self, nova_event: dict[str, any]) -> OutputEvent | None:
610610
response_id=self._current_completion_id or str(uuid.uuid4()) # Fallback to UUID if missing
611611
)
612612

613-
# Handle content end events
614-
elif "contentEnd" in nova_event:
615-
# contentEnd doesn't signal response completion in Nova Sonic
616-
# Multiple content blocks can exist in a single response
617-
# Only completionEnd signals the actual response completion
618-
return None
619-
620-
# Handle other events
613+
# Handle other events (contentEnd, etc.)
621614
else:
622615
return None
623616

0 commit comments

Comments
 (0)