mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Reduce console spam
This commit is contained in:
@ -229,6 +229,10 @@ async function loadHordeSamplers() {
|
||||
}
|
||||
|
||||
async function loadExtrasSamplers() {
|
||||
if (!modules.includes('sd')) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const url = new URL(getApiUrl());
|
||||
url.pathname = '/api/image/samplers';
|
||||
const result = await fetch(url, defaultRequestArgs);
|
||||
@ -276,6 +280,10 @@ async function loadHordeModels() {
|
||||
}
|
||||
|
||||
async function loadExtrasModels() {
|
||||
if (!modules.includes('sd')) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const url = new URL(getApiUrl());
|
||||
url.pathname = '/api/image/model';
|
||||
const getCurrentModelResult = await fetch(url, defaultRequestArgs);
|
||||
|
Reference in New Issue
Block a user