From 3bff553e4e2e9aa785089d1a262ec27100e50c6f Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 23 May 2026 17:16:19 +0200 Subject: [PATCH] LLM UI - Blueprint/code also disabled when env flag LLM_FEATURES_DISABLED is enabled (#4180) --- changedetectionio/blueprint/settings/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/blueprint/settings/__init__.py b/changedetectionio/blueprint/settings/__init__.py index b4d103d2..e3a75587 100644 --- a/changedetectionio/blueprint/settings/__init__.py +++ b/changedetectionio/blueprint/settings/__init__.py @@ -13,10 +13,10 @@ from changedetectionio.auth_decorator import login_optionally_required def construct_blueprint(datastore: ChangeDetectionStore): - from changedetectionio.blueprint.settings.llm import construct_llm_blueprint from changedetectionio.llm.evaluator import is_llm_features_disabled settings_blueprint = Blueprint('settings', __name__, template_folder="templates") if not is_llm_features_disabled(): + from changedetectionio.blueprint.settings.llm import construct_llm_blueprint settings_blueprint.register_blueprint(construct_llm_blueprint(datastore), url_prefix='/llm') @settings_blueprint.route("", methods=['GET', "POST"])