feat: naive increment response creation

This commit is contained in:
Shivam Mishra
2025-01-17 16:20:59 +05:30
parent e8ba3ee37e
commit 9dff2ed76c
2 changed files with 2 additions and 0 deletions
@@ -25,6 +25,7 @@ class Captain::Conversation::ResponseBuilderJob < ApplicationJob
return process_action('handoff') if handoff_requested?
create_messages
account.increment_response_usage
end
def collect_previous_messages
@@ -9,6 +9,7 @@ class Captain::Copilot::ChatService
def execute(input)
@agent.execute(input, conversation_history_context)
@assistant.account.increment_response_usage
end
private