{#if $generatedCode.length > 0 && !genLoading} {#if inlineScript}
{:else}
{/if} {/if} {#if ($generatedCode.length === 0 || genLoading) && SUPPORTED_LANGUAGES.has(lang)} {#if inlineScript} {:else} {/if}
{#if genLoading}
{#if $generatedCode.length > 0}
{:else} {/if}
{:else if $existsOpenaiResourcePath}
{ if (key === 'Enter' && funcDesc.length > 0) { onGenerate(() => close(input || null)) } }} placeholder={isEdit ? 'Describe the changes you want' : 'Describe what the script should do'} />
{#if ['postgresql', 'mysql'].includes(lang) && dbSchema}

Will take into account the DB schema In order to better generate the script, we pass the selected DB schema to GPT-4.

{#if dbSchema.lang !== 'graphql' && (dbSchema.schema?.public || dbSchema.schema?.PUBLIC)} {/if}
{/if} {:else}

Enable Windmill AI in the workspace settings.

{/if}
{/if}