Skip to content

Commit 333368e

Browse files
committed
link to play
1 parent cf642a5 commit 333368e

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

src/lib/components/inference-playground/playground.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import { cmdOrCtrl, optOrAlt } from "$lib/utils/platform.js";
1010
import { Popover } from "melt/components";
1111
import IconChatLeft from "~icons/carbon/align-box-bottom-left";
12+
import IconImage from "~icons/carbon/image";
1213
import IconChatRight from "~icons/carbon/align-box-bottom-right";
1314
import IconExternal from "~icons/carbon/arrow-up-right";
1415
import IconWaterfall from "~icons/carbon/chart-waterfall";
@@ -344,7 +345,14 @@
344345

345346
<GenerationConfig conversation={conversations.active[0]!} />
346347

347-
<div class="mt-auto flex items-center justify-end gap-4 whitespace-nowrap">
348+
<div class="mt-auto flex flex-wrap items-center justify-end gap-4 whitespace-nowrap">
349+
<a
350+
href="/visual"
351+
class="flex basis-full items-center justify-end gap-1 text-sm text-gray-500 underline decoration-gray-300 hover:text-gray-800 dark:text-gray-400 dark:decoration-gray-600 dark:hover:text-gray-200"
352+
>
353+
<IconImage class="text-xs" />
354+
Image/Video generation
355+
</a>
348356
<button
349357
onclick={() => projects.current && showShareModal(projects.current)}
350358
class="flex items-center gap-1 text-sm text-gray-500 underline decoration-gray-300 hover:text-gray-800 dark:text-gray-400 dark:decoration-gray-600 dark:hover:text-gray-200"

src/lib/data/context_length.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
"meta-llama/Llama-3-8b-chat-hf": 8192,
190190
"mistralai/Mistral-7B-Instruct-v0.1": 32768,
191191
"BAAI/bge-base-en-v1.5-vllm": 512,
192+
"meta-llama/Llama-2-70b-hf": 4096,
192193
"togethercomputer/MoA-1-Turbo": 32768,
193194
"meta-llama/Meta-Llama-3-8B-Instruct-Lite": 8192,
194195
"black-forest-labs/FLUX.1-kontext-max": 0,
@@ -215,7 +216,6 @@
215216
"Qwen/Qwen2.5-Coder-32B-Instruct": 16384,
216217
"meta-llama/Llama-3.2-3B-Instruct-Turbo": 131072,
217218
"arcee-ai/virtuoso-medium-v2": 131072,
218-
"lgai/exaone-3-5-32b-instruct": 32768,
219219
"arcee-ai/coder-large": 32768,
220220
"meta-llama/Llama-Guard-4-12B": 1048576,
221221
"deepseek-ai/DeepSeek-R1-Distill-Qwen-14B": 131072,
@@ -234,14 +234,14 @@
234234
"meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8": 1048576,
235235
"marin-community/marin-8b-instruct": 131072,
236236
"Qwen/Qwen2.5-7B-Instruct-Turbo": 32768,
237-
"lgai/exaone-deep-32b": 32768,
238237
"meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo": 131072,
239238
"meta-llama/Llama-3.3-70B-Instruct-Turbo": 131072,
240239
"meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo": 130815,
241240
"scb10x/scb10x-typhoon-2-1-gemma3-12b": 8192,
242241
"arcee-ai/caller": 32768,
243242
"black-forest-labs/FLUX.1-kontext-pro": 0,
244-
"meta-llama/Llama-2-70b-hf": 4096
243+
"lgai/exaone-deep-32b": 32768,
244+
"lgai/exaone-3-5-32b-instruct": 32768
245245
},
246246
"fireworks-ai": {
247247
"accounts/fireworks/models/qwq-32b": 131072,

src/routes/visual/(components)/settings.svelte

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
import IconSparkles from "~icons/lucide/sparkles";
6262
import IconVideo from "~icons/lucide/video";
6363
import { settings } from "../(state)/settings.svelte.js";
64+
import IconMessage from "~icons/lucide/message-square-text";
6465
import {
6566
blobs,
6667
VisualEntityType,
@@ -69,6 +70,7 @@
6970
type VisualItem,
7071
} from "../(state)/visual-items.svelte.js";
7172
import type { ApiModelsResponse } from "../../api/models/+server.js";
73+
import { dev } from "$app/environment";
7274
7375
type Props = {
7476
style?: string;
@@ -325,6 +327,13 @@
325327
</div>
326328
</div>
327329

330+
<a
331+
href="/"
332+
class="flex items-center justify-end gap-1 px-4 py-2 text-sm text-stone-500 underline decoration-stone-300 hover:text-stone-800 dark:text-stone-400 dark:decoration-stone-600 dark:hover:text-stone-200"
333+
>
334+
<IconMessage class="text-xs" />
335+
Text generation
336+
</a>
328337
<div class="sidebar-footer space-y-2 border-t border-stone-200 p-4 dark:border-stone-700">
329338
{#snippet generateBtn(args: { classes?: string; onGenerate: () => void; icon: typeof IconSparkles; label: string })}
330339
<LocalToasts>
@@ -355,12 +364,14 @@
355364
label: `Generate ${contentType}`,
356365
})}
357366

358-
{@render generateBtn({
359-
classes: "btn-depth-stone",
360-
onGenerate: () => generateContent(true),
361-
icon: IconHeart,
362-
label: "Mock generate",
363-
})}
367+
{#if dev}
368+
{@render generateBtn({
369+
classes: "btn-depth-stone",
370+
onGenerate: () => generateContent(true),
371+
icon: IconHeart,
372+
label: "Mock generate",
373+
})}
374+
{/if}
364375
</div>
365376
</div>
366377

0 commit comments

Comments
 (0)