Merge pull request #1798 from oobabooga/staging

Add API key field for text-generation-webui
This commit is contained in:
Cohee
2024-02-07 19:24:42 +02:00
committed by GitHub
5 changed files with 28 additions and 0 deletions

View File

@@ -8540,6 +8540,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';