ai: fix user option, clean up models

This commit is contained in:
end-4
2025-04-06 01:37:38 +02:00
parent 4f8a0738b4
commit ca73b05c70
4 changed files with 102 additions and 51 deletions
@@ -4,7 +4,9 @@ import { parseJSONC } from '../.miscutils/jsonc.js';
function overrideConfigRecursive(userOverrides, configOptions = {}) {
for (const [key, value] of Object.entries(userOverrides)) {
if (typeof value === 'object' && !(value instanceof Array)) {
if (typeof value === 'object'
&& !(value instanceof Array)
&& configOptions[key]) {
overrideConfigRecursive(value, configOptions[key]);
}
else {