feat: add CAPTAIN_CLOUD_PLAN_LIMITS config

This commit is contained in:
Shivam Mishra
2025-01-17 13:24:10 +05:30
parent f2ff3b42e3
commit cb8dbbfbd8
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -138,6 +138,12 @@
display_title: 'OpenAI API Key'
description: 'The OpenAI API key for the Captain AI service'
locked: false
- name: CAPTAIN_CLOUD_PLAN_LIMITS
display_title: 'Captain Cloud Plan Limits'
description: 'The limits for the Captain AI service for different plans'
value:
type: code
# End of Captain Config
# ------- Chatwoot Internal Config for Cloud ----#
@@ -10,7 +10,7 @@ module Enterprise::SuperAdmin::AppConfigsController
when 'internal'
@allowed_configs = internal_config_options
when 'captain'
@allowed_configs = %w[CAPTAIN_OPEN_AI_API_KEY]
@allowed_configs = %w[CAPTAIN_OPEN_AI_API_KEY CAPTAIN_CLOUD_PLAN_LIMITS]
else
super
end