From 4d2f9b147d807e79e4047e0afc4926bda0e0443d Mon Sep 17 00:00:00 2001 From: Chen188 Date: Tue, 16 Apr 2024 13:08:24 +0000 Subject: [PATCH] clear stale code, fix bedrock aksk UI --- public/script.js | 9 --------- src/endpoints/secrets.js | 3 ++- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/public/script.js b/public/script.js index 85fb46093..8d4984442 100644 --- a/public/script.js +++ b/public/script.js @@ -9188,15 +9188,6 @@ jQuery(async function () { } }); - $('#access_key_aws, #secret_key_aws').on('change', async function(e){ - e.stopPropagation(); - - const access_key_aws = String($('#access_key_aws').val()).trim(); - const secret_key_aws = String($('#secret_key_aws').val()).trim(); - - $('#api_key_bedrock').val(JSON.stringify([access_key_aws, secret_key_aws])); - }); - $('#api_button_textgenerationwebui').on('click', async function (e) { const keys = [ { id: 'api_key_mancer', secret: SECRET_KEYS.MANCER }, diff --git a/src/endpoints/secrets.js b/src/endpoints/secrets.js index 879a46320..1bc7da22a 100644 --- a/src/endpoints/secrets.js +++ b/src/endpoints/secrets.js @@ -30,7 +30,8 @@ const SECRET_KEYS = { MISTRALAI: 'api_key_mistralai', CUSTOM: 'api_key_custom', OOBA: 'api_key_ooba', - BEDROCK: 'api_key_bedrock', + BEDROCK_ACCESS_KEY: 'api_key_bedrock_access', + BEDROCK_SECRET_KEY: 'api_key_bedrock_secret', INFERMATICAI: 'api_key_infermaticai', DREAMGEN: 'api_key_dreamgen', NOMICAI: 'api_key_nomicai',