Skip to content

Commit

Permalink
fix: also include empty non-None content as failing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikita95 authored Nov 18, 2024
1 parent bb3683a commit 93a4f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ def _is_serialized(self, message: 'Conversation.Message') -> bool:
# Prevent serialization of messages
# not intended for user display
return False
elif message.get("content") is None:
elif not message.get("content"):
# Prevent serialization for messages
# without meaningful content
return False
Expand Down

0 comments on commit 93a4f6e

Please sign in to comment.