Clarify legacy API notification
This commit is contained in:
parent
4f1dbaa34b
commit
738c1d82c4
|
@ -269,9 +269,9 @@
|
|||
</div>
|
||||
|
||||
<div id="respective-ranges-and-temps" class="width100p">
|
||||
<!--
|
||||
<!--
|
||||
<div name="OldKoboldTempAndRepPenBlock" class="flex-container gap10h5v justifyCenter" id="range_block">
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div id="range_block_novel">
|
||||
<div class="range-block">
|
||||
|
@ -1714,7 +1714,7 @@
|
|||
</div>
|
||||
<label class="checkbox_label margin-bot-10px" for="legacy_api_textgenerationwebui">
|
||||
<input type="checkbox" id="legacy_api_textgenerationwebui" />
|
||||
<span data-i18n="Use Legacy API schema (pre-OAI)">Use Legacy API schema (pre-OAI, no streaming)</span>
|
||||
<span data-i18n="Legacy API (pre-OAI, no streaming)">Legacy API (pre-OAI, no streaming)</span>
|
||||
</label>
|
||||
</form>
|
||||
<div class="online_status">
|
||||
|
@ -4957,4 +4957,4 @@
|
|||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -151,7 +151,8 @@ function formatTextGenURL(value) {
|
|||
try {
|
||||
const url = new URL(value);
|
||||
if (url.pathname === '/api' && !textgenerationwebui_settings.legacy_api) {
|
||||
toastr.info(`Enable compatibility mode or update ooba-webui to the latest version.`, 'Legacy API URL detected. Generation may fail.', { preventDuplicates: true });
|
||||
toastr.info(`Enable Legacy API or start Ooba with the OpenAI extension enabled.`, 'Legacy API URL detected. Generation may fail.', { preventDuplicates: true, timeOut: 10000, extendedTimeOut: 20000 });
|
||||
url.pathname = '';
|
||||
}
|
||||
|
||||
if (!power_user.relaxed_api_urls && textgenerationwebui_settings.legacy_api && !isMancer()) {
|
||||
|
|
Loading…
Reference in New Issue