Spaces:
Sleeping
Sleeping
quick fixes
Browse filesFiles changed (4)
- src/lib/components/InferencePlayground/InferencePlayground.svelte+4-4
- src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte+1-1
- src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte+2-2
- src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte+1-1
169 unmodified lines17017117217317417517617717829 unmodified lines20820921021121221321451 unmodified lines266267268269270271272169 unmodified lines<divclass="w-dvh grid divide-gray-200 overflow-hidden bg-gray-100/50 max-md:divide-y h-dvh md:grid-cols-[clamp(220px,20%,350px),minmax(0,1fr),clamp(270px,25%,300px)] dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:[color-scheme:dark]"><div class=" flex flex-col overflow-y-auto py-3 pr-3"><divclass="relative flex flex-1 flex-col gap-6 overflow-y-hidden rounded-r-xl border-x border-y border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"class:pointer-events-none={!systemPromptSupported}class:opacity-70={!systemPromptSupported}>29 unmodified lineson:click={() => (viewSettings = !viewSettings)}class="md:hidden 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"><IconCode />{!viewSettings ? "Settings" : "Hide Settings"}</button>51 unmodified lines</div><div class="flex flex-col p-3 {viewSettings ? 'max-md:fixed' : 'max-md:hidden'} max-md:inset-x-0 max-md:bottom-20 "><divclass="flex flex-1 flex-col gap-6 overflow-y-hidden rounded-xl border bg-white border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"><ModelSelector {models} bind:conversation />169 unmodified lines17017117217317417517617717829 unmodified lines20820921021121221321451 unmodified lines266267268269270271272169 unmodified lines<divclass="w-dvh grid divide-gray-200 overflow-hidden bg-gray-100/50 max-md:divide-y h-dvh md:grid-cols-[clamp(220px,20%,350px),minmax(0,1fr),clamp(270px,25%,300px)] dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:[color-scheme:dark]"><div class="flex flex-col overflow-y-auto py-3 max-md:pl-3 pr-3"><divclass="relative flex flex-1 flex-col gap-6 overflow-y-hidden max-md:rounded-xl rounded-r-xl border-x border-y border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"class:pointer-events-none={!systemPromptSupported}class:opacity-70={!systemPromptSupported}>29 unmodified lineson:click={() => (viewSettings = !viewSettings)}class="md:hidden 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"><svg class="text-black dark:text-white" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg>{!viewSettings ? "Settings" : "Hide Settings"}</button>51 unmodified lines</div><div class="flex flex-col p-3 {viewSettings ? 'max-md:fixed' : 'max-md:hidden'} max-md:inset-x-0 max-md:bottom-20 "><divclass="flex flex-1 flex-col gap-6 overflow-y-hidden rounded-xl border bg-white dark:bg-gray-900 border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"><ModelSelector {models} bind:conversation />
284 unmodified lines285286287288289290291284 unmodified lines}timeout = setTimeout(() => {el.classList.remove("text-green-500");}, 1000);}}><IconCopyCode /> Copy code284 unmodified lines285286287288289290291284 unmodified lines}timeout = setTimeout(() => {el.classList.remove("text-green-500");}, 400);}}><IconCopyCode /> Copy code
45 unmodified lines464748495051525 unmodified lines58596061626345 unmodified lines</label><buttonclass="flex items-center justify-between gap-6 overflow-hidden whitespace-nowrap rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow dark:bg-gray-700"on:click={() => (showModelPickerModal = true)}><div class="flex flex-col items-start">5 unmodified lines</div><div>{modelName}</div></div><IconCaret classNames="text-xl bg-gray-100 dark:bg-gray-500 rounded" /></button></div>45 unmodified lines464748495051525 unmodified lines58596061626345 unmodified lines</label><buttonclass="flex items-center justify-between gap-6 overflow-hidden whitespace-nowrap rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow dark:bg-gray-800 dark:border-gray-700"on:click={() => (showModelPickerModal = true)}><div class="flex flex-col items-start">5 unmodified lines</div><div>{modelName}</div></div><IconCaret classNames="text-xl bg-gray-100 dark:bg-gray-600 rounded" /></button></div>
49 unmodified lines5051525354555649 unmodified linesbind:this={backdropEl}on:click|stopPropagation={handleBackdropClick}><div class="flex w-full max-w-[600px] items-start justify-center p-10"><div class="flex h-full w-full flex-col overflow-hidden rounded-lg border bg-white text-gray-900 shadow-md"><div class="flex items-center border-b px-3"><IconSearch classNames="mr-2 text-sm" />49 unmodified lines5051525354555649 unmodified linesbind:this={backdropEl}on:click|stopPropagation={handleBackdropClick}><div class="flex w-full max-w-[600px] items-start justify-center p-10 whitespace-nowrap overflow-hidden"><div class="flex h-full w-full flex-col overflow-hidden rounded-lg border bg-white text-gray-900 shadow-md"><div class="flex items-center border-b px-3"><IconSearch classNames="mr-2 text-sm" />
src/lib/components/InferencePlayground/InferencePlayground.svelte+4-4
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte+1-1
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte+2-2
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte+1-1