{ loading = true; const res = await updateDefaultDiffusionModel(localStorage.token, selectedModel); dispatch('save'); loading = false; }} >
Image Settings
Image Generation (Experimental)
{ toggleImageGeneration(); }} type="button" > {#if enableImageGeneration === true}
On
{:else}
Off
{/if}
AUTOMATIC1111 Base URL
{ // updateOllamaAPIUrlHandler(); updateAUTOMATIC1111UrlHandler(); }} >
Include `--api` flag when running stable-diffusion-webui
(e.g. `sh webui.sh --api`)
{#if enableImageGeneration}
Set default model
{#if !selectedModel}
Select a model
{/if} {#each models as model}
{model.model_name}
{/each}
{/if}
Save {#if loading}
{/if}