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',