From 14a9b48d49140519288f84093447a696bfc18fba Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Tue, 5 May 2026 16:27:33 +0700 Subject: [PATCH 1/2] chore: drop Channel::Voice stub (out of scope for this PR) The legacy-row stub for Channel::Voice belongs with the upstream DropChannelVoice migration cleanup, not with WhatsApp call wiring. Removing it keeps the PR's surface focused on the call pipeline. --- enterprise/app/models/channel/voice.rb | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 enterprise/app/models/channel/voice.rb diff --git a/enterprise/app/models/channel/voice.rb b/enterprise/app/models/channel/voice.rb deleted file mode 100644 index c98816df4..000000000 --- a/enterprise/app/models/channel/voice.rb +++ /dev/null @@ -1,8 +0,0 @@ -# Stub for legacy inboxes whose channel_type is still 'Channel::Voice' after -# the upstream DropChannelVoice migration moved voice fields onto -# Channel::TwilioSms. Pointing at the new table lets Rails resolve -# `belongs_to :channel, polymorphic: true` lookups to nil (no matching row), -# so jbuilder `.try` chains short-circuit instead of raising. -class Channel::Voice < ApplicationRecord - self.table_name = 'channel_twilio_sms' -end From 61a8511f7a8840f4eb6aeb5037765ced8faa4831 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Tue, 5 May 2026 16:28:07 +0700 Subject: [PATCH 2/2] chore: revert audio_transcription_service temperature change (out of scope) Whisper temperature tuning belongs with the transcription stack work, not with WhatsApp call wiring. Restoring develop's value to keep the PR focused. --- .../app/services/messages/audio_transcription_service.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/enterprise/app/services/messages/audio_transcription_service.rb b/enterprise/app/services/messages/audio_transcription_service.rb index 3c37df142..0e574cb03 100644 --- a/enterprise/app/services/messages/audio_transcription_service.rb +++ b/enterprise/app/services/messages/audio_transcription_service.rb @@ -67,9 +67,7 @@ class Messages::AudioTranscriptionService< Llm::LegacyBaseOpenAiService parameters: { model: WHISPER_MODEL, file: file, - # 0.0 minimises Whisper's hallucinations on silence / sub-vocal segments — - # higher temperatures produce phantom phrases that look like real transcripts. - temperature: 0.0 + temperature: 0.4 } ) transcribed_text = response['text']