Resolves the EFFECTIVE model configuration by deep-merging the catalog layers, base first —
type default < model < vendor default < model-vendor, via SafeDeepMerge in @memberjunction/global
(the same merge the realtime config cascade, DeepMergeConfigs in @memberjunction/ai-agents, uses):
plain object vs plain object → recursive per-key merge (a vendor row overriding ONE
Realtime.TurnDetection knob does not wipe the model's other sections);
anything else (arrays, strings, numbers, booleans, null) → the later value REPLACES;
null/undefined LAYERS are skipped entirely; inputs are never mutated;
__proto__, constructor and prototype keys are skipped at every depth.
Resolves the EFFECTIVE model configuration by deep-merging the catalog layers, base first — type default < model < vendor default < model-vendor, via
SafeDeepMergein@memberjunction/global(the same merge the realtime config cascade,DeepMergeConfigsin@memberjunction/ai-agents, uses):Realtime.TurnDetectionknob does not wipe the model's other sections);null) → the later value REPLACES;null/undefinedLAYERS are skipped entirely; inputs are never mutated;__proto__,constructorandprototypekeys are skipped at every depth.