feat: naive increment response creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user