From 916a6e7938e56e1dc375d83ba6d06b6eaee7a2ae Mon Sep 17 00:00:00 2001 From: tazztone <62671577+tazztone@users.noreply.github.com> Date: Sun, 26 Apr 2026 20:18:55 +0200 Subject: [PATCH] ui: add security warning to api_key widget label --- web/openrouter_dynamic_inputs.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/openrouter_dynamic_inputs.js b/web/openrouter_dynamic_inputs.js index d0e8e61..fd44b6b 100644 --- a/web/openrouter_dynamic_inputs.js +++ b/web/openrouter_dynamic_inputs.js @@ -31,6 +31,12 @@ app.registerExtension({ nodeType.prototype.onNodeCreated = function () { const me = onNodeCreated?.apply(this); + // Find api_key widget and update label with security warning + const apiKeyWidget = this.widgets?.find(w => w.name === "api_key"); + if (apiKeyWidget) { + apiKeyWidget.label = "api_key (Leave blank for secure loading)"; + } + // Start with a new dynamic input - exactly like cozy example this.addInput(PREFIX, TYPE);