diff --git a/cms/envs/common.py b/cms/envs/common.py index e2ad3e239f61..895e4c0ed7e9 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -841,7 +841,8 @@ ENTERPRISE_MARKETING_FOOTER_QUERY_PARAMS = {} # Setting for Open API key and prompts used by edx-enterprise. -OPENAI_API_KEY = '' +CHAT_COMPLETION_API = 'https://example.com/chat/completion' +CHAT_COMPLETION_API_KEY = 'i am a key' LEARNER_ENGAGEMENT_PROMPT_FOR_ACTIVE_CONTRACT = '' LEARNER_ENGAGEMENT_PROMPT_FOR_NON_ACTIVE_CONTRACT = '' LEARNER_PROGRESS_PROMPT_FOR_ACTIVE_CONTRACT = '' diff --git a/cms/envs/production.py b/cms/envs/production.py index cf2a7d2f3fad..50519b55229b 100644 --- a/cms/envs/production.py +++ b/cms/envs/production.py @@ -169,7 +169,8 @@ def get_env_setting(setting): AUTHORING_API_URL = ENV_TOKENS.get('AUTHORING_API_URL', '') # Note that FEATURES['PREVIEW_LMS_BASE'] gets read in from the environment file. -OPENAI_API_KEY = ENV_TOKENS.get('OPENAI_API_KEY', '') +CHAT_COMPLETION_API = ENV_TOKENS.get('CHAT_COMPLETION_API', '') +CHAT_COMPLETION_API_KEY = ENV_TOKENS.get('CHAT_COMPLETION_API_KEY', '') LEARNER_ENGAGEMENT_PROMPT_FOR_ACTIVE_CONTRACT = ENV_TOKENS.get('LEARNER_ENGAGEMENT_PROMPT_FOR_ACTIVE_CONTRACT', '') LEARNER_ENGAGEMENT_PROMPT_FOR_NON_ACTIVE_CONTRACT = ENV_TOKENS.get( 'LEARNER_ENGAGEMENT_PROMPT_FOR_NON_ACTIVE_CONTRACT', diff --git a/lms/envs/common.py b/lms/envs/common.py index 3074d958b266..065d059eeda1 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4682,7 +4682,8 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring ] # Setting for Open API key and prompts used by edx-enterprise. -OPENAI_API_KEY = '' +CHAT_COMPLETION_API = 'https://example.com/chat/completion' +CHAT_COMPLETION_API_KEY = 'i am a key' LEARNER_ENGAGEMENT_PROMPT_FOR_ACTIVE_CONTRACT = '' LEARNER_ENGAGEMENT_PROMPT_FOR_NON_ACTIVE_CONTRACT = '' LEARNER_PROGRESS_PROMPT_FOR_ACTIVE_CONTRACT = '' diff --git a/lms/envs/production.py b/lms/envs/production.py index 84cbdc420e44..9ce9fd6c9b47 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -922,7 +922,8 @@ def get_env_setting(setting): ENTERPRISE_CATALOG_INTERNAL_ROOT_URL ) -OPENAI_API_KEY = ENV_TOKENS.get('OPENAI_API_KEY', '') +CHAT_COMPLETION_API = ENV_TOKENS.get('CHAT_COMPLETION_API', '') +CHAT_COMPLETION_API_KEY = ENV_TOKENS.get('CHAT_COMPLETION_API_KEY', '') LEARNER_ENGAGEMENT_PROMPT_FOR_ACTIVE_CONTRACT = ENV_TOKENS.get('LEARNER_ENGAGEMENT_PROMPT_FOR_ACTIVE_CONTRACT', '') LEARNER_ENGAGEMENT_PROMPT_FOR_NON_ACTIVE_CONTRACT = ENV_TOKENS.get( 'LEARNER_ENGAGEMENT_PROMPT_FOR_NON_ACTIVE_CONTRACT', diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 947f07b0eddb..bfd064bc6304 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -20,7 +20,7 @@ celery>=5.2.2,<6.0.0 # The team that owns this package will manually bump this package rather than having it pulled in automatically. # This is to allow them to better control its deployment and to do it in a process that works better # for them. -edx-enterprise==4.20.14 +edx-enterprise==4.21.0 # Stay on LTS version, remove once this is added to common constraint Django<5.0 diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 56d7babebb1e..1405e891c104 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -450,7 +450,7 @@ edx-drf-extensions==10.3.0 # edx-when # edxval # openedx-learning -edx-enterprise==4.20.14 +edx-enterprise==4.21.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/kernel.in diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 5f62c61fbcfa..b6de273fdb7d 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -724,7 +724,7 @@ edx-drf-extensions==10.3.0 # edx-when # edxval # openedx-learning -edx-enterprise==4.20.14 +edx-enterprise==4.21.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/doc.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index f4ae598faa22..9ed85770c07e 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -522,7 +522,7 @@ edx-drf-extensions==10.3.0 # edx-when # edxval # openedx-learning -edx-enterprise==4.20.14 +edx-enterprise==4.21.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 07449a41530a..ba25b7b4a569 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -555,7 +555,7 @@ edx-drf-extensions==10.3.0 # edx-when # edxval # openedx-learning -edx-enterprise==4.20.14 +edx-enterprise==4.21.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt