Remove pollinations refine toggle
| @@ -283,7 +283,6 @@ const defaultSettings = { | |||
| 283 | 283 | ||
| 284 | // Pollinations settings | 284 | // Pollinations settings |
| 285 | pollinations_enhance: false, | 285 | pollinations_enhance: false, |
| 286 | pollinations_refine: false, | ||
| 287 | 286 | ||
| 288 | // Visibility toggles | 287 | // Visibility toggles |
| 289 | wand_visible: false, | 288 | wand_visible: false, |
| @@ -425,7 +424,6 @@ async function loadSettings() { | |||
| 425 | $('#sd_novel_sm_dyn').prop('disabled', !extension_settings.sd.novel_sm); | 424 | $('#sd_novel_sm_dyn').prop('disabled', !extension_settings.sd.novel_sm); |
| 426 | $('#sd_novel_decrisper').prop('checked', extension_settings.sd.novel_decrisper); | 425 | $('#sd_novel_decrisper').prop('checked', extension_settings.sd.novel_decrisper); |
| 427 | $('#sd_pollinations_enhance').prop('checked', extension_settings.sd.pollinations_enhance); | 426 | $('#sd_pollinations_enhance').prop('checked', extension_settings.sd.pollinations_enhance); |
| 428 | $('#sd_pollinations_refine').prop('checked', extension_settings.sd.pollinations_refine); | ||
| 429 | $('#sd_horde').prop('checked', extension_settings.sd.horde); | 427 | $('#sd_horde').prop('checked', extension_settings.sd.horde); |
| 430 | $('#sd_horde_nsfw').prop('checked', extension_settings.sd.horde_nsfw); | 428 | $('#sd_horde_nsfw').prop('checked', extension_settings.sd.horde_nsfw); |
| 431 | $('#sd_horde_karras').prop('checked', extension_settings.sd.horde_karras); | 429 | $('#sd_horde_karras').prop('checked', extension_settings.sd.horde_karras); |
| @@ -1009,11 +1007,6 @@ function onPollinationsEnhanceInput() { | |||
| 1009 | saveSettingsDebounced(); | 1007 | saveSettingsDebounced(); |
| 1010 | } | 1008 | } |
| 1011 | 1009 | ||
| 1012 | function onPollinationsRefineInput() { | ||
| 1013 | extension_settings.sd.pollinations_refine = !!$('#sd_pollinations_refine').prop('checked'); | ||
| 1014 | saveSettingsDebounced(); | ||
| 1015 | } | ||
| 1016 | |||
| 1017 | function onHordeNsfwInput() { | 1010 | function onHordeNsfwInput() { |
| 1018 | extension_settings.sd.horde_nsfw = !!$(this).prop('checked'); | 1011 | extension_settings.sd.horde_nsfw = !!$(this).prop('checked'); |
| 1019 | saveSettingsDebounced(); | 1012 | saveSettingsDebounced(); |
| @@ -2740,7 +2733,6 @@ async function generatePollinationsImage(prompt, negativePrompt, signal) { | |||
| 2740 | width: extension_settings.sd.width, | 2733 | width: extension_settings.sd.width, |
| 2741 | height: extension_settings.sd.height, | 2734 | height: extension_settings.sd.height, |
| 2742 | enhance: extension_settings.sd.pollinations_enhance, | 2735 | enhance: extension_settings.sd.pollinations_enhance, |
| 2743 | refine: extension_settings.sd.pollinations_refine, | ||
| 2744 | seed: extension_settings.sd.seed >= 0 ? extension_settings.sd.seed : undefined, | 2736 | seed: extension_settings.sd.seed >= 0 ? extension_settings.sd.seed : undefined, |
| 2745 | }), | 2737 | }), |
| 2746 | }); | 2738 | }); |
| @@ -3887,7 +3879,6 @@ jQuery(async () => { | |||
| 3887 | $('#sd_novel_sm_dyn').on('input', onNovelSmDynInput); | 3879 | $('#sd_novel_sm_dyn').on('input', onNovelSmDynInput); |
| 3888 | $('#sd_novel_decrisper').on('input', onNovelDecrisperInput); | 3880 | $('#sd_novel_decrisper').on('input', onNovelDecrisperInput); |
| 3889 | $('#sd_pollinations_enhance').on('input', onPollinationsEnhanceInput); | 3881 | $('#sd_pollinations_enhance').on('input', onPollinationsEnhanceInput); |
| 3890 | $('#sd_pollinations_refine').on('input', onPollinationsRefineInput); | ||
| 3891 | $('#sd_comfy_validate').on('click', validateComfyUrl); | 3882 | $('#sd_comfy_validate').on('click', validateComfyUrl); |
| 3892 | $('#sd_comfy_url').on('input', onComfyUrlInput); | 3883 | $('#sd_comfy_url').on('input', onComfyUrlInput); |
| 3893 | $('#sd_comfy_workflow').on('change', onComfyWorkflowChange); | 3884 | $('#sd_comfy_workflow').on('change', onComfyWorkflowChange); |
| @@ -184,18 +184,12 @@ | |||
| 184 | <a href="https://pollinations.ai">Pollinations.ai</a> | 184 | <a href="https://pollinations.ai">Pollinations.ai</a> |
| 185 | </p> | 185 | </p> |
| 186 | <div class="flex-container"> | 186 | <div class="flex-container"> |
| 187 | <label class="flex1 checkbox_label" for="sd_pollinations_enhance"> | 187 | <label class="flex1 checkbox_label" for="sd_pollinations_enhance" title="Enables prompt enhancing (passes prompts through an LLM to add detail)."> |
| 188 | <input id="sd_pollinations_enhance" type="checkbox" /> | 188 | <input id="sd_pollinations_enhance" type="checkbox" /> |
| 189 | <span data-i18n="Enhance"> | 189 | <span data-i18n="Enhance"> |
| 190 | Enhance | 190 | Enhance |
| 191 | </span> | 191 | </span> |
| 192 | </label> | 192 | </label> |
| 193 | <label class="flex1 checkbox_label" for="sd_pollinations_refine"> | ||
| 194 | <input id="sd_pollinations_refine" type="checkbox" /> | ||
| 195 | <span data-i18n="Refine"> | ||
| 196 | Refine | ||
| 197 | </span> | ||
| 198 | </label> | ||
| 199 | </div> | 193 | </div> |
| 200 | </div> | 194 | </div> |
| 201 | <div data-sd-source="stability"> | 195 | <div data-sd-source="stability"> |
| @@ -844,7 +844,6 @@ pollinations.post('/generate', jsonParser, async (request, response) => { | |||
| 844 | negative_prompt: String(request.body.negative_prompt), | 844 | negative_prompt: String(request.body.negative_prompt), |
| 845 | seed: String(request.body.seed >= 0 ? request.body.seed : Math.floor(Math.random() * 10_000_000)), | 845 | seed: String(request.body.seed >= 0 ? request.body.seed : Math.floor(Math.random() * 10_000_000)), |
| 846 | enhance: String(request.body.enhance ?? false), | 846 | enhance: String(request.body.enhance ?? false), |
| 847 | refine: String(request.body.refine ?? false), | ||
| 848 | width: String(request.body.width ?? 1024), | 847 | width: String(request.body.width ?? 1024), |
| 849 | height: String(request.body.height ?? 1024), | 848 | height: String(request.body.height ?? 1024), |
| 850 | nologo: String(true), | 849 | nologo: String(true), |