Skip to content

Commit

Permalink
fix: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik committed Jan 14, 2025
1 parent 07a54bd commit 10a69cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aidial_analytics_realtime/dial.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,5 @@ def _chat_completion_message_contents(


def _non_empty_string(value: str) -> Iterator[str]:
value = value.strip()
if value:
yield value
if non_empty := value.strip():
yield non_empty

0 comments on commit 10a69cc

Please sign in to comment.