Model
Select a model
{#each models.models as model}
{model.name}
{/each}
{#if Object.keys(chatHistory).length == 0}
Get up and running with large language models, locally.
Run Llama 2, Code Llama, and other models.
Customize and create your own.
{:else} {#each Object.keys(chatHistory) as messageIdx}
{#if chatHistory[messageIdx].role != 'user' && chatHistory[messageIdx].content == ''}
{:else}
{@html marked.parse(chatHistory[messageIdx].content)}
{/if}
{#if chatHistory[messageIdx].role != 'user' && chatHistory[messageIdx].done}
{ copyToClipboard(chatHistory[messageIdx].content); }} >
{/if}
{/each} {/if}
{ if (e.keyCode == 13 && !e.shiftKey) { e.preventDefault(); } if (prompt !== '' && e.keyCode == 13 && !e.shiftKey) { submitPrompt(); } }} rows="1" on:input={() => { textareaElement.style.height = ''; textareaElement.style.height = Math.min(textareaElement.scrollHeight, 200) + 'px'; }} />
{#if Object.keys(chatHistory).length == 0 || chatHistory[Object.keys(chatHistory).length - 1].done == true}
{:else}
...
{/if}
LLMs may produce inaccurate information about people, places, or facts.