From 0b69b13469e259abc925ba83870b1ba6dc19dcb7 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 13 Jan 2026 20:44:13 +0530 Subject: [PATCH] feat: always increment one credit usage for audio transcription --- .../app/services/messages/audio_transcription_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/enterprise/app/services/messages/audio_transcription_service.rb b/enterprise/app/services/messages/audio_transcription_service.rb index 1676dd862..2dd2f5ad0 100644 --- a/enterprise/app/services/messages/audio_transcription_service.rb +++ b/enterprise/app/services/messages/audio_transcription_service.rb @@ -84,7 +84,8 @@ class Messages::AudioTranscriptionService< Llm::LegacyBaseOpenAiService attachment.update!(meta: { transcribed_text: transcribed_text }) message.reload.send_update_event - message.account.increment_response_usage + # TODO: Once we support configurable transcription models, update credit calculation + message.account.increment_response_usage(credits: 1) return unless ChatwootApp.advanced_search_allowed?