fix extragptmodel config warning

This commit is contained in:
end-4
2024-06-17 18:30:03 +07:00
parent 793be4b204
commit 68a155e417
@@ -229,7 +229,7 @@ function overrideConfigRecursive(userOverrides, configOptions = {}, check = true
optionsOkay = false;
}
else if (typeof value === 'object' && !(value instanceof Array)) {
if (key === "substitutions" || key === "regexSubstitutions") {
if (key === "substitutions" || key === "regexSubstitutions" || key === "extraGptModels") {
overrideConfigRecursive(value, configOptions[key], false);
} else overrideConfigRecursive(value, configOptions[key]);
} else {