[AI Art] Trying to add adetailer

Do I just stick it here:

buildStableDiffusionSettings(slave) {
	const prompt = buildPrompt(slave);
	const settings = new App.Art.GenAI.StableDiffusionSettings({
		cfg_scale: V.aiCfgScale,
		enable_hr: V.aiUpscale,
		height: V.aiHeight,
		hr_upscaler: V.aiUpscaler,
		negative_prompt: prompt.negative(),
		prompt: prompt.positive(),
		sampler_name: V.aiSamplingMethod,
		seed: slave.natural.artSeed,
		steps: V.aiSamplingSteps,
		width: V.aiWidth,
		alwayson_scripts: {
			ADetailer: {
				args: [{
					ad_model: "face_yolov8n.pt",
				}]
			},
			"Dynamic Thresholding (CFG Scale Fix)": {
				args: [
					true,
					7,
					100,
					"Half Cosine Up",
					5,
					"Half Cosine Up",
					5,
					4.0
				]
			}
		}
	});

	return settings;
}

It's not working for me.