Merge branch 'SillyTavern:staging' into staging

This commit is contained in:
Tony Ribeiro 2023-08-16 19:19:29 +02:00 committed by GitHub
commit 05504ebbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@ TODO:
*/
import { saveSettingsDebounced } from "../../../script.js";
import { getContext, getApiUrl, extension_settings, doExtrasFetch, ModuleWorkerWrapper } from "../../extensions.js";
import { getContext, getApiUrl, extension_settings, doExtrasFetch, ModuleWorkerWrapper, modules } from "../../extensions.js";
export { MODULE_NAME, rvcVoiceConversion};
const MODULE_NAME = 'RVC';
@ -340,7 +340,7 @@ async function rvcVoiceConversion(response, character) {
async function moduleWorker() {
updateCharactersList();
if (rvcModelsList.length == 0) {
if (modules.includes('rvc') && rvcModelsList.length == 0) {
let result = await get_models_list();
result = await result.json();
rvcModelsList = result["models_list"]