minor improvements

This commit is contained in:
ned
2023-04-22 13:08:17 +02:00
parent f121db2582
commit c83dc8f64c
3 changed files with 4 additions and 3 deletions

View File

@@ -322,7 +322,8 @@ class ChatGPTTelegramBot:
self.usage["guests"].add_transcription_seconds(audio_track.duration_seconds, transcription_price)
# check if transcript starts with any of the prefixes
response_to_transcription = any(transcript.startswith(prefix) if prefix else False for prefix in self.config['voice_reply_prompts'])
response_to_transcription = any(transcript.lower().startswith(prefix.lower()) if prefix else False
for prefix in self.config['voice_reply_prompts'])
if self.config['voice_reply_transcript'] and not response_to_transcription: