feat: use feature flag
This commit is contained in:
@@ -176,3 +176,6 @@
|
||||
- name: notion_integration
|
||||
display_name: Notion Integration
|
||||
enabled: false
|
||||
- name: agents_next
|
||||
display_name: Use AIAgents SDK
|
||||
enabled: false
|
||||
|
||||
@@ -38,7 +38,7 @@ class CopilotMessage < ApplicationRecord
|
||||
end
|
||||
|
||||
def enqueue_response_job(conversation_id, user_id)
|
||||
if ENV['USE_AGENTS'] == 'true'
|
||||
if account.feature_enabled?('agents_next')
|
||||
# Use the new AI Agents SDK implementation
|
||||
Captain::Copilot::AgentsResponseJob.perform_later(
|
||||
copilot_thread_id: copilot_thread.id,
|
||||
|
||||
Reference in New Issue
Block a user