mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
@ -57,6 +57,7 @@ import {
|
|||||||
getSortableDelay,
|
getSortableDelay,
|
||||||
getStringHash,
|
getStringHash,
|
||||||
isDataURL,
|
isDataURL,
|
||||||
|
isValidUrl,
|
||||||
parseJsonFile,
|
parseJsonFile,
|
||||||
resetScrollHeight,
|
resetScrollHeight,
|
||||||
stringFormat,
|
stringFormat,
|
||||||
@ -3490,6 +3491,12 @@ async function getStatusOpen() {
|
|||||||
return resultCheckStatus();
|
return resultCheckStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (oai_settings.chat_completion_source === chat_completion_sources.CUSTOM && !isValidUrl(oai_settings.custom_url)) {
|
||||||
|
console.debug('Invalid endpoint URL of Custom OpenAI API:', oai_settings.custom_url);
|
||||||
|
setOnlineStatus('no_connection');
|
||||||
|
return resultCheckStatus();
|
||||||
|
}
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
reverse_proxy: oai_settings.reverse_proxy,
|
reverse_proxy: oai_settings.reverse_proxy,
|
||||||
proxy_password: oai_settings.proxy_password,
|
proxy_password: oai_settings.proxy_password,
|
||||||
|
Reference in New Issue
Block a user