Browse Source

fixed even more stuff...trust me you'll love it

pull/261/head
xssdoctor 8 months ago
parent
commit
3121730102
  1. 2
      installer/client/gui/main.js
  2. 3
      installer/client/gui/static/js/index.js
  3. 0
      installer/client/gui/utils.js

2
installer/client/gui/main.js

@ -165,6 +165,8 @@ function saveApiKeys(openAIKey, claudeKey) {
}
fs.writeFileSync(envFilePath, envContent.trim());
loadApiKeys();
win.webContents.send("reload-app");
}
function updateOrAddKey(envContent, keyName, keyValue) {

3
installer/client/gui/static/js/index.js

@ -173,6 +173,7 @@ document.addEventListener("DOMContentLoaded", async function () {
() => {
// Reload the app
loadModels();
location.reload();
};
// Submit button click handler
@ -206,6 +207,8 @@ document.addEventListener("DOMContentLoaded", async function () {
configSection.classList.add("hidden");
openaiApiKeyInput.value = "";
claudeApiKeyInput.value = "";
// Reload the models
loadModels();
})
.catch((err) => {
console.error("Error saving API keys:", err);

0
installer/client/gui/utils.js

Loading…
Cancel
Save