Settings
{ showSettings = !showSettings; }} >
Model
{#each $models as model}
{model.name}
{/each}
{$i18n.t('System Instructions')}
{#if !showSystem}
{system}
{/if}
{#if showSystem}
{:else}
{/if}
{ showSettings = !showSettings; }} >
{selectedModelId}
{ e.target.style.height = ''; e.target.style.height = Math.min(e.target.scrollHeight, 150) + 'px'; }} on:focus={(e) => { e.target.style.height = ''; e.target.style.height = Math.min(e.target.scrollHeight, 150) + 'px'; }} rows="2" />
{ role = role === 'user' ? 'assistant' : 'user'; }} > {#if role === 'user'} {$i18n.t('User')} {:else} {$i18n.t('Assistant')} {/if}
{#if !loading}
{ addHandler(); role = role === 'user' ? 'assistant' : 'user'; }} > {$i18n.t('Add')}
{ submitHandler(); }} > {$i18n.t('Run')}
{:else}
{ stopResponse(); }} > {$i18n.t('Cancel')}
{/if}