Merge branch 'develop' into chore/notification-logging

This commit is contained in:
Muhsin Keloth
2024-08-08 13:20:49 +05:30
committed by GitHub
677 changed files with 25289 additions and 24173 deletions
@@ -31,7 +31,8 @@ class Integrations::Captain::ProcessorService < Integrations::BotProcessorServic
end
def call_captain(message_content)
url = "#{ENV.fetch('CAPTAIN_API_URL', nil)}/accounts/#{hook.settings['account_id']}/assistants/#{hook.settings['assistant_id']}/chat"
url = "#{GlobalConfigService.load('CAPTAIN_API_URL',
'')}/accounts/#{hook.settings['account_id']}/assistants/#{hook.settings['assistant_id']}/chat"
headers = {
'X-USER-EMAIL' => hook.settings['account_email'],