forked from Shinonome/dots-hyprland
ai: fix user option, clean up models
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user