Skip to content

Commit

Permalink
Check message is not empty before asking OpenAI
Browse files Browse the repository at this point in the history
  • Loading branch information
verovaleros committed Feb 23, 2024
1 parent 73e6220 commit 1d60333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hermeneisGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def translate_mode_automatic(client, config, args):

if not exists_translation:
# There is no translation for this message
if len(message_text) > 1:
count = count+1

# Message is not empty, translate it with OpenAI model
Expand Down

0 comments on commit 1d60333

Please sign in to comment.