diff --git a/app/javascript/dashboard/routes/dashboard/settings/account/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/account/Index.vue index cc66d829f..69342858d 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/account/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/account/Index.vue @@ -71,6 +71,12 @@ export default { FEATURE_FLAGS.AUTO_RESOLVE_CONVERSATIONS ); }, + showAudioTranscriptionConfig() { + return this.isFeatureEnabledonAccount( + this.accountId, + FEATURE_FLAGS.CAPTAIN + ); + }, languagesSortedByCode() { const enabledLanguages = [...this.enabledLanguages]; return enabledLanguages.sort((l1, l2) => @@ -237,7 +243,7 @@ export default { - +
diff --git a/enterprise/app/services/messages/audio_transcription_service.rb b/enterprise/app/services/messages/audio_transcription_service.rb index 8b598cf28..c00328c66 100644 --- a/enterprise/app/services/messages/audio_transcription_service.rb +++ b/enterprise/app/services/messages/audio_transcription_service.rb @@ -20,7 +20,10 @@ class Messages::AudioTranscriptionService < Llm::BaseOpenAiService private def can_transcribe? - account.audio_transcriptions.present? && account.usage_limits[:captain][:responses][:current_available].positive? + return false if account.feature_enabled?('captain_integration') + return false if account.audio_transcriptions.blank? + + account.usage_limits[:captain][:responses][:current_available].positive? end def fetch_audio_file