mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Unify API connect UI positioning
This commit is contained in:
@@ -1953,10 +1953,6 @@
|
|||||||
<div data-for="api_key_novel" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
|
<div data-for="api_key_novel" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
|
||||||
For privacy reasons, your API key will be hidden after you reload the page.
|
For privacy reasons, your API key will be hidden after you reload the page.
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-container">
|
|
||||||
<div id="api_button_novel" class="api_button menu_button" type="submit" data-i18n="Connect">Connect</div>
|
|
||||||
<div class="api_loading menu_button" data-i18n="Cancel">Cancel</div>
|
|
||||||
</div>
|
|
||||||
<h4><span data-i18n="Novel AI Model">Novel AI Model</span>
|
<h4><span data-i18n="Novel AI Model">Novel AI Model</span>
|
||||||
<a href="https://docs.sillytavern.app/usage/api-connections/novelai/#models" class="notes-link" target="_blank">
|
<a href="https://docs.sillytavern.app/usage/api-connections/novelai/#models" class="notes-link" target="_blank">
|
||||||
<span class="fa-solid fa-circle-question note-link-span"></span>
|
<span class="fa-solid fa-circle-question note-link-span"></span>
|
||||||
@@ -1966,6 +1962,10 @@
|
|||||||
<option value="clio-v1">Clio</option>
|
<option value="clio-v1">Clio</option>
|
||||||
<option value="kayra-v1">Kayra</option>
|
<option value="kayra-v1">Kayra</option>
|
||||||
</select>
|
</select>
|
||||||
|
<div class="flex-container">
|
||||||
|
<div id="api_button_novel" class="api_button menu_button" type="submit" data-i18n="Connect">Connect</div>
|
||||||
|
<div class="api_loading menu_button" data-i18n="Cancel">Cancel</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div class="online_status">
|
<div class="online_status">
|
||||||
<div class="online_status_indicator"></div>
|
<div class="online_status_indicator"></div>
|
||||||
@@ -2489,6 +2489,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<form id="openrouter_form" data-source="openrouter" action="javascript:void(null);" method="post" enctype="multipart/form-data">
|
<form id="openrouter_form" data-source="openrouter" action="javascript:void(null);" method="post" enctype="multipart/form-data">
|
||||||
|
<h4 data-i18n="OpenRouter API Key">OpenRouter API Key</h4>
|
||||||
|
<div>
|
||||||
|
<small data-i18n="Click Authorize below or get the key from">
|
||||||
|
Click "Authorize" below or get the key from </small> <a target="_blank" href="https://openrouter.ai/keys/">OpenRouter</a>.
|
||||||
|
<br>
|
||||||
|
<a href="https://openrouter.ai/account" target="_blank" data-i18n="View Remaining Credits">View Remaining Credits</a>
|
||||||
|
</div>
|
||||||
|
<div class="flex-container">
|
||||||
|
<input id="api_key_openrouter" name="api_key_openrouter" class="text_pole flex1 api_key_openrouter" maxlength="500" value="" type="text" autocomplete="off">
|
||||||
|
<div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_openrouter"></div>
|
||||||
|
</div>
|
||||||
|
<div data-for="api_key_openrouter" class="neutral_warning">
|
||||||
|
For privacy reasons, your API key will be hidden after you reload the page.
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h4 data-i18n="OpenRouter Model">OpenRouter Model</h4>
|
<h4 data-i18n="OpenRouter Model">OpenRouter Model</h4>
|
||||||
<select id="model_openrouter_select">
|
<select id="model_openrouter_select">
|
||||||
@@ -2552,20 +2566,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h4 data-i18n="OpenRouter API Key">OpenRouter API Key</h4>
|
|
||||||
<div>
|
|
||||||
<small data-i18n="Click Authorize below or get the key from">
|
|
||||||
Click "Authorize" below or get the key from </small> <a target="_blank" href="https://openrouter.ai/keys/">OpenRouter</a>.
|
|
||||||
<br>
|
|
||||||
<a href="https://openrouter.ai/account" target="_blank" data-i18n="View Remaining Credits">View Remaining Credits</a>
|
|
||||||
</div>
|
|
||||||
<div class="flex-container">
|
|
||||||
<input id="api_key_openrouter" name="api_key_openrouter" class="text_pole flex1 api_key_openrouter" maxlength="500" value="" type="text" autocomplete="off">
|
|
||||||
<div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_openrouter"></div>
|
|
||||||
</div>
|
|
||||||
<div data-for="api_key_openrouter" class="neutral_warning">
|
|
||||||
For privacy reasons, your API key will be hidden after you reload the page.
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
<form id="scale_form" data-source="scale" action="javascript:void(null);" method="post" enctype="multipart/form-data">
|
<form id="scale_form" data-source="scale" action="javascript:void(null);" method="post" enctype="multipart/form-data">
|
||||||
<div id="normal_scale_form">
|
<div id="normal_scale_form">
|
||||||
|
Reference in New Issue
Block a user