clear stale code, fix bedrock aksk UI

This commit is contained in:
Chen188 2024-04-16 13:08:24 +00:00
parent 7209cabaf4
commit 4d2f9b147d
2 changed files with 2 additions and 10 deletions

View File

@ -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) { $('#api_button_textgenerationwebui').on('click', async function (e) {
const keys = [ const keys = [
{ id: 'api_key_mancer', secret: SECRET_KEYS.MANCER }, { id: 'api_key_mancer', secret: SECRET_KEYS.MANCER },

View File

@ -30,7 +30,8 @@ const SECRET_KEYS = {
MISTRALAI: 'api_key_mistralai', MISTRALAI: 'api_key_mistralai',
CUSTOM: 'api_key_custom', CUSTOM: 'api_key_custom',
OOBA: 'api_key_ooba', 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', INFERMATICAI: 'api_key_infermaticai',
DREAMGEN: 'api_key_dreamgen', DREAMGEN: 'api_key_dreamgen',
NOMICAI: 'api_key_nomicai', NOMICAI: 'api_key_nomicai',