mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
filter blacklisted messages
This commit is contained in:
@@ -106,6 +106,7 @@ def channel_send_transcript(channel):
|
||||
message = sorted_transcripts[least_time]
|
||||
if message:
|
||||
del sorted_transcripts[least_time]
|
||||
if message["text"] not in blacklisted_messages:
|
||||
channel.send(json.dumps(message))
|
||||
except Exception as e:
|
||||
print("Exception", str(e))
|
||||
@@ -188,7 +189,7 @@ class AudioStreamTrack(MediaStreamTrack):
|
||||
else None
|
||||
)
|
||||
|
||||
if len(transcription_text) > 1500:
|
||||
if len(transcription_text) > 25:
|
||||
llm_input_text = transcription_text
|
||||
transcription_text = ""
|
||||
llm_result = run_in_executor(get_title_and_summary,
|
||||
|
||||
Reference in New Issue
Block a user