{#if taskConfig}
{ updateInterfaceHandler(); dispatch('save'); }} >
{$i18n.t('Set Task Model')}
{$i18n.t('Local Models')}
{$i18n.t('Current Model')}
{#each $models.filter((m) => m.owned_by === 'ollama') as model}
{model.name}
{/each}
{$i18n.t('External Models')}
{$i18n.t('Current Model')}
{#each $models as model}
{model.name}
{/each}
{$i18n.t('Title Generation Prompt')}
{$i18n.t('Autocomplete Generation')}
{#if taskConfig.ENABLE_AUTOCOMPLETE_GENERATION}
{$i18n.t('Autocomplete Generation Input Max Length')}
{/if}
{$i18n.t('Tags Generation')}
{#if taskConfig.ENABLE_TAGS_GENERATION}
{$i18n.t('Tags Generation Prompt')}
{/if}
{$i18n.t('Retrieval Query Generation')}
{$i18n.t('Web Search Query Generation')}
{$i18n.t('Query Generation Prompt')}
{$i18n.t('Banners')}
{ if (banners.length === 0 || banners.at(-1).content !== '') { banners = [ ...banners, { id: uuidv4(), type: '', title: '', content: '', dismissible: true, timestamp: Math.floor(Date.now() / 1000) } ]; } }} >
{#each banners as banner, bannerIdx}
{#if banner.type == ''}
{$i18n.t('Type')}
{/if}
{$i18n.t('Info')}
{$i18n.t('Warning')}
{$i18n.t('Error')}
{$i18n.t('Success')}
{ banners.splice(bannerIdx, 1); banners = banners; }} >
{/each}
{#if $user.role === 'admin'}
{$i18n.t('Default Prompt Suggestions')}
{ if (promptSuggestions.length === 0 || promptSuggestions.at(-1).content !== '') { promptSuggestions = [...promptSuggestions, { content: '', title: ['', ''] }]; } }} >
{#each promptSuggestions as prompt, promptIdx}
{ promptSuggestions.splice(promptIdx, 1); promptSuggestions = promptSuggestions; }} >
{/each}
{#if promptSuggestions.length > 0}
{$i18n.t('Adjusting these settings will apply changes universally to all users.')}
{/if}
{/if}
{$i18n.t('Save')}
{/if}