From 536739ef7a13a9d4e41cd53c9d79a916f1179623 Mon Sep 17 00:00:00 2001 From: BeatrixCohere <128378696+BeatrixCohere@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:17:41 +0100 Subject: [PATCH 1/2] Change --- .env-template | 1 + src/backend/routers/experimental_features.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.env-template b/.env-template index 8cd3ff05aa..254f8be291 100644 --- a/.env-template +++ b/.env-template @@ -36,6 +36,7 @@ BEDROCK_REGION_NAME= # Experimental features USE_EXPERIMENTAL_LANGCHAIN=False +USE_AGENTS_VIEW=False # Community features USE_COMMUNITY_FEATURES='True' diff --git a/src/backend/routers/experimental_features.py b/src/backend/routers/experimental_features.py index 9012f9f3e5..88be169236 100644 --- a/src/backend/routers/experimental_features.py +++ b/src/backend/routers/experimental_features.py @@ -24,6 +24,9 @@ def list_experimental_features(): experimental_features = { "USE_EXPERIMENTAL_LANGCHAIN": bool( strtobool(os.getenv("USE_EXPERIMENTAL_LANGCHAIN", "false")) + ), + "USE_AGENTS_VIEW": bool( + strtobool(os.getenv("USE_AGENTS_VIEW", "false")) ) } return experimental_features From 6d39eeb1c732d77941575885af8dbed433a56013 Mon Sep 17 00:00:00 2001 From: BeatrixCohere <128378696+BeatrixCohere@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:20:27 +0100 Subject: [PATCH 2/2] Format --- src/backend/routers/experimental_features.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/routers/experimental_features.py b/src/backend/routers/experimental_features.py index 88be169236..32b2b262bf 100644 --- a/src/backend/routers/experimental_features.py +++ b/src/backend/routers/experimental_features.py @@ -25,8 +25,6 @@ def list_experimental_features(): "USE_EXPERIMENTAL_LANGCHAIN": bool( strtobool(os.getenv("USE_EXPERIMENTAL_LANGCHAIN", "false")) ), - "USE_AGENTS_VIEW": bool( - strtobool(os.getenv("USE_AGENTS_VIEW", "false")) - ) + "USE_AGENTS_VIEW": bool(strtobool(os.getenv("USE_AGENTS_VIEW", "false"))), } return experimental_features