From d1b2aeb7f1ff3fd44911cadbee12372494b799d9 Mon Sep 17 00:00:00 2001 From: Jason Schleifer Date: Thu, 31 Oct 2024 11:49:16 +1300 Subject: [PATCH] tmp adding settings --- js/gtUINodes.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/js/gtUINodes.js b/js/gtUINodes.js index 71f8c4b..8726e30 100644 --- a/js/gtUINodes.js +++ b/js/gtUINodes.js @@ -37,15 +37,25 @@ app.registerExtension({ } api.addEventListener("comfy.gtUI.runagent", messageHandler); - // app.ui.settings.addSetting({ - // id: "griptape.env", - // name: "Griptape environment variables", - // type: "textbox", // "text" is another simple option + // app.ui.settings.addSetting({ + // id: "griptape.api_keys.openai_api_key", + // name: "OPENAI_API_KEY", + // type: "textbox", // "text" is another simple option - // defaultValue: "OPENAI_API_KEY=12345", - // /* To listen for changes, add an onChange parameter - // onChange: (newVal, oldVal) => { console.log("Setting got changed!") }, - // */ + // defaultValue: "123456", + // /* To listen for changes, add an onChange parameter + // onChange: (newVal, oldVal) => { console.log("Setting got changed!") }, + // */ + // }); + // app.ui.settings.addSetting({ + // id: "griptape.api_keys.griptape_api_key", + // name: "GRIPTAPE_API_KEY", + // type: "textbox", // "text" is another simple option + + // defaultValue: "123456", + // /* To listen for changes, add an onChange parameter + // onChange: (newVal, oldVal) => { console.log("Setting got changed!") }, + // */ // }); },