{#if showTokenModal} (showTokenModal = false)} on:submit={(e) => { const formData = new FormData(e.target); hfToken = formData.get('hf-token'); submit(); showTokenModal = false; }} /> {/if} SYSTEM {#each conversations as conversation, index} {#if conversations.length > 1} {conversation.model} (conversations = conversations.filter((_, i) => i !== index))} > ✕ {/if} {#if !viewCode} {#each messages as message, i} deleteMessage(i)} autofocus={conversations.length === 1 && !loading && i === messages.length - 1} /> {/each} Add message {:else} {/if} {/each} Share 0 tokens · Latency {latency}ms (viewCode = !viewCode)} class="flex h-[39px] items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700" > {!viewCode ? 'View Code' : 'Hide Code'} { viewCode = false; submit(); }} type="button" disabled={loading} class="flex h-[39px] w-24 items-center justify-center gap-2 rounded-lg bg-black px-5 py-2.5 text-sm font-medium text-white hover:bg-gray-900 focus:outline-none focus:ring-4 focus:ring-gray-300 dark:border-gray-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-gray-700" > {#if loading} {:else} Run ⌘↵ {/if} {#if conversations.length === 1} Compare with... { conversations = [ ...conversations, { id: String(Math.random()), model: e.target.value, config: { temperature: 0.5, maxTokens: 2048, streaming: true, jsonMode: false }, messages: startMessages } ]; }} > {#each compatibleModels as model} {model} {/each} API Quota Free 76% {/if}