Add API key

This commit is contained in:
oobabooga
2024-02-06 20:00:16 -08:00
parent 2815990589
commit 21fb143718
5 changed files with 29 additions and 0 deletions

View File

@@ -8541,6 +8541,11 @@ jQuery(async function () {
await writeSecret(SECRET_KEYS.TOGETHERAI, togetherKey);
}
const oobaKey = String($('#api_key_ooba').val()).trim();
if (oobaKey.length) {
await writeSecret(SECRET_KEYS.OOBA, oobaKey);
}
validateTextGenUrl();
startStatusLoading();
main_api = 'textgenerationwebui';