Fix nativeFetch and comfy

This commit is contained in:
Kwaroran
2024-12-25 21:06:52 +09:00
parent 1c51afc626
commit 28d8bfdd22
4 changed files with 67 additions and 39 deletions

View File

@@ -77,8 +77,13 @@
<OptionInput value="novelai" >Novel AI</OptionInput>
<OptionInput value="dalle" >Dall-E</OptionInput>
<OptionInput value="stability" >Stability API</OptionInput>
<OptionInput value="comfy" >ComfyUI</OptionInput>
<OptionInput value="fal" >Fal.ai</OptionInput>
<OptionInput value="comfyui" >ComfyUI</OptionInput>
<!-- Legacy -->
{#if DBState.db.sdProvider === 'comfy'}
<OptionInput value="comfy" >ComfyUI (Legacy)</OptionInput>
{/if}
</SelectInput>
{#if DBState.db.sdProvider === 'webui'}
@@ -277,8 +282,19 @@
{/if}
{/if}
{#if DBState.db.sdProvider === 'comfyui'}
<span class="text-textcolor mt-2">ComfyUI {language.providerURL}</span>
<TextInput size="sm" marginBottom placeholder="http://127.0.0.1:8188" bind:value={DBState.db.comfyUiUrl}/>
<span class="text-textcolor">Workflow <Help key="comfyWorkflow" /></span>
<TextInput size="sm" marginBottom bind:value={DBState.db.comfyConfig.workflow}/>
<span class="text-textcolor">Timeout (sec)</span>
<NumberInput size="sm" marginBottom bind:value={DBState.db.comfyConfig.timeout} min={1} max={120} />
{/if}
{#if DBState.db.sdProvider === 'comfy'}
<span class="text-draculared text-xs mb-2">The first image generated by the prompt will be selected. </span>
<span class="text-draculared text-xs mb-2">The first image generated by the prompt will be selected. </span>
{#if !isTauri}
<span class="text-draculared text-xs mb-2">"Please run comfyUI with --enable-cors-header."</span>
{/if}