LLM UI - Blueprint/code also disabled when env flag LLM_FEATURES_DISABLED is enabled

This commit is contained in:
dgtlmoon
2026-05-23 15:34:24 +02:00
parent ea5c07b1fc
commit 73d2c0a16c
@@ -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"])