mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add peek proxy password btn
This commit is contained in:
@ -554,8 +554,9 @@
|
|||||||
Will be used as a password for the proxy instead of API key.<br>
|
Will be used as a password for the proxy instead of API key.<br>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wide100p">
|
<div class="flex-container width100p">
|
||||||
<input id="openai_proxy_password" type="password" class="text_pole" placeholder="" maxlength="200" />
|
<input id="openai_proxy_password" type="password" class="text_pole flex1" placeholder="" maxlength="200" />
|
||||||
|
<div id="openai_proxy_password_show" title="Peek a password" class="menu_button fa-solid fa-eye-slash fa-fw"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block" data-source="openai,claude">
|
<div class="range-block" data-source="openai,claude">
|
||||||
|
@ -2792,6 +2792,13 @@ function reconnectOpenAi() {
|
|||||||
$('#api_button_openai').trigger('click');
|
$('#api_button_openai').trigger('click');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onProxyPasswordShowClick() {
|
||||||
|
const $input = $('#openai_proxy_password');
|
||||||
|
const type = $input.attr('type') === 'password' ? 'text' : 'password';
|
||||||
|
$input.attr('type', type);
|
||||||
|
$(this).toggleClass('fa-eye-slash fa-eye');
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('#test_api_button').on('click', testApiConnection);
|
$('#test_api_button').on('click', testApiConnection);
|
||||||
|
|
||||||
@ -3029,4 +3036,5 @@ $(document).ready(function () {
|
|||||||
$("#openai_logit_bias_export_preset").on("click", onLogitBiasPresetExportClick);
|
$("#openai_logit_bias_export_preset").on("click", onLogitBiasPresetExportClick);
|
||||||
$("#openai_logit_bias_delete_preset").on("click", onLogitBiasPresetDeleteClick);
|
$("#openai_logit_bias_delete_preset").on("click", onLogitBiasPresetDeleteClick);
|
||||||
$("#import_oai_preset").on("click", onImportPresetClick);
|
$("#import_oai_preset").on("click", onImportPresetClick);
|
||||||
|
$("#openai_proxy_password_show").on("click", onProxyPasswordShowClick);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user