fix(transcription): drop Whisper temperature to 0 to suppress hallucinations

This commit is contained in:
Tanmay Deep Sharma
2026-05-01 16:31:48 +07:00
parent 6e11bebeae
commit ba94d8c2b0
@@ -67,7 +67,9 @@ class Messages::AudioTranscriptionService< Llm::LegacyBaseOpenAiService
parameters: {
model: WHISPER_MODEL,
file: file,
temperature: 0.4
# 0.0 minimises Whisper's hallucinations on silence / sub-vocal segments —
# higher temperatures produce phantom phrases that look like real transcripts.
temperature: 0.0
}
)
transcribed_text = response['text']