{ loading = true; await updateOpenAIKey(localStorage.token, OPENAI_API_KEY); await updateDefaultImageGenerationModel(localStorage.token, selectedModel); await updateDefaultImageGenerationModel(localStorage.token, selectedModel); await updateImageSize(localStorage.token, imageSize).catch((error) => { toast.error(error); return null; }); await updateImageSteps(localStorage.token, steps).catch((error) => { toast.error(error); return null; }); dispatch('save'); loading = false; }} >
{$i18n.t('Image Settings')}
Image Generation Engine
{$i18n.t('Image Generation (Experimental)')}

{#if imageGenerationEngine === ''}
{$i18n.t('AUTOMATIC1111 Base URL')}
Include `--api` flag when running stable-diffusion-webui (e.g. `sh webui.sh --api`)
{:else if imageGenerationEngine === 'openai'}
OpenAI API Key
{/if} {#if enableImageGeneration}
{$i18n.t('Set Default Model')}
{$i18n.t('Set Image Size')}
{$i18n.t('Set Steps')}
{/if}