mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove pollinations refine toggle
This commit is contained in:
@ -283,7 +283,6 @@ const defaultSettings = {
|
|||||||
|
|
||||||
// Pollinations settings
|
// Pollinations settings
|
||||||
pollinations_enhance: false,
|
pollinations_enhance: false,
|
||||||
pollinations_refine: false,
|
|
||||||
|
|
||||||
// Visibility toggles
|
// Visibility toggles
|
||||||
wand_visible: false,
|
wand_visible: false,
|
||||||
@ -425,7 +424,6 @@ async function loadSettings() {
|
|||||||
$('#sd_novel_sm_dyn').prop('disabled', !extension_settings.sd.novel_sm);
|
$('#sd_novel_sm_dyn').prop('disabled', !extension_settings.sd.novel_sm);
|
||||||
$('#sd_novel_decrisper').prop('checked', extension_settings.sd.novel_decrisper);
|
$('#sd_novel_decrisper').prop('checked', extension_settings.sd.novel_decrisper);
|
||||||
$('#sd_pollinations_enhance').prop('checked', extension_settings.sd.pollinations_enhance);
|
$('#sd_pollinations_enhance').prop('checked', extension_settings.sd.pollinations_enhance);
|
||||||
$('#sd_pollinations_refine').prop('checked', extension_settings.sd.pollinations_refine);
|
|
||||||
$('#sd_horde').prop('checked', extension_settings.sd.horde);
|
$('#sd_horde').prop('checked', extension_settings.sd.horde);
|
||||||
$('#sd_horde_nsfw').prop('checked', extension_settings.sd.horde_nsfw);
|
$('#sd_horde_nsfw').prop('checked', extension_settings.sd.horde_nsfw);
|
||||||
$('#sd_horde_karras').prop('checked', extension_settings.sd.horde_karras);
|
$('#sd_horde_karras').prop('checked', extension_settings.sd.horde_karras);
|
||||||
@ -1009,11 +1007,6 @@ function onPollinationsEnhanceInput() {
|
|||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPollinationsRefineInput() {
|
|
||||||
extension_settings.sd.pollinations_refine = !!$('#sd_pollinations_refine').prop('checked');
|
|
||||||
saveSettingsDebounced();
|
|
||||||
}
|
|
||||||
|
|
||||||
function onHordeNsfwInput() {
|
function onHordeNsfwInput() {
|
||||||
extension_settings.sd.horde_nsfw = !!$(this).prop('checked');
|
extension_settings.sd.horde_nsfw = !!$(this).prop('checked');
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
@ -2740,7 +2733,6 @@ async function generatePollinationsImage(prompt, negativePrompt, signal) {
|
|||||||
width: extension_settings.sd.width,
|
width: extension_settings.sd.width,
|
||||||
height: extension_settings.sd.height,
|
height: extension_settings.sd.height,
|
||||||
enhance: extension_settings.sd.pollinations_enhance,
|
enhance: extension_settings.sd.pollinations_enhance,
|
||||||
refine: extension_settings.sd.pollinations_refine,
|
|
||||||
seed: extension_settings.sd.seed >= 0 ? extension_settings.sd.seed : undefined,
|
seed: extension_settings.sd.seed >= 0 ? extension_settings.sd.seed : undefined,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
@ -3887,7 +3879,6 @@ jQuery(async () => {
|
|||||||
$('#sd_novel_sm_dyn').on('input', onNovelSmDynInput);
|
$('#sd_novel_sm_dyn').on('input', onNovelSmDynInput);
|
||||||
$('#sd_novel_decrisper').on('input', onNovelDecrisperInput);
|
$('#sd_novel_decrisper').on('input', onNovelDecrisperInput);
|
||||||
$('#sd_pollinations_enhance').on('input', onPollinationsEnhanceInput);
|
$('#sd_pollinations_enhance').on('input', onPollinationsEnhanceInput);
|
||||||
$('#sd_pollinations_refine').on('input', onPollinationsRefineInput);
|
|
||||||
$('#sd_comfy_validate').on('click', validateComfyUrl);
|
$('#sd_comfy_validate').on('click', validateComfyUrl);
|
||||||
$('#sd_comfy_url').on('input', onComfyUrlInput);
|
$('#sd_comfy_url').on('input', onComfyUrlInput);
|
||||||
$('#sd_comfy_workflow').on('change', onComfyWorkflowChange);
|
$('#sd_comfy_workflow').on('change', onComfyWorkflowChange);
|
||||||
|
@ -184,18 +184,12 @@
|
|||||||
<a href="https://pollinations.ai">Pollinations.ai</a>
|
<a href="https://pollinations.ai">Pollinations.ai</a>
|
||||||
</p>
|
</p>
|
||||||
<div class="flex-container">
|
<div class="flex-container">
|
||||||
<label class="flex1 checkbox_label" for="sd_pollinations_enhance">
|
<label class="flex1 checkbox_label" for="sd_pollinations_enhance" title="Enables prompt enhancing (passes prompts through an LLM to add detail).">
|
||||||
<input id="sd_pollinations_enhance" type="checkbox" />
|
<input id="sd_pollinations_enhance" type="checkbox" />
|
||||||
<span data-i18n="Enhance">
|
<span data-i18n="Enhance">
|
||||||
Enhance
|
Enhance
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="flex1 checkbox_label" for="sd_pollinations_refine">
|
|
||||||
<input id="sd_pollinations_refine" type="checkbox" />
|
|
||||||
<span data-i18n="Refine">
|
|
||||||
Refine
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div data-sd-source="stability">
|
<div data-sd-source="stability">
|
||||||
|
@ -844,7 +844,6 @@ pollinations.post('/generate', jsonParser, async (request, response) => {
|
|||||||
negative_prompt: String(request.body.negative_prompt),
|
negative_prompt: String(request.body.negative_prompt),
|
||||||
seed: String(request.body.seed >= 0 ? request.body.seed : Math.floor(Math.random() * 10_000_000)),
|
seed: String(request.body.seed >= 0 ? request.body.seed : Math.floor(Math.random() * 10_000_000)),
|
||||||
enhance: String(request.body.enhance ?? false),
|
enhance: String(request.body.enhance ?? false),
|
||||||
refine: String(request.body.refine ?? false),
|
|
||||||
width: String(request.body.width ?? 1024),
|
width: String(request.body.width ?? 1024),
|
||||||
height: String(request.body.height ?? 1024),
|
height: String(request.body.height ?? 1024),
|
||||||
nologo: String(true),
|
nologo: String(true),
|
||||||
|
Reference in New Issue
Block a user