From 0a4af3592e192b06938c38d66593c38d6e7397b2 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 20 Jan 2025 16:55:11 +0530 Subject: [PATCH] chore: disable response usage increment --- enterprise/listeners/captain_listener.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/enterprise/listeners/captain_listener.rb b/enterprise/listeners/captain_listener.rb index 51f42c90d..1fcd7acd7 100644 --- a/enterprise/listeners/captain_listener.rb +++ b/enterprise/listeners/captain_listener.rb @@ -12,16 +12,16 @@ class CaptainListener < BaseListener def generate_notes(assistant, conversation) Captain::Llm::ContactNotesService.new(assistant, conversation).generate_and_update_notes - account = conversation.account - Rails.logger.info("[CAPTAIN][ContactNotesService] Incrementing response usage for #{account.id}") - account.increment_response_usage + # account = conversation.account + # Rails.logger.info("[CAPTAIN][ContactNotesService] Incrementing response usage for #{account.id}") + # account.increment_response_usage end def generate_faqs(assistant, conversation) Captain::Llm::ConversationFaqService.new(assistant, conversation).generate_and_deduplicate - account = conversation.account - Rails.logger.info("[CAPTAIN][ConversationFaqService] Incrementing response usage for #{account.id}") - account.increment_response_usage + # account = conversation.account + # Rails.logger.info("[CAPTAIN][ConversationFaqService] Incrementing response usage for #{account.id}") + # account.increment_response_usage end end