chore: disable response usage increment

This commit is contained in:
Shivam Mishra
2025-01-20 16:55:11 +05:30
parent 732b0d0ec0
commit 0a4af3592e
+6 -6
View File
@@ -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