Playground
{ if (mode === 'complete') { mode = 'chat'; } else { mode = 'complete'; } }} >
{mode}
Select a model
{#each $models as model} {#if model.name === 'hr'}
{:else if !(model?.external ?? false)}
{model.name + `${model.size ? ` (${(model.size / 1024 ** 3).toFixed(1)}GB)` : ''}`}
{/if} {/each}
{}} >
{#if !loading}
{ submitHandler(); }} > Submit
{:else}
{ stopResponse(); }} > Cancel
{/if}