mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add remove key button for Azure TTS
This commit is contained in:
@ -83,7 +83,7 @@ class OpenAICompatibleTtsProvider {
|
||||
customButtons: [{
|
||||
text: 'Remove Key',
|
||||
appendAtEnd: true,
|
||||
result: POPUP_RESULT.CANCELLED,
|
||||
result: POPUP_RESULT.NEGATIVE,
|
||||
action: async () => {
|
||||
await writeSecret(SECRET_KEYS.CUSTOM_OPENAI_TTS, '');
|
||||
$('#openai_compatible_tts_key').toggleClass('success', secret_state[SECRET_KEYS.CUSTOM_OPENAI_TTS]);
|
||||
@ -93,7 +93,7 @@ class OpenAICompatibleTtsProvider {
|
||||
}],
|
||||
});
|
||||
|
||||
if (key == false || key == '' || key == null) {
|
||||
if (key == false || key == '') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user