7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
feat(playground): liquid composer, artifacts panel, dictation, maker icons, sidebar rework (#1245)
Tashfeen3637221b9537
diff --git a/client/package.json b/client/package.jsonindex 9f704159..da376819 100644--- a/client/package.json+++ b/client/package.json@@ -22,6 +22,8 @@"@tanstack/react-query": "^5.97.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1",+ "highlight.js": "^11.12.0",+ "liquid-gooey": "^0.2.1","lucide-react": "^1.8.0","react": "^19.2.4","react-dom": "^19.2.4",@@ -30,6 +32,7 @@"recharts": "^3.8.1","remark-gfm": "^4.0.1","shadcn": "^4.2.0",+ "simple-icons": "^16.31.0","tailwind-merge": "^3.5.0","tailwindcss": "^4.2.2","tw-animate-css": "^1.4.0"diff --git a/client/src/components/code-block.tsx b/client/src/components/code-block.tsxnew file mode 100644index 00000000..66cfec50--- /dev/null+++ b/client/src/components/code-block.tsx@@ -0,0 +1,24 @@+import { useMemo } from 'react'+import { cn } from '@/lib/utils'+import { highlightCode } from '@/lib/highlight'++// Highlighted source: the reply code blocks and the artifact panel's Code tab.+// highlightCode returns escaped HTML with hljs-* spans, so injecting it is+// safe; the token colours live in index.css under `.code-highlight`.++export interface CodeBlockProps {+ code: string+ language?: string | null+ className?: string+}++export function CodeBlock({ code, language, className }: CodeBlockProps) {+ const { html, language: applied } = useMemo(() => highlightCode(code, language), [code, language])+ return (+ <code+ className={cn('code-highlight block font-mono text-[12.5px] leading-relaxed whitespace-pre', className)}+ data-language={applied ?? undefined}+ dangerouslySetInnerHTML={{ __html: html }}+ />+ )+}diff --git a/client/src/components/markdown.tsx b/client/src/components/markdown.tsxindex 700a6fb3..67265aa2 100644--- a/client/src/components/markdown.tsx+++ b/client/src/components/markdown.tsx@@ -1,8 +1,51 @@-import { memo, isValidElement, type ReactNode } from 'react'+import { memo, isValidElement, useContext, type ReactNode } from 'react'import ReactMarkdown, { type Components } from 'react-markdown'import remarkGfm from 'remark-gfm'+import { AppWindow, Image as ImageIcon } from 'lucide-react'import { cn } from '@/lib/utils'import { CopyButton } from './copy-button'+import { CodeBlock } from './code-block'+import { artifactKindOf, type ArtifactKind } from '@/lib/artifacts'+import { ArtifactHostContext } from '@/lib/artifact-host'+import { useI18n } from '@/i18n'+++function fenceLanguage(children: ReactNode): string {+ const child = Array.isArray(children) ? children[0] : children+ if (!isValidElement(child)) return ''+ const cls = (child.props as { className?: string }).className ?? ''+ return /language-([^\s]+)/.exec(cls)?.[1]?.toLowerCase() ?? ''+}++function ArtifactCard({ kind, language, code }: { kind: ArtifactKind; language: string; code: string }) {+ const { t } = useI18n()+ const host = useContext(ArtifactHostContext)!+ const active = host.activeCode === code+ const title = /<title[^>]*>([^<]{1,120})<\/title>/i.exec(code)?.[1]?.trim()+ || t(kind === 'svg' ? 'playground.artifactSvg' : 'playground.artifactHtml')+ const Icon = kind === 'svg' ? ImageIcon : AppWindow+ return (+ <button+ type="button"+ onClick={() => host.open(kind, language, code)}+ className={cn(+ 'group/artifact my-2 flex w-full max-w-md items-center gap-3 rounded-xl border bg-card px-3 py-2.5 text-left transition-colors hover:bg-muted/60 first:mt-0 last:mb-0',+ active && 'border-foreground/40',+ )}+ aria-pressed={active}+ >+ <span className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">+ <Icon className="size-4" />+ </span>+ <span className="min-w-0 flex-1">+ <span className="block truncate text-sm font-medium">{title}</span>+ <span className="block text-xs text-muted-foreground">+ {t('playground.artifactOpen')} · {code.split('\n').length} {t('playground.artifactLines')}+ </span>+ </span>+ </button>+ )+}// react-markdown hands <pre> its rendered <code> element, not the raw source,// so pull the text back out of the React tree for the copy button.@@ -15,6 +58,13 @@ function nodeText(node: ReactNode): string {}function Pre({ children }: { children?: ReactNode }) {+ const host = useContext(ArtifactHostContext)+ if (host) {+ const language = fenceLanguage(children)+ const code = nodeText(children).replace(/\n$/, '')+ const kind = artifactKindOf(language, code)+ if (kind) return <ArtifactCard kind={kind} language={language} code={code} />+ }return (<pre className="group relative my-2 overflow-x-auto rounded-lg border bg-background/60 p-3 first:mt-0 last:mb-0"><CopyButton@@ -99,11 +149,8 @@ const components: Components = {code: ({ className, children, ...props }) => {const isBlock = /language-/.test(className ?? '')if (isBlock) {- return (- <code className={cn('font-mono text-[12.5px] leading-relaxed', className)} {...props}>- {children}- </code>- )+ const language = /language-([^\s]+)/.exec(className ?? '')?.[1] ?? null+ return <CodeBlock code={nodeText(children).replace(/\n$/, '')} language={language} className={className} />}return (<codediff --git a/client/src/components/model-maker-icon.tsx b/client/src/components/model-maker-icon.tsxnew file mode 100644index 00000000..00252fd4--- /dev/null+++ b/client/src/components/model-maker-icon.tsx@@ -0,0 +1,52 @@+import { Sparkles } from 'lucide-react'+import {+ siAnthropic, siBaidu, siDeepseek, siGooglegemini, siKimi, siMeta, siMinimax,+ siMistralai, siNvidia, siPerplexity, siQwen, type SimpleIcon,+} from 'simple-icons'+import { modelMakerOf, type ModelMakerId } from '@/lib/model-maker'++// The mark of the company that MADE a model, drawn at favicon size under a+// Playground reply. Path data comes from simple-icons (CC0); each mark stays+// the trademark of its owner and identifies the model's origin, nothing more.+// Makers we have no mark for — and ids we cannot place at all — get the same+// neutral default, so the line always carries one glyph in the same spot.+const MARKS: Partial<Record<ModelMakerId, SimpleIcon>> = {+ google: siGooglegemini,+ meta: siMeta,+ qwen: siQwen,+ deepseek: siDeepseek,+ mistral: siMistralai,+ anthropic: siAnthropic,+ nvidia: siNvidia,+ moonshot: siKimi,+ minimax: siMinimax,+ baidu: siBaidu,+ perplexity: siPerplexity,+}++export interface ModelMakerIconProps {+ modelId: string | null | undefined+ /** Who served it; goes in the tooltip so the host is one hover away. */+ platform?: string | null+ className?: string+}++export function ModelMakerIcon({ modelId, platform, className = 'size-3.5' }: ModelMakerIconProps) {+ const maker = modelMakerOf(modelId)+ const mark = maker ? MARKS[maker.id] : undefined+ const title = [maker?.name, platform ? `via ${platform}` : null].filter(Boolean).join(' · ') || platform || undefined+ if (!mark) {+ return (+ <span title={title} aria-label={title} className="inline-flex shrink-0 text-muted-foreground">+ <Sparkles className={className} aria-hidden="true" />+ </span>+ )+ }+ return (+ <span title={title} aria-label={title} className="inline-flex shrink-0" data-maker={maker!.id}>+ <svg viewBox="0 0 24 24" className={className} fill={`#${mark.hex}`} aria-hidden="true" focusable="false">+ <path d={mark.path} />+ </svg>+ </span>+ )+}diff --git a/client/src/components/playground/artifact-panel.tsx b/client/src/components/playground/artifact-panel.tsxnew file mode 100644index 00000000..26243065--- /dev/null+++ b/client/src/components/playground/artifact-panel.tsx@@ -0,0 +1,185 @@+import { useEffect, useRef, useState, type KeyboardEvent, type PointerEvent } from 'react'+import { Code2, Download, Eye, RefreshCw, X } from 'lucide-react'+import { Button } from '@/components/ui/button'+import { CopyButton } from '@/components/copy-button'+import { CodeBlock } from '@/components/code-block'+import { useI18n } from '@/i18n'+import { ARTIFACT_SANDBOX, artifactMimeType, artifactSrcDoc, type Artifact } from '@/lib/artifacts'+import { ARTIFACT_KEY_STEP, clampArtifactWidth, draggedArtifactWidth } from '@/lib/artifact-panel-size'++// The artifact side panel: what a reply built, running. Preview is a+// sandboxed iframe fed by srcdoc — scripts run, but the frame is an opaque+// origin with no reach into the dashboard, its token or its session. Code is+// the source, highlighted. Header: title, the two tabs on the centre line,+// and reload / copy / download / close.+//+// Size: the panel slides in from zero to its width and back out on close,+// and its left edge is a drag handle. The width the user settles on is the+// host's to remember (localStorage); this component only reports it. While+// dragging, the width transition is off (so the edge follows the pointer) and+// a glass sheet covers the iframe (which would otherwise swallow the pointer).++export type ArtifactTab = 'preview' | 'code'++export interface ArtifactPanelProps {+ artifact: Artifact+ /** False plays the exit animation; the host unmounts after it. */+ open: boolean+ width: number+ onWidthChange: (width: number) => void+ /** Called once the user lets go of the handle — the moment to persist. */+ onWidthCommit?: (width: number) => void+ onClose: () => void+}++export const ARTIFACT_PANEL_TRANSITION_MS = 280++export function ArtifactPanel({ artifact, open, width, onWidthChange, onWidthCommit, onClose }: ArtifactPanelProps) {+ const { t } = useI18n()+ const [tab, setTab] = useState<ArtifactTab>('preview')+ // Bumping the key remounts the iframe, which re-runs the document.+ const [run, setRun] = useState(0)+ const [dragging, setDragging] = useState(false)+ const drag = useRef<{ startX: number; startWidth: number } | null>(null)+ // First paint at width 0, then the transition carries it to `width` — that+ // is the slide-in. A rAF callback runs BEFORE that frame paints, so flipping+ // there would skip the 0 state entirely; the width is forced through layout+ // first (reading offsetWidth) and the flip waits one more frame.+ const [mounted, setMounted] = useState(false)+ const boxRef = useRef<HTMLDivElement>(null)+ useEffect(() => {+ let second = 0+ const first = requestAnimationFrame(() => {+ void boxRef.current?.offsetWidth+ second = requestAnimationFrame(() => setMounted(true))+ })+ return () => { cancelAnimationFrame(first); cancelAnimationFrame(second) }+ }, [])+ const title = artifact.title ?? t(artifact.kind === 'svg' ? 'playground.artifactSvg' : 'playground.artifactHtml')++ function download() {+ const blob = new Blob([artifact.code], { type: artifactMimeType(artifact.kind) })+ const url = URL.createObjectURL(blob)+ const a = document.createElement('a')+ a.href = url+ a.download = artifact.filename+ a.click()+ setTimeout(() => URL.revokeObjectURL(url), 1000)+ }++ function onHandleDown(e: PointerEvent<HTMLDivElement>) {+ e.preventDefault()+ e.currentTarget.setPointerCapture(e.pointerId)+ drag.current = { startX: e.clientX, startWidth: width }+ setDragging(true)+ }+ function onHandleMove(e: PointerEvent<HTMLDivElement>) {+ if (!drag.current) return+ onWidthChange(draggedArtifactWidth(drag.current.startWidth, drag.current.startX, e.clientX, window.innerWidth))+ }+ function onHandleUp(e: PointerEvent<HTMLDivElement>) {+ if (!drag.current) return+ drag.current = null+ setDragging(false)+ try { e.currentTarget.releasePointerCapture(e.pointerId) } catch { /* already released */ }+ onWidthCommit?.(width)+ }+ function onHandleKey(e: KeyboardEvent<HTMLDivElement>) {+ // The handle is on the left edge: ArrowLeft grows the panel.+ const delta = e.key === 'ArrowLeft' ? ARTIFACT_KEY_STEP : e.key === 'ArrowRight' ? -ARTIFACT_KEY_STEP : 0+ if (!delta) return+ e.preventDefault()+ const next = clampArtifactWidth(width + delta, window.innerWidth)+ onWidthChange(next)+ onWidthCommit?.(next)+ }++ const shown = open && mounted+ const tabClass = (active: boolean) =>+ `inline-flex size-7 items-center justify-center rounded-lg transition-colors ${+ active ? 'bg-foreground text-background' : 'text-muted-foreground hover:text-foreground hover:bg-muted'+ }`++ return (+ // The outer box is what animates: its width goes 0 → width → 0. The inner+ // panel is pinned to the right at the full width, so the content never+ // reflows mid-slide — it is revealed, not resized.+ <div+ ref={boxRef}+ className={`relative shrink-0 overflow-hidden ${dragging ? '' : 'transition-[width] ease-out motion-reduce:transition-none'}`}+ style={{ width: shown ? width : 0, transitionDuration: dragging ? undefined : `${ARTIFACT_PANEL_TRANSITION_MS}ms` }}+ data-testid="artifact-panel"+ data-open={shown}+ aria-hidden={!open}+ >+ <aside+ className="absolute inset-y-0 right-0 flex flex-col border-s bg-card"+ style={{ width }}+ aria-label={title}+ >+ {/* The drag handle: a slim hit area straddling the left border. */}+ <div+ role="separator"+ aria-orientation="vertical"+ aria-label={t('playground.artifactResize')}+ aria-valuenow={Math.round(width)}+ tabIndex={0}+ onPointerDown={onHandleDown}+ onPointerMove={onHandleMove}+ onPointerUp={onHandleUp}+ onPointerCancel={onHandleUp}+ onKeyDown={onHandleKey}+ className={`group/handle absolute inset-y-0 -left-1 z-10 w-2.5 cursor-col-resize outline-none focus-visible:bg-ring/30 ${dragging ? 'bg-ring/30' : 'hover:bg-ring/20'}`}+ >+ <div className="absolute inset-y-0 left-1 w-px bg-transparent transition-colors group-hover/handle:bg-ring/60" />+ </div>++ {/* Three cells, outer two equal, so the toggle sits on the panel's+ centre line whatever the title and action widths are. */}+ <div className="grid shrink-0 grid-cols-[1fr_auto_1fr] items-center gap-2 px-3 py-1.5">+ <span className="min-w-0 truncate text-sm font-medium" title={title}>{title}</span>+ <div className="inline-flex items-center gap-0.5 rounded-xl border p-0.5" role="tablist">+ <button type="button" role="tab" aria-selected={tab === 'preview'} aria-label={t('playground.artifactPreview')} title={t('playground.artifactPreview')} className={tabClass(tab === 'preview')} onClick={() => setTab('preview')}>+ <Eye className="size-4" />+ </button>+ <button type="button" role="tab" aria-selected={tab === 'code'} aria-label={t('playground.artifactCode')} title={t('playground.artifactCode')} className={tabClass(tab === 'code')} onClick={() => setTab('code')}>+ <Code2 className="size-4" />+ </button>+ </div>+ <div className="flex items-center justify-end">+ {tab === 'preview' && (+ <Button variant="ghost" size="icon-sm" onClick={() => setRun(n => n + 1)} aria-label={t('playground.artifactReload')} title={t('playground.artifactReload')}>+ <RefreshCw className="size-4" />+ </Button>+ )}+ <CopyButton text={artifact.code} label={t('common.copy')} className="size-8 border-0 bg-transparent" />+ <Button variant="ghost" size="icon-sm" onClick={download} aria-label={t('playground.artifactDownload')} title={t('playground.artifactDownload')}>+ <Download className="size-4" />+ </Button>+ <Button variant="ghost" size="icon-sm" onClick={onClose} aria-label={t('playground.artifactClose')} title={t('playground.artifactClose')}>+ <X className="size-4" />+ </Button>+ </div>+ </div>++ <div className="relative min-h-0 flex-1 overflow-hidden">+ {tab === 'preview' ? (+ <iframe+ key={`${artifact.id}:${run}`}+ title={title}+ sandbox={ARTIFACT_SANDBOX}+ srcDoc={artifactSrcDoc(artifact)}+ className="h-full w-full border-0 bg-white"+ />+ ) : (+ <pre className="h-full overflow-auto p-4">+ <CodeBlock code={artifact.code} language={artifact.language || artifact.kind} />+ </pre>+ )}+ {/* While dragging, keep the pointer out of the iframe. */}+ {dragging && <div className="absolute inset-0 z-10" aria-hidden="true" />}+ </div>+ </aside>+ </div>+ )+}diff --git a/client/src/components/playground/conversation-sidebar.tsx b/client/src/components/playground/conversation-sidebar.tsxindex 47a81611..29ff814a 100644--- a/client/src/components/playground/conversation-sidebar.tsx+++ b/client/src/components/playground/conversation-sidebar.tsx@@ -1,8 +1,13 @@import { useEffect, useRef, useState } from 'react'-import { MessageSquarePlus, PanelLeftClose, PanelLeftOpen, Pencil, Trash2 } from 'lucide-react'-import { Button } from '@/components/ui/button'-import { ConfirmButton } from '@/components/confirm-button'-import { relativeTime, type ConversationSummary } from '@/lib/playground-conversations'+import { ChevronsLeft, ChevronsRight, MoreHorizontal, Pencil, SquarePen, Trash2 } from 'lucide-react'+import { Button, buttonVariants } from '@/components/ui/button'+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu'+import type { ConversationSummary } from '@/lib/playground-conversations'import { useI18n } from '@/i18n'// The Playground's saved-conversation rail. Collapses to a narrow strip (the@@ -46,6 +51,8 @@ export function ConversationSidebar({}) {const { t } = useI18n()const [renamingId, setRenamingId] = useState<number | null>(null)+ // Which row's Delete is armed (first click); cleared when its menu closes.+ const [armedDeleteId, setArmedDeleteId] = useState<number | null>(null)const [draft, setDraft] = useState('')const renameRef = useRef<HTMLInputElement>(null)// Re-render once a minute so "2m ago" doesn't quietly go stale while a long@@ -93,43 +100,45 @@ export function ConversationSidebar({aria-label={t('playgroundSessions.showSidebar')}title={t('playgroundSessions.showSidebar')}>- <PanelLeftOpen className="size-4" />+ <ChevronsRight className="size-4" /></Button><Buttonvariant="ghost"size="icon-sm"onClick={onNew}- aria-label={t('playgroundSessions.newConversation')}- title={t('playgroundSessions.newConversation')}+ aria-label={t('playgroundSessions.newChat')}+ title={t('playgroundSessions.newChat')}>- <MessageSquarePlus className="size-4" />+ <SquarePen className="size-4" /></Button></div><divclassName={`${LAYER} w-60 ${open ? 'visible opacity-100' : 'invisible opacity-0'}`}>- <div className="flex shrink-0 items-center gap-1 border-b px-2.5 py-2">- <span className="flex-1 truncate text-xs font-medium text-muted-foreground">- {t('playgroundSessions.heading')}- </span>+ {/* Two lines: the collapse control alone on the first, then New chat as+ a proper button spanning the width. No heading — the list explains+ itself. */}+ <div className="flex shrink-0 flex-col gap-1.5 border-b border-border/40 px-2 pt-1 pb-2">+ <div className="flex items-center justify-end">+ <Button+ variant="ghost"+ size="icon-sm"+ onClick={onToggle}+ aria-label={t('playgroundSessions.hideSidebar')}+ title={t('playgroundSessions.hideSidebar')}+ >+ <ChevronsLeft className="size-4" />+ </Button>+ </div><Button- variant="ghost"- size="icon-sm"+ variant="outline"+ size="sm"+ className="w-full justify-center gap-2"onClick={onNew}- aria-label={t('playgroundSessions.newConversation')}- title={t('playgroundSessions.newConversation')}>- <MessageSquarePlus className="size-4" />- </Button>- <Button- variant="ghost"- size="icon-sm"- onClick={onToggle}- aria-label={t('playgroundSessions.hideSidebar')}- title={t('playgroundSessions.hideSidebar')}- >- <PanelLeftClose className="size-4" />+ <SquarePen className="size-4" />+ <span className="truncate">{t('playgroundSessions.newChat')}</span></Button></div>@@ -142,7 +151,7 @@ export function ConversationSidebar({<ul className="space-y-0.5">{conversations.map(conversation => {const isActive = conversation.id === activeId- const when = relativeTime(conversation.updatedAt)+ const armed = armedDeleteId === conversation.idreturn (<li key={conversation.id}>{renamingId === conversation.id ? (@@ -174,34 +183,39 @@ export function ConversationSidebar({<span className="block truncate text-sm">{conversation.title || t('playgroundSessions.untitled')}</span>- <span className="block truncate text-[11px] text-muted-foreground tabular-nums">- {t(`playgroundSessions.${when.key}`, { count: when.count })}- {' · '}- {t('playgroundSessions.messageCount', { count: conversation.messageCount })}- </span></button>- {/* Row actions stay out of the way until the row is- hovered or focused, so the list reads as titles. */}- <div className="flex shrink-0 items-center opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100">- <Button- variant="ghost"- size="icon-xs"- onClick={() => startRename(conversation)}- aria-label={t('playgroundSessions.rename')}- title={t('playgroundSessions.rename')}- >- <Pencil className="size-3" />- </Button>- <ConfirmButton- size="icon-xs"- armedSize="xs"- onConfirm={() => onDelete(conversation.id)}- aria-label={t('common.delete')}- title={t('common.delete')}+ {/* One "…" per row, shown on hover/focus (and while its+ menu is open) so the list reads as titles only. Delete+ arms on the first click and fires on the second, the+ dashboard's usual two-step, without leaving the menu. */}+ <DropdownMenu+ onOpenChange={open => { if (!open) setArmedDeleteId(null) }}+ >+ <DropdownMenuTrigger+ className={`${buttonVariants({ variant: 'ghost', size: 'icon-xs' })} shrink-0 opacity-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-100 data-popup-open:opacity-100 data-pressed:opacity-100`}+ aria-label={t('playgroundSessions.actions')}+ title={t('playgroundSessions.actions')}>- <Trash2 className="size-3" />- </ConfirmButton>- </div>+ <MoreHorizontal className="size-3.5" />+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-40">+ <DropdownMenuItem onClick={() => startRename(conversation)}>+ <Pencil />+ {t('playgroundSessions.rename')}+ </DropdownMenuItem>+ <DropdownMenuItem+ variant="destructive"+ closeOnClick={armed}+ onClick={() => {+ if (armed) { setArmedDeleteId(null); onDelete(conversation.id) }+ else setArmedDeleteId(conversation.id)+ }}+ >+ <Trash2 />+ {armed ? t('common.confirm') : t('common.delete')}+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu></div>)}</li>diff --git a/client/src/components/playground/dictation-button.tsx b/client/src/components/playground/dictation-button.tsxnew file mode 100644index 00000000..25d22008--- /dev/null+++ b/client/src/components/playground/dictation-button.tsx@@ -0,0 +1,137 @@+import { useEffect, useRef, useState } from 'react'+import { Loader2, Mic, Square } from 'lucide-react'+import { Button } from '@/components/ui/button'+import { useI18n } from '@/i18n'+import { toast } from '@/lib/toast'+import { pickRecordingMimeType, recordingFilename } from '@/lib/transcription'++// The mic in the composer. One click records, the next stops and sends the+// clip to /v1/audio/transcriptions — the gateway's own speech-to-text route,+// so key scope, cooldowns and the Auto/pinned choice all behave exactly as+// they do for an API client. The text comes back into the composer; nothing+// is sent to the chat model until the user presses send.+//+// With no usable transcription model the button still shows, so the feature+// is discoverable, and a click explains what to add instead of failing.++export type DictationPhase = 'idle' | 'recording' | 'transcribing'++export interface DictationButtonProps {+ /** Whether at least one enabled transcription model has a key. */+ available: boolean+ /** `auto` or a transcription model id, already resolved against availability. */+ model: string+ /** The unified API key, for the /v1 route. */+ apiKey: string | null | undefined+ disabled?: boolean+ /** Receives the transcript; the composer appends it to what is typed. */+ onText: (text: string) => void+ onPhaseChange?: (phase: DictationPhase) => void+ /** The open microphone stream while recording, null otherwise — for the wave. */+ onStreamChange?: (stream: MediaStream | null) => void+ className?: string+}++export function DictationButton({ available, model, apiKey, disabled, onText, onPhaseChange, onStreamChange, className }: DictationButtonProps) {+ const { t } = useI18n()+ const [phase, setPhaseState] = useState<DictationPhase>('idle')+ const recorderRef = useRef<MediaRecorder | null>(null)+ const chunksRef = useRef<BlobPart[]>([])+ const setPhase = (next: DictationPhase) => { setPhaseState(next); onPhaseChange?.(next) }++ // Never leave a microphone open behind an unmounted button.+ useEffect(() => () => {+ const rec = recorderRef.current+ if (rec && rec.state !== 'inactive') rec.stop()+ rec?.stream.getTracks().forEach(track => track.stop())+ }, [])++ async function start() {+ if (!available) {+ toast.info(t('playground.dictationUnavailable'))+ return+ }+ if (typeof MediaRecorder === 'undefined' || !navigator.mediaDevices?.getUserMedia) {+ toast.error(t('playground.dictationFailed', { reason: 'MediaRecorder is not supported in this browser' }))+ return+ }+ let stream: MediaStream+ try {+ stream = await navigator.mediaDevices.getUserMedia({ audio: true })+ } catch (err: unknown) {+ toast.error(t('playground.dictationFailed', { reason: err instanceof Error ? err.message : String(err) }))+ return+ }+ const mimeType = pickRecordingMimeType(type => MediaRecorder.isTypeSupported(type))+ const recorder = new MediaRecorder(stream, mimeType ? { mimeType } : undefined)+ chunksRef.current = []+ recorder.ondataavailable = e => { if (e.data.size > 0) chunksRef.current.push(e.data) }+ recorder.onstop = () => {+ onStreamChange?.(null)+ stream.getTracks().forEach(track => track.stop())+ void transcribe(new Blob(chunksRef.current, { type: recorder.mimeType || mimeType || 'audio/webm' }))+ }+ recorderRef.current = recorder+ recorder.start()+ onStreamChange?.(stream)+ setPhase('recording')+ }++ function stop() {+ const rec = recorderRef.current+ if (rec && rec.state !== 'inactive') rec.stop()+ recorderRef.current = null+ }++ async function transcribe(blob: Blob) {+ setPhase('transcribing')+ try {+ if (blob.size === 0) throw new Error('nothing was recorded')+ const form = new FormData()+ form.append('file', blob, recordingFilename(blob.type))+ form.append('model', model)+ form.append('response_format', 'json')+ const headers: Record<string, string> = {}+ if (apiKey) headers['Authorization'] = `Bearer ${apiKey}`+ const base = import.meta.env.BASE_URL.replace(/\/$/, '')+ const res = await fetch(`${base}/v1/audio/transcriptions`, { method: 'POST', headers, body: form })+ if (!res.ok) {+ const body = await res.json().catch(() => null) as { error?: { message?: string } } | null+ throw new Error(body?.error?.message || `HTTP ${res.status}`)+ }+ const data = await res.json() as { text?: string }+ onText(data.text ?? '')+ } catch (err: unknown) {+ toast.error(t('playground.dictationFailed', { reason: err instanceof Error ? err.message : String(err) }))+ } finally {+ setPhase('idle')+ }+ }++ const label = phase === 'recording'+ ? t('playground.dictationStop')+ : phase === 'transcribing'+ ? t('playground.dictationTranscribing')+ : t('playground.dictate')++ return (+ <Button+ type="button"+ variant="ghost"+ size="icon"+ className={`shrink-0 rounded-full ${phase === 'recording' ? 'text-foreground' : 'text-muted-foreground hover:text-foreground'} ${className ?? ''}`}+ onClick={() => (phase === 'recording' ? stop() : void start())}+ disabled={disabled || phase === 'transcribing'}+ aria-label={label}+ title={label}+ aria-pressed={phase === 'recording'}+ data-phase={phase}+ >+ {phase === 'transcribing'+ ? <Loader2 className="size-4 animate-spin" />+ : phase === 'recording'+ ? <Square className="size-3.5 fill-current" />+ : <Mic className="size-4" />}+ </Button>+ )+}diff --git a/client/src/components/playground/dictation-wave.tsx b/client/src/components/playground/dictation-wave.tsxnew file mode 100644index 00000000..5ab44232--- /dev/null+++ b/client/src/components/playground/dictation-wave.tsx@@ -0,0 +1,66 @@+import { useEffect, useRef } from 'react'+import { barHeights, WAVE_BAR_COUNT } from '@/lib/waveform'++// Live level bars drawn inside the composer while the mic is open: an+// AnalyserNode on the recording stream, sampled once per frame onto a canvas+// so 31 bars never touch React state. The canvas paints in currentColor, so+// it follows the text colour in both themes. Everything is torn down on+// unmount — the analyser, the context, the frame loop.++export function DictationWave({ stream, className }: { stream: MediaStream; className?: string }) {+ const canvasRef = useRef<HTMLCanvasElement>(null)++ useEffect(() => {+ const canvas = canvasRef.current+ if (!canvas || typeof AudioContext === 'undefined') return+ const ctx2d = canvas.getContext('2d')+ if (!ctx2d) return+ const audio = new AudioContext()+ const source = audio.createMediaStreamSource(stream)+ const analyser = audio.createAnalyser()+ analyser.fftSize = 256+ analyser.smoothingTimeConstant = 0.7+ source.connect(analyser)+ const data = new Uint8Array(analyser.frequencyBinCount)+ let frame = 0++ const draw = () => {+ analyser.getByteFrequencyData(data)+ const dpr = window.devicePixelRatio || 1+ const w = canvas.clientWidth+ const h = canvas.clientHeight+ if (canvas.width !== Math.round(w * dpr) || canvas.height !== Math.round(h * dpr)) {+ canvas.width = Math.round(w * dpr)+ canvas.height = Math.round(h * dpr)+ }+ ctx2d.setTransform(dpr, 0, 0, dpr, 0, 0)+ ctx2d.clearRect(0, 0, w, h)+ ctx2d.fillStyle = getComputedStyle(canvas).color+ // Thin bars at a fixed pitch, as many as fit (odd, so one is centred),+ // the row centred in the field; a wide field gets more bars, not fatter ones.+ const barW = 3+ const gap = 3+ const count = Math.max(WAVE_BAR_COUNT, Math.min(91, Math.floor(w / (barW + gap)) | 1))+ const heights = barHeights(data, count, 4, Math.max(8, h - 8))+ const offset = (w - (count * (barW + gap) - gap)) / 2+ heights.forEach((bh, i) => {+ const x = offset + i * (barW + gap)+ const y = (h - bh) / 2+ ctx2d.beginPath()+ ctx2d.roundRect(x, y, barW, bh, barW / 2)+ ctx2d.fill()+ })+ frame = requestAnimationFrame(draw)+ }+ frame = requestAnimationFrame(draw)++ return () => {+ cancelAnimationFrame(frame)+ source.disconnect()+ analyser.disconnect()+ void audio.close()+ }+ }, [stream])++ return <canvas ref={canvasRef} className={className} aria-hidden="true" />+}diff --git a/client/src/components/playground/liquid-composer.tsx b/client/src/components/playground/liquid-composer.tsxnew file mode 100644index 00000000..28cebb77--- /dev/null+++ b/client/src/components/playground/liquid-composer.tsx@@ -0,0 +1,162 @@+import { useEffect, useState, type ClipboardEvent, type KeyboardEvent, type RefObject } from 'react'+import { Liquid } from 'liquid-gooey'+import { ArrowUp, Paperclip } from 'lucide-react'+import { Button } from '@/components/ui/button'+import { DictationButton, type DictationPhase } from './dictation-button'+import { DictationWave } from './dictation-wave'+import {+ COMPOSER_BRIDGE,+ COMPOSER_CORNER_PX,+ COMPOSER_EDGE,+ composerHeight,+ sendButtonInteractive,+ sendButtonOffset,+} from '@/lib/composer-geometry'++// The Playground's bottom input as one body of liquid: the bar and the send+// button share a goo silhouette. THE MORPH PATTERN — the library owns x: it+// animates the button and its silhouette in perfect sync, so while the button+// is leaving the two are still one body of liquid, necking thinner until the+// goo gives up. The bar never moves; the button walks out from under its+// right edge once there is something to send, and slides back under it when+// the text is cleared.+//+// THE FILL MUST BE OPAQUE. The goo is a blur then a steep alpha contrast, so a+// translucent fill would not look faint, it would not be drawn at all. --muted+// is a solid oklch in both themes, and it is the whole separation: the bar+// reads against the page by tone, with no border or ring anywhere.+//+// Morph positions its item with a CSS transform in LAYOUT pixels, which is+// why this component carries no scale correction of its own.++export interface LiquidComposerProps {+ inputRef: RefObject<HTMLTextAreaElement | null>+ value: string+ onChange: (value: string) => void+ onKeyDown: (e: KeyboardEvent<HTMLTextAreaElement>) => void+ onPaste: (e: ClipboardEvent<HTMLTextAreaElement>) => void+ placeholder: string+ /** True when there is text or an attachment to send. */+ hasContent: boolean+ loading: boolean+ onSend: () => void+ onAttach: () => void+ labels: { attach: string; send: string; sending: string }+ /** Speech to text for the mic; the transcript is appended to `value`. */+ dictation: { available: boolean; model: string; apiKey: string | null | undefined; onText: (text: string) => void }+}++export function LiquidComposer({+ inputRef, value, onChange, onKeyDown, onPaste, placeholder, hasContent, loading, onSend, onAttach, labels, dictation,+}: LiquidComposerProps) {+ // Set from input events; an empty value never counts as grown, so a+ // programmatic clear (send, new chat) drops back to one line by itself.+ const [grownByInput, setGrown] = useState(false)+ const grown = grownByInput && value !== ''+ const [dictationPhase, setDictationPhase] = useState<DictationPhase>('idle')+ const [micStream, setMicStream] = useState<MediaStream | null>(null)+ const recording = dictationPhase === 'recording' && micStream !== null+ // The mic only ever fades — no scale, no travel. It shows while the bar is+ // empty (and for as long as a recording or transcription is in progress),+ // and stops being there once there is something to send.+ const showMic = !hasContent || dictationPhase !== 'idle'++ // The textarea's inline height is set from input events, which a+ // programmatic clear never fires — so the DOM height is reset here.+ useEffect(() => {+ if (value !== '') return+ const el = inputRef.current+ if (el) el.style.height = 'auto'+ }, [value, inputRef])+ const interactive = sendButtonInteractive(hasContent, loading)++ return (+ <Liquid+ blur={COMPOSER_BRIDGE}+ contrast={COMPOSER_EDGE}+ fill="var(--muted)"+ className={`flex gap-2 ${grown ? 'items-end' : 'items-center'}`}+ data-testid="liquid-composer"+ >+ {/* The bar: never moves. Its own background is transparent — the+ silhouette layer paints the fill. */}+ <Liquid.Item className="min-w-0 flex-1">+ <div+ className={`flex gap-1 ps-1 pe-2 py-1 ${grown ? 'items-end' : 'items-center'}`}+ style={{ borderRadius: COMPOSER_CORNER_PX }}+ >+ <Button+ variant="ghost"+ size="icon"+ className="shrink-0 rounded-full text-muted-foreground hover:text-foreground"+ onClick={onAttach}+ disabled={loading}+ aria-label={labels.attach}+ title={labels.attach}+ >+ <Paperclip className="size-4" />+ </Button>+ {/* While the mic is open the field shows the voice, not the text:+ the textarea keeps its value and size, the wave paints over it. */}+ {/* A flex wrapper: an inline textarea inside a block div gets a+ baseline gap under it, which pushed the field 3px off the buttons'+ centre line. */}+ <div className="relative flex min-w-0 flex-1 items-center">+ <textarea+ ref={inputRef}+ value={value}+ onChange={e => onChange(e.target.value)}+ onKeyDown={onKeyDown}+ onPaste={onPaste}+ placeholder={placeholder}+ rows={1}+ className={`block min-h-[32px] w-full resize-none bg-transparent px-1 py-1.5 text-sm outline-none placeholder:text-muted-foreground transition-opacity ${recording ? 'opacity-0' : ''}`}+ style={{ height: 'auto', overflow: 'hidden' }}+ onInput={e => {+ const el = e.target as HTMLTextAreaElement+ el.style.height = 'auto'+ const next = composerHeight(el.scrollHeight)+ el.style.height = `${next.height}px`+ setGrown(next.grown)+ }}+ />+ {recording && (+ <DictationWave stream={micStream} className="pointer-events-none absolute inset-y-0 left-1 right-1 h-full w-[calc(100%-0.5rem)] text-foreground" />+ )}+ </div>+ <div data-show={showMic} className="cmd-mic shrink-0 transition-opacity duration-150 ease-out data-[show=false]:pointer-events-none data-[show=false]:opacity-0">+ <DictationButton+ available={dictation.available}+ model={dictation.model}+ apiKey={dictation.apiKey}+ disabled={loading}+ onText={dictation.onText}+ onPhaseChange={setDictationPhase}+ onStreamChange={setMicStream}+ />+ </div>+ </div>+ </Liquid.Item>++ {/* The button: the one thing that moves. Its content only ever fades —+ no scale, no travel of its own — the silhouette does the travelling.+ While parked under the bar its wrapper sits exactly over the mic, so+ the wrapper (not just the faded button) must let clicks through. */}+ <Liquid.Item x={sendButtonOffset(hasContent)} className={hasContent ? undefined : 'pointer-events-none'}>+ <button+ type="button"+ onClick={onSend}+ disabled={!interactive}+ tabIndex={hasContent ? 0 : -1}+ aria-hidden={!hasContent}+ aria-label={loading ? labels.sending : labels.send}+ title={loading ? labels.sending : labels.send}+ data-show={hasContent}+ className="flex size-10 items-center justify-center rounded-full text-foreground outline-none transition-opacity duration-150 ease-out hover:bg-foreground/5 focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-default data-[show=false]:pointer-events-none data-[show=false]:opacity-0"+ >+ <ArrowUp className={`size-4 ${loading ? 'opacity-40' : ''}`} />+ </button>+ </Liquid.Item>+ </Liquid>+ )+}diff --git a/client/src/components/playground/settings-rail.tsx b/client/src/components/playground/settings-rail.tsxindex e37fc17b..d90fbd21 100644--- a/client/src/components/playground/settings-rail.tsx+++ b/client/src/components/playground/settings-rail.tsx@@ -1,4 +1,4 @@-import { PanelRightClose, PanelRightOpen } from 'lucide-react'+import { ChevronsLeft, ChevronsRight } from 'lucide-react'import { Button } from '@/components/ui/button'import { Switch } from '@/components/ui/switch'import { ModelCombobox, type ModelComboOption } from '@/components/model-combobox'@@ -48,6 +48,11 @@ export interface SettingsRailProps {onSelectModel: (value: string) => void/** Shown under the picker when no platform has an enabled key yet. */noModels: boolean+ /** Speech-to-text picker for the composer's mic (#playground dictation). */+ dictationValue: string+ dictationOptions: ModelComboOption[]+ onSelectDictation: (value: string) => void+ noTranscription: booleansystemPrompt: stringonSystemPromptChange: (value: string) => voidsampling: SamplingSettings@@ -132,6 +137,10 @@ export function SettingsRail({modelValue,modelOptions,onSelectModel,+ dictationValue,+ dictationOptions,+ onSelectDictation,+ noTranscription,noModels,systemPrompt,onSystemPromptChange,@@ -161,7 +170,7 @@ export function SettingsRail({aria-label={t('playground.showSettings')}title={t('playground.showSettings')}>- <PanelRightOpen className="size-4" />+ <ChevronsLeft className="size-4" /></Button>{tweaked && <span className="size-1.5 rounded-full bg-primary/70" />}</div>@@ -169,7 +178,7 @@ export function SettingsRail({<divclassName={`${LAYER} w-72 ${open ? 'visible opacity-100' : 'invisible opacity-0'}`}>- <div className="flex shrink-0 items-center gap-1 border-b px-2.5 py-2">+ <div className="flex shrink-0 items-center gap-1 px-2.5 py-1"><span className="flex-1 truncate text-xs font-medium text-muted-foreground">{t('settings.title')}</span>@@ -180,7 +189,7 @@ export function SettingsRail({aria-label={t('playground.hideSettings')}title={t('playground.hideSettings')}>- <PanelRightClose className="size-4" />+ <ChevronsRight className="size-4" /></Button></div>@@ -206,6 +215,27 @@ export function SettingsRail({/></div>+ {/* Which speech-to-text model the mic uses. Auto lets the router pick+ among the transcription models that have a key; with none, the+ picker says what to add instead of offering an empty list. */}+ <div className="space-y-1.5">+ <span className="block text-xs font-medium">{t('playground.dictationModel')}</span>+ {noTranscription ? (+ <p className="text-xs text-muted-foreground">{t('playground.dictationUnavailable')}</p>+ ) : (+ <ModelCombobox+ value={dictationValue}+ options={dictationOptions}+ onSelect={onSelectDictation}+ ariaLabel={t('playground.dictationModel')}+ placeholder={t('playground.searchModels')}+ emptyText={t('playground.noModelsFound')}+ align="end"+ triggerClassName="flex h-8 w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-input bg-transparent px-3 text-sm outline-none transition-colors hover:bg-muted/50 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 dark:bg-input/30"+ />+ )}+ </div>+{/* The system prompt textarea deliberately lives BELOW the composer inDOM order (the rail is the last column): `textarea` first-matchselectors still land on the message box. */}diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex 94b4ea33..a150aade 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} አይደገፍም። ምስሎችን (PNG, JPEG, WebP, GIF) ወይም የጽሑፍ ፋይሎችን (TXT, MD, CSV, JSON, LOG) ያያይዙ።","attachFailed": "{name} ማንበብ አልተቻለም።","noVisionBadge": "ምስል የለም",- "visionWarning": "{model} ምስሎችን አይቀበልም። ምስል የሚቀበል ሞዴል ወይም ራስ-ሰር ይምረጡ።"+ "visionWarning": "{model} ምስሎችን አይቀበልም። ምስል የሚቀበል ሞዴል ወይም ራስ-ሰር ይምረጡ።",+ "dictate": "ተናግረው ይጻፉ",+ "dictationStop": "መቅረጽ አቁም",+ "dictationTranscribing": "እየተጻፈ ነው…",+ "dictationUnavailable": "ተናግረው ለመጻፍ የድምፅ ሞዴል አቅራቢዎችን ያክሉ።",+ "dictationModel": "የቃል ጽሕፈት ሞዴል",+ "dictationFailed": "መጻፍ አልተሳካም: {reason}",+ "artifactOpen": "ቅድመ እይታ ክፈት",+ "artifactPreview": "ቅድመ እይታ",+ "artifactCode": "ኮድ",+ "artifactClose": "ቅድመ እይታ ዝጋ",+ "artifactDownload": "አውርድ",+ "artifactReload": "ቅድመ እይታ እንደገና ጫን",+ "artifactHtml": "HTML ገጽ",+ "artifactSvg": "SVG ምስል",+ "artifactLines": "መስመሮች",+ "artifactResize": "የቅድመ እይታ መጠን ቀይር"},"playgroundSessions": {"heading": "ውይይቶች",@@ -885,7 +901,9 @@"daysAgo": "ከ{count} ቀን በፊት","loadFailed": "ያንን ውይይት መክፈት አልተቻለም።","renameFailed": "ያንን ውይይት እንደገና መሰየም አልተቻለም።",- "deleteFailed": "ያንን ውይይት መሰረዝ አልተቻለም።"+ "deleteFailed": "ያንን ውይይት መሰረዝ አልተቻለም።",+ "actions": "የውይይት ተግባራት",+ "newChat": "አዲስ ውይይት"},"embeddings": {"title": "ሞዴሎች",diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex ae0d2a43..fbd1a6ca 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} غير مدعوم. أرفق صورًا (PNG، JPEG، WebP، GIF) أو ملفات نصية (TXT، MD، CSV، JSON، LOG).","attachFailed": "تعذّرت قراءة {name}.","noVisionBadge": "بدون صور",- "visionWarning": "{model} لا يقبل الصور. اختر نموذج رؤية أو «تلقائي»."+ "visionWarning": "{model} لا يقبل الصور. اختر نموذج رؤية أو «تلقائي».",+ "dictate": "إملاء",+ "dictationStop": "إيقاف التسجيل",+ "dictationTranscribing": "جارٍ التحويل إلى نص…",+ "dictationUnavailable": "أضف مزودي نماذج الصوت لتتمكن من استخدام الإملاء.",+ "dictationModel": "نموذج الإملاء",+ "dictationFailed": "فشل التحويل إلى نص: {reason}",+ "artifactOpen": "فتح المعاينة",+ "artifactPreview": "معاينة",+ "artifactCode": "الكود",+ "artifactClose": "إغلاق المعاينة",+ "artifactDownload": "تنزيل",+ "artifactReload": "إعادة تحميل المعاينة",+ "artifactHtml": "صفحة HTML",+ "artifactSvg": "صورة SVG",+ "artifactLines": "أسطر",+ "artifactResize": "تغيير حجم المعاينة"},"playgroundSessions": {"heading": "المحادثات",@@ -885,7 +901,9 @@"daysAgo": "قبل {count} ي","loadFailed": "تعذّر فتح تلك المحادثة.","renameFailed": "تعذّرت إعادة تسمية تلك المحادثة.",- "deleteFailed": "تعذّر حذف تلك المحادثة."+ "deleteFailed": "تعذّر حذف تلك المحادثة.",+ "actions": "إجراءات المحادثة",+ "newChat": "محادثة جديدة"},"embeddings": {"title": "نماذج",diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex e01d9a44..b1ab82d7 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} dəstəklənmir. Şəkil (PNG, JPEG, WebP, GIF) və ya mətn faylları (TXT, MD, CSV, JSON, LOG) əlavə edin.","attachFailed": "{name} oxunmadı.","noVisionBadge": "Şəkilsiz",- "visionWarning": "{model} şəkilləri qəbul etmir. Şəkil dəstəkləyən model və ya Avtomatik seçin."+ "visionWarning": "{model} şəkilləri qəbul etmir. Şəkil dəstəkləyən model və ya Avtomatik seçin.",+ "dictate": "Diktə et",+ "dictationStop": "Yazmağı dayandır",+ "dictationTranscribing": "Transkripsiya edilir…",+ "dictationUnavailable": "Diktədən istifadə etmək üçün audio model təminatçıları əlavə edin.",+ "dictationModel": "Diktə modeli",+ "dictationFailed": "Transkripsiya alınmadı: {reason}",+ "artifactOpen": "Önizləməni aç",+ "artifactPreview": "Önizləmə",+ "artifactCode": "Kod",+ "artifactClose": "Önizləməni bağla",+ "artifactDownload": "Yüklə",+ "artifactReload": "Önizləməni yenilə",+ "artifactHtml": "HTML səhifəsi",+ "artifactSvg": "SVG şəkli",+ "artifactLines": "sətir",+ "artifactResize": "Önizləmənin ölçüsünü dəyiş"},"playgroundSessions": {"heading": "Söhbətlər",@@ -885,7 +901,9 @@"daysAgo": "{count} gün əvvəl","loadFailed": "Həmin söhbəti açmaq alınmadı.","renameFailed": "Həmin söhbətin adını dəyişmək alınmadı.",- "deleteFailed": "Həmin söhbəti silmək alınmadı."+ "deleteFailed": "Həmin söhbəti silmək alınmadı.",+ "actions": "Söhbət əməliyyatları",+ "newChat": "Yeni söhbət"},"embeddings": {"title": "Modellər",diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 5b4c32d6..d778b117 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} не се поддържа. Прикачете изображения (PNG, JPEG, WebP, GIF) или текстови файлове (TXT, MD, CSV, JSON, LOG).","attachFailed": "{name} не може да бъде прочетен.","noVisionBadge": "Без изображения",- "visionWarning": "{model} не приема изображения. Изберете модел с визия или Авто."+ "visionWarning": "{model} не приема изображения. Изберете модел с визия или Авто.",+ "dictate": "Диктуване",+ "dictationStop": "Спри записа",+ "dictationTranscribing": "Транскрибира се…",+ "dictationUnavailable": "Добавете доставчици на аудио модели, за да използвате диктуване.",+ "dictationModel": "Модел за диктуване",+ "dictationFailed": "Транскрипцията се провали: {reason}",+ "artifactOpen": "Отвори предварителен преглед",+ "artifactPreview": "Преглед",+ "artifactCode": "Код",+ "artifactClose": "Затвори прегледа",+ "artifactDownload": "Изтегли",+ "artifactReload": "Презареди прегледа",+ "artifactHtml": "HTML страница",+ "artifactSvg": "SVG изображение",+ "artifactLines": "реда",+ "artifactResize": "Преоразмеряване на прегледа"},"playgroundSessions": {"heading": "Разговори",@@ -885,7 +901,9 @@"daysAgo": "преди {count} д","loadFailed": "Разговорът не можа да бъде отворен.","renameFailed": "Разговорът не можа да бъде преименуван.",- "deleteFailed": "Разговорът не можа да бъде изтрит."+ "deleteFailed": "Разговорът не можа да бъде изтрит.",+ "actions": "Действия за разговора",+ "newChat": "Нов чат"},"embeddings": {"title": "Модели",diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex 815a72ee..19c708e8 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} সমর্থিত নয়। ছবি (PNG, JPEG, WebP, GIF) বা পাঠ্য ফাইল (TXT, MD, CSV, JSON, LOG) সংযুক্ত করুন।","attachFailed": "{name} পড়া যায়নি।","noVisionBadge": "ছবি নেই",- "visionWarning": "{model} ছবি গ্রহণ করে না। একটি দৃষ্টি মডেল বা স্বয়ংক্রিয় নির্বাচন করুন।"+ "visionWarning": "{model} ছবি গ্রহণ করে না। একটি দৃষ্টি মডেল বা স্বয়ংক্রিয় নির্বাচন করুন।",+ "dictate": "বলে লিখুন",+ "dictationStop": "রেকর্ডিং বন্ধ করুন",+ "dictationTranscribing": "লেখা হচ্ছে…",+ "dictationUnavailable": "বলে লেখা ব্যবহার করতে অডিও মডেলের প্রদানকারী যোগ করুন।",+ "dictationModel": "শ্রুতলিখন মডেল",+ "dictationFailed": "লেখা ব্যর্থ হয়েছে: {reason}",+ "artifactOpen": "প্রিভিউ খুলুন",+ "artifactPreview": "প্রিভিউ",+ "artifactCode": "কোড",+ "artifactClose": "প্রিভিউ বন্ধ করুন",+ "artifactDownload": "ডাউনলোড",+ "artifactReload": "প্রিভিউ পুনরায় লোড করুন",+ "artifactHtml": "HTML পেজ",+ "artifactSvg": "SVG ছবি",+ "artifactLines": "লাইন",+ "artifactResize": "প্রিভিউর আকার বদলান"},"playgroundSessions": {"heading": "কথোপকথন",@@ -885,7 +901,9 @@"daysAgo": "{count} দিন আগে","loadFailed": "সেই কথোপকথনটি খোলা গেল না।","renameFailed": "সেই কথোপকথনের নাম পরিবর্তন করা গেল না।",- "deleteFailed": "সেই কথোপকথনটি মুছে দেওয়া গেল না।"+ "deleteFailed": "সেই কথোপকথনটি মুছে দেওয়া গেল না।",+ "actions": "কথোপকথনের ক্রিয়া",+ "newChat": "নতুন চ্যাট"},"embeddings": {"title": "মডেল",diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex 3cda7654..f8d44628 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} není podporován. Připojte obrázky (PNG, JPEG, WebP, GIF) nebo textové soubory (TXT, MD, CSV, JSON, LOG).","attachFailed": "Soubor {name} se nepodařilo přečíst.","noVisionBadge": "Bez obrázků",- "visionWarning": "{model} nepřijímá obrázky. Zvolte model podporující obrázky nebo Auto."+ "visionWarning": "{model} nepřijímá obrázky. Zvolte model podporující obrázky nebo Auto.",+ "dictate": "Diktovat",+ "dictationStop": "Zastavit nahrávání",+ "dictationTranscribing": "Přepisuje se…",+ "dictationUnavailable": "Přidejte poskytovatele audio modelů, abyste mohli diktovat.",+ "dictationModel": "Model diktování",+ "dictationFailed": "Přepis se nezdařil: {reason}",+ "artifactOpen": "Otevřít náhled",+ "artifactPreview": "Náhled",+ "artifactCode": "Kód",+ "artifactClose": "Zavřít náhled",+ "artifactDownload": "Stáhnout",+ "artifactReload": "Obnovit náhled",+ "artifactHtml": "HTML stránka",+ "artifactSvg": "SVG obrázek",+ "artifactLines": "řádků",+ "artifactResize": "Změnit velikost náhledu"},"playgroundSessions": {"heading": "Konverzace",@@ -885,7 +901,9 @@"daysAgo": "před {count} dny","loadFailed": "Konverzaci se nepodařilo otevřít.","renameFailed": "Konverzaci se nepodařilo přejmenovat.",- "deleteFailed": "Konverzaci se nepodařilo smazat."+ "deleteFailed": "Konverzaci se nepodařilo smazat.",+ "actions": "Akce konverzace",+ "newChat": "Nový chat"},"embeddings": {"title": "Modely",diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 2077b1ed..9f933e15 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} understøttes ikke. Vedhæft billeder (PNG, JPEG, WebP, GIF) eller tekstfiler (TXT, MD, CSV, JSON, LOG).","attachFailed": "Kunne ikke læse {name}.","noVisionBadge": "Ingen billeder",- "visionWarning": "{model} accepterer ikke billeder. Vælg en model med billedinput eller Auto."+ "visionWarning": "{model} accepterer ikke billeder. Vælg en model med billedinput eller Auto.",+ "dictate": "Dikter",+ "dictationStop": "Stop optagelse",+ "dictationTranscribing": "Transskriberer…",+ "dictationUnavailable": "Tilføj udbydere af lydmodeller for at kunne diktere.",+ "dictationModel": "Dikteringsmodel",+ "dictationFailed": "Transskription mislykkedes: {reason}",+ "artifactOpen": "Åbn forhåndsvisning",+ "artifactPreview": "Forhåndsvisning",+ "artifactCode": "Kode",+ "artifactClose": "Luk forhåndsvisning",+ "artifactDownload": "Download",+ "artifactReload": "Genindlæs forhåndsvisning",+ "artifactHtml": "HTML-side",+ "artifactSvg": "SVG-billede",+ "artifactLines": "linjer",+ "artifactResize": "Tilpas forhåndsvisningens størrelse"},"playgroundSessions": {"heading": "Samtaler",@@ -885,7 +901,9 @@"daysAgo": "for {count} d. siden","loadFailed": "Kunne ikke åbne den samtale.","renameFailed": "Kunne ikke omdøbe den samtale.",- "deleteFailed": "Kunne ikke slette den samtale."+ "deleteFailed": "Kunne ikke slette den samtale.",+ "actions": "Samtalehandlinger",+ "newChat": "Ny chat"},"embeddings": {"title": "Modeller",diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex 47985918..4a4a2b14 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} wird nicht unterstützt. Hängen Sie Bilder (PNG, JPEG, WebP, GIF) oder Textdateien (TXT, MD, CSV, JSON, LOG) an.","attachFailed": "{name} konnte nicht gelesen werden.","noVisionBadge": "Keine Bilder",- "visionWarning": "{model} akzeptiert keine Bilder. Wählen Sie ein Vision-Modell oder Auto."+ "visionWarning": "{model} akzeptiert keine Bilder. Wählen Sie ein Vision-Modell oder Auto.",+ "dictate": "Diktieren",+ "dictationStop": "Aufnahme beenden",+ "dictationTranscribing": "Wird transkribiert…",+ "dictationUnavailable": "Fügen Sie Anbieter für Audiomodelle hinzu, um Diktat nutzen zu können.",+ "dictationModel": "Diktiermodell",+ "dictationFailed": "Transkription fehlgeschlagen: {reason}",+ "artifactOpen": "Vorschau öffnen",+ "artifactPreview": "Vorschau",+ "artifactCode": "Code",+ "artifactClose": "Vorschau schließen",+ "artifactDownload": "Herunterladen",+ "artifactReload": "Vorschau neu laden",+ "artifactHtml": "HTML-Seite",+ "artifactSvg": "SVG-Bild",+ "artifactLines": "Zeilen",+ "artifactResize": "Vorschau in der Größe ändern"},"playgroundSessions": {"heading": "Unterhaltungen",@@ -885,7 +901,9 @@"daysAgo": "vor {count} T.","loadFailed": "Diese Unterhaltung konnte nicht geöffnet werden.","renameFailed": "Diese Unterhaltung konnte nicht umbenannt werden.",- "deleteFailed": "Diese Unterhaltung konnte nicht gelöscht werden."+ "deleteFailed": "Diese Unterhaltung konnte nicht gelöscht werden.",+ "actions": "Aktionen für Unterhaltung",+ "newChat": "Neuer Chat"},"embeddings": {"title": "Modelle",diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex d96b0e33..250709c9 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -867,7 +867,23 @@"attachUnsupported": "Το {name} δεν υποστηρίζεται. Επισυνάψτε εικόνες (PNG, JPEG, WebP, GIF) ή αρχεία κειμένου (TXT, MD, CSV, JSON, LOG).","attachFailed": "Δεν ήταν δυνατή η ανάγνωση του {name}.","noVisionBadge": "Χωρίς εικόνες",- "visionWarning": "Το {model} δεν δέχεται εικόνες. Επιλέξτε μοντέλο με υποστήριξη εικόνας ή Αυτόματο."+ "visionWarning": "Το {model} δεν δέχεται εικόνες. Επιλέξτε μοντέλο με υποστήριξη εικόνας ή Αυτόματο.",+ "dictate": "Υπαγόρευση",+ "dictationStop": "Διακοπή ηχογράφησης",+ "dictationTranscribing": "Μεταγραφή…",+ "dictationUnavailable": "Προσθέστε παρόχους μοντέλων ήχου για να χρησιμοποιήσετε την υπαγόρευση.",+ "dictationModel": "Μοντέλο υπαγόρευσης",+ "dictationFailed": "Η μεταγραφή απέτυχε: {reason}",+ "artifactOpen": "Άνοιγμα προεπισκόπησης",+ "artifactPreview": "Προεπισκόπηση",+ "artifactCode": "Κώδικας",+ "artifactClose": "Κλείσιμο προεπισκόπησης",+ "artifactDownload": "Λήψη",+ "artifactReload": "Επαναφόρτωση προεπισκόπησης",+ "artifactHtml": "Σελίδα HTML",+ "artifactSvg": "Εικόνα SVG",+ "artifactLines": "γραμμές",+ "artifactResize": "Αλλαγή μεγέθους προεπισκόπησης"},"playgroundSessions": {"heading": "Συνομιλίες",@@ -885,7 +901,9 @@"daysAgo": "πριν {count} ημ.","loadFailed": "Δεν ήταν δυνατό το άνοιγμα αυτής της συνομιλίας.","renameFailed": "Δεν ήταν δυνατή η μετονομασία αυτής της συνομιλίας.",- "deleteFailed": "Δεν ήταν δυνατή η διαγραφή αυτής της συνομιλίας."+ "deleteFailed": "Δεν ήταν δυνατή η διαγραφή αυτής της συνομιλίας.",+ "actions": "Ενέργειες συνομιλίας",+ "newChat": "Νέα συνομιλία"},"embeddings": {"title": "Μοντέλα",diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 28e2776b..6f0e8623 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -903,7 +903,23 @@"attachUnsupported": "{name} is not supported. Attach images (PNG, JPEG, WebP, GIF) or text files (TXT, MD, CSV, JSON, LOG).","attachFailed": "Could not read {name}.","noVisionBadge": "No images",- "visionWarning": "{model} does not accept images. Choose a vision model or Auto."+ "visionWarning": "{model} does not accept images. Choose a vision model or Auto.",+ "dictate": "Dictate",+ "dictationStop": "Stop recording",+ "dictationTranscribing": "Transcribing…",+ "dictationUnavailable": "Add providers for audio models to be able to use dictation.",+ "dictationModel": "Dictation model",+ "dictationFailed": "Transcription failed: {reason}",+ "artifactOpen": "Open preview",+ "artifactPreview": "Preview",+ "artifactCode": "Code",+ "artifactClose": "Close preview",+ "artifactDownload": "Download",+ "artifactReload": "Reload preview",+ "artifactHtml": "HTML page",+ "artifactSvg": "SVG image",+ "artifactLines": "lines",+ "artifactResize": "Resize preview"},"playgroundSessions": {"heading": "Conversations",@@ -921,7 +937,9 @@"daysAgo": "{count}d ago","loadFailed": "Couldn't open that conversation.","renameFailed": "Couldn't rename that conversation.",- "deleteFailed": "Couldn't delete that conversation."+ "deleteFailed": "Couldn't delete that conversation.",+ "actions": "Conversation actions",+ "newChat": "New chat"},"embeddings": {"title": "Models",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex 27fe7530..25c18338 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} no es compatible. Adjunta imágenes (PNG, JPEG, WebP, GIF) o archivos de texto (TXT, MD, CSV, JSON, LOG).","attachFailed": "No se pudo leer {name}.","noVisionBadge": "Sin imágenes",- "visionWarning": "{model} no acepta imágenes. Elige un modelo de visión o Auto."+ "visionWarning": "{model} no acepta imágenes. Elige un modelo de visión o Auto.",+ "dictate": "Dictar",+ "dictationStop": "Detener grabación",+ "dictationTranscribing": "Transcribiendo…",+ "dictationUnavailable": "Añade proveedores de modelos de audio para poder usar el dictado.",+ "dictationModel": "Modelo de dictado",+ "dictationFailed": "La transcripción falló: {reason}",+ "artifactOpen": "Abrir vista previa",+ "artifactPreview": "Vista previa",+ "artifactCode": "Código",+ "artifactClose": "Cerrar vista previa",+ "artifactDownload": "Descargar",+ "artifactReload": "Recargar vista previa",+ "artifactHtml": "Página HTML",+ "artifactSvg": "Imagen SVG",+ "artifactLines": "líneas",+ "artifactResize": "Cambiar tamaño de la vista previa"},"playgroundSessions": {"heading": "Conversaciones",@@ -885,7 +901,9 @@"daysAgo": "hace {count} d","loadFailed": "No se pudo abrir esa conversación.","renameFailed": "No se pudo cambiar el nombre de esa conversación.",- "deleteFailed": "No se pudo eliminar esa conversación."+ "deleteFailed": "No se pudo eliminar esa conversación.",+ "actions": "Acciones de la conversación",+ "newChat": "Nuevo chat"},"embeddings": {"title": "Modelos",diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex d7d7e55c..3a3571e2 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} پشتیبانی نمیشود. تصویر (PNG، JPEG، WebP، GIF) یا فایل متنی (TXT، MD، CSV، JSON، LOG) پیوست کنید.","attachFailed": "{name} خوانده نشد.","noVisionBadge": "بدون تصویر",- "visionWarning": "{model} تصویر نمیپذیرد. یک مدل با ورودی تصویر یا خودکار را انتخاب کنید."+ "visionWarning": "{model} تصویر نمیپذیرد. یک مدل با ورودی تصویر یا خودکار را انتخاب کنید.",+ "dictate": "دیکته",+ "dictationStop": "توقف ضبط",+ "dictationTranscribing": "در حال رونویسی…",+ "dictationUnavailable": "برای استفاده از دیکته، ارائهدهندگان مدلهای صوتی را اضافه کنید.",+ "dictationModel": "مدل دیکته",+ "dictationFailed": "رونویسی ناموفق بود: {reason}",+ "artifactOpen": "باز کردن پیشنمایش",+ "artifactPreview": "پیشنمایش",+ "artifactCode": "کد",+ "artifactClose": "بستن پیشنمایش",+ "artifactDownload": "دانلود",+ "artifactReload": "بارگذاری مجدد پیشنمایش",+ "artifactHtml": "صفحه HTML",+ "artifactSvg": "تصویر SVG",+ "artifactLines": "خط",+ "artifactResize": "تغییر اندازه پیشنمایش"},"playgroundSessions": {"heading": "گفتگوها",@@ -885,7 +901,9 @@"daysAgo": "{count} روز پیش","loadFailed": "باز کردن آن گفتگو انجام نشد.","renameFailed": "تغییر نام آن گفتگو انجام نشد.",- "deleteFailed": "حذف آن گفتگو انجام نشد."+ "deleteFailed": "حذف آن گفتگو انجام نشد.",+ "actions": "اقدامات گفتگو",+ "newChat": "گفتگوی جدید"},"embeddings": {"title": "مدل ها",diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex 7c5e9819..b4590524 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} ei ole tuettu. Liitä kuvia (PNG, JPEG, WebP, GIF) tai tekstitiedostoja (TXT, MD, CSV, JSON, LOG).","attachFailed": "Tiedostoa {name} ei voitu lukea.","noVisionBadge": "Ei kuvia",- "visionWarning": "{model} ei hyväksy kuvia. Valitse kuvasyötteen hyväksyvä malli tai Auto."+ "visionWarning": "{model} ei hyväksy kuvia. Valitse kuvasyötteen hyväksyvä malli tai Auto.",+ "dictate": "Sanele",+ "dictationStop": "Lopeta tallennus",+ "dictationTranscribing": "Litteroidaan…",+ "dictationUnavailable": "Lisää äänimallien tarjoajia, jotta voit käyttää sanelua.",+ "dictationModel": "Sanelumalli",+ "dictationFailed": "Litterointi epäonnistui: {reason}",+ "artifactOpen": "Avaa esikatselu",+ "artifactPreview": "Esikatselu",+ "artifactCode": "Koodi",+ "artifactClose": "Sulje esikatselu",+ "artifactDownload": "Lataa",+ "artifactReload": "Lataa esikatselu uudelleen",+ "artifactHtml": "HTML-sivu",+ "artifactSvg": "SVG-kuva",+ "artifactLines": "riviä",+ "artifactResize": "Muuta esikatselun kokoa"},"playgroundSessions": {"heading": "Keskustelut",@@ -885,7 +901,9 @@"daysAgo": "{count} pv sitten","loadFailed": "Keskustelua ei voitu avata.","renameFailed": "Keskustelua ei voitu nimetä uudelleen.",- "deleteFailed": "Keskustelua ei voitu poistaa."+ "deleteFailed": "Keskustelua ei voitu poistaa.",+ "actions": "Keskustelun toiminnot",+ "newChat": "Uusi keskustelu"},"embeddings": {"title": "Mallit",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex 3dd44647..f2a65c63 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} n'est pas pris en charge. Joignez des images (PNG, JPEG, WebP, GIF) ou des fichiers texte (TXT, MD, CSV, JSON, LOG).","attachFailed": "Impossible de lire {name}.","noVisionBadge": "Sans images",- "visionWarning": "{model} n'accepte pas les images. Choisissez un modèle vision ou Auto."+ "visionWarning": "{model} n'accepte pas les images. Choisissez un modèle vision ou Auto.",+ "dictate": "Dicter",+ "dictationStop": "Arrêter l’enregistrement",+ "dictationTranscribing": "Transcription…",+ "dictationUnavailable": "Ajoutez des fournisseurs de modèles audio pour utiliser la dictée.",+ "dictationModel": "Modèle de dictée",+ "dictationFailed": "Échec de la transcription : {reason}",+ "artifactOpen": "Ouvrir l’aperçu",+ "artifactPreview": "Aperçu",+ "artifactCode": "Code",+ "artifactClose": "Fermer l’aperçu",+ "artifactDownload": "Télécharger",+ "artifactReload": "Recharger l’aperçu",+ "artifactHtml": "Page HTML",+ "artifactSvg": "Image SVG",+ "artifactLines": "lignes",+ "artifactResize": "Redimensionner l’aperçu"},"playgroundSessions": {"heading": "Conversations",@@ -885,7 +901,9 @@"daysAgo": "il y a {count} j","loadFailed": "Impossible d'ouvrir cette conversation.","renameFailed": "Impossible de renommer cette conversation.",- "deleteFailed": "Impossible de supprimer cette conversation."+ "deleteFailed": "Impossible de supprimer cette conversation.",+ "actions": "Actions de la conversation",+ "newChat": "Nouvelle discussion"},"embeddings": {"title": "Modèles",diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex acc25979..f6700526 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} સમર્થિત નથી. છબીઓ (PNG, JPEG, WebP, GIF) અથવા ટેક્સ્ટ ફાઇલો (TXT, MD, CSV, JSON, LOG) જોડો.","attachFailed": "{name} વાંચી શકાયું નથી.","noVisionBadge": "છબીઓ નહીં",- "visionWarning": "{model} છબીઓ સ્વીકારતું નથી. ઇમેજ ઇનપુટ સ્વીકારતું મોડેલ અથવા ઓટો પસંદ કરો."+ "visionWarning": "{model} છબીઓ સ્વીકારતું નથી. ઇમેજ ઇનપુટ સ્વીકારતું મોડેલ અથવા ઓટો પસંદ કરો.",+ "dictate": "બોલીને લખો",+ "dictationStop": "રેકોર્ડિંગ બંધ કરો",+ "dictationTranscribing": "લખાઈ રહ્યું છે…",+ "dictationUnavailable": "બોલીને લખવા માટે ઑડિયો મોડેલ પ્રદાતાઓ ઉમેરો.",+ "dictationModel": "શ્રુતલેખન મોડેલ",+ "dictationFailed": "લખવામાં નિષ્ફળ: {reason}",+ "artifactOpen": "પૂર્વાવલોકન ખોલો",+ "artifactPreview": "પૂર્વાવલોકન",+ "artifactCode": "કોડ",+ "artifactClose": "પૂર્વાવલોકન બંધ કરો",+ "artifactDownload": "ડાઉનલોડ",+ "artifactReload": "પૂર્વાવલોકન ફરી લોડ કરો",+ "artifactHtml": "HTML પેજ",+ "artifactSvg": "SVG છબી",+ "artifactLines": "લાઇન",+ "artifactResize": "પૂર્વાવલોકનનું કદ બદલો"},"playgroundSessions": {"heading": "વાતચીત",@@ -885,7 +901,9 @@"daysAgo": "{count} દિ. પહેલાં","loadFailed": "તે વાતચીત ખોલી શકાઈ નહીં.","renameFailed": "તે વાતચીતનું નામ બદલી શકાયું નહીં.",- "deleteFailed": "તે વાતચીત કાઢી શકાઈ નહીં."+ "deleteFailed": "તે વાતચીત કાઢી શકાઈ નહીં.",+ "actions": "વાતચીત ક્રિયાઓ",+ "newChat": "નવી ચેટ"},"embeddings": {"title": "મોડલ્સ",diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex c9c89cdf..c6ea646b 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -867,7 +867,23 @@"attachUnsupported": "Ba a goyi bayan {name} ba. Haɗa hotuna (PNG, JPEG, WebP, GIF) ko fayilolin rubutu (TXT, MD, CSV, JSON, LOG).","attachFailed": "Ba a iya karanta {name} ba.","noVisionBadge": "Babu hotuna",- "visionWarning": "{model} ba ya karɓar hotuna. Zaɓi samfurin da ke karɓar hotuna ko Auto."+ "visionWarning": "{model} ba ya karɓar hotuna. Zaɓi samfurin da ke karɓar hotuna ko Auto.",+ "dictate": "Faɗa a rubuta",+ "dictationStop": "Dakatar da rikodi",+ "dictationTranscribing": "Ana rubutawa…",+ "dictationUnavailable": "Ƙara masu samar da samfuran sauti don amfani da faɗa a rubuta.",+ "dictationModel": "Samfurin faɗa a rubuta",+ "dictationFailed": "Rubutawa ta gaza: {reason}",+ "artifactOpen": "Buɗe samfoti",+ "artifactPreview": "Samfoti",+ "artifactCode": "Lamba",+ "artifactClose": "Rufe samfoti",+ "artifactDownload": "Sauke",+ "artifactReload": "Sake loda samfoti",+ "artifactHtml": "Shafin HTML",+ "artifactSvg": "Hoton SVG",+ "artifactLines": "layuka",+ "artifactResize": "Canja girman samfoti"},"playgroundSessions": {"heading": "Tattaunawa",@@ -885,7 +901,9 @@"daysAgo": "kwana {count} da suka wuce","loadFailed": "Ba a iya buɗe wannan tattaunawar ba.","renameFailed": "Ba a iya sauya sunan wannan tattaunawar ba.",- "deleteFailed": "Ba a iya share wannan tattaunawar ba."+ "deleteFailed": "Ba a iya share wannan tattaunawar ba.",+ "actions": "Ayyukan tattaunawa",+ "newChat": "Sabuwar tattaunawa"},"embeddings": {"title": "Samfura",diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex 3fc23c57..ca44fe01 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} אינו נתמך. צרף תמונות (PNG, JPEG, WebP, GIF) או קובצי טקסט (TXT, MD, CSV, JSON, LOG).","attachFailed": "לא ניתן לקרוא את {name}.","noVisionBadge": "ללא תמונות",- "visionWarning": "{model} אינו מקבל תמונות. בחר מודל חזון או אוטו."+ "visionWarning": "{model} אינו מקבל תמונות. בחר מודל חזון או אוטו.",+ "dictate": "הכתבה",+ "dictationStop": "עצירת ההקלטה",+ "dictationTranscribing": "מתמלל…",+ "dictationUnavailable": "הוסיפו ספקים למודלי שמע כדי להשתמש בהכתבה.",+ "dictationModel": "מודל הכתבה",+ "dictationFailed": "התמלול נכשל: {reason}",+ "artifactOpen": "פתיחת תצוגה מקדימה",+ "artifactPreview": "תצוגה מקדימה",+ "artifactCode": "קוד",+ "artifactClose": "סגירת תצוגה מקדימה",+ "artifactDownload": "הורדה",+ "artifactReload": "טעינה מחדש של התצוגה",+ "artifactHtml": "עמוד HTML",+ "artifactSvg": "תמונת SVG",+ "artifactLines": "שורות",+ "artifactResize": "שינוי גודל התצוגה המקדימה"},"playgroundSessions": {"heading": "שיחות",@@ -885,7 +901,9 @@"daysAgo": "לפני {count} ימים","loadFailed": "לא ניתן לפתוח את השיחה.","renameFailed": "לא ניתן לשנות את שם השיחה.",- "deleteFailed": "לא ניתן למחוק את השיחה."+ "deleteFailed": "לא ניתן למחוק את השיחה.",+ "actions": "פעולות שיחה",+ "newChat": "צ׳אט חדש"},"embeddings": {"title": "דגמים",diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex be96377f..0227dbc9 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} समर्थित नहीं है। छवियाँ (PNG, JPEG, WebP, GIF) या टेक्स्ट फ़ाइलें (TXT, MD, CSV, JSON, LOG) संलग्न करें।","attachFailed": "{name} को पढ़ा नहीं जा सका।","noVisionBadge": "छवि नहीं",- "visionWarning": "{model} छवियाँ स्वीकार नहीं करता। कोई दृष्टि मॉडल या ऑटो चुनें।"+ "visionWarning": "{model} छवियाँ स्वीकार नहीं करता। कोई दृष्टि मॉडल या ऑटो चुनें।",+ "dictate": "बोलकर लिखें",+ "dictationStop": "रिकॉर्डिंग रोकें",+ "dictationTranscribing": "लिखा जा रहा है…",+ "dictationUnavailable": "बोलकर लिखने के लिए ऑडियो मॉडल के प्रदाता जोड़ें।",+ "dictationModel": "श्रुतलेख मॉडल",+ "dictationFailed": "लिखने में विफल: {reason}",+ "artifactOpen": "पूर्वावलोकन खोलें",+ "artifactPreview": "पूर्वावलोकन",+ "artifactCode": "कोड",+ "artifactClose": "पूर्वावलोकन बंद करें",+ "artifactDownload": "डाउनलोड",+ "artifactReload": "पूर्वावलोकन पुनः लोड करें",+ "artifactHtml": "HTML पेज",+ "artifactSvg": "SVG छवि",+ "artifactLines": "पंक्तियाँ",+ "artifactResize": "पूर्वावलोकन का आकार बदलें"},"playgroundSessions": {"heading": "बातचीत",@@ -885,7 +901,9 @@"daysAgo": "{count} दि पहले","loadFailed": "वह बातचीत नहीं खोली जा सकी।","renameFailed": "उस बातचीत का नाम नहीं बदला जा सका।",- "deleteFailed": "वह बातचीत हटाई नहीं जा सकी।"+ "deleteFailed": "वह बातचीत हटाई नहीं जा सकी।",+ "actions": "बातचीत की क्रियाएँ",+ "newChat": "नई चैट"},"embeddings": {"title": "मॉडल",diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex 63db5a1b..b1f0b60e 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -867,7 +867,23 @@"attachUnsupported": "Datoteka {name} nije podržana. Priložite slike (PNG, JPEG, WebP, GIF) ili tekstualne datoteke (TXT, MD, CSV, JSON, LOG).","attachFailed": "Nije moguće pročitati datoteku {name}.","noVisionBadge": "Bez slika",- "visionWarning": "Model {model} ne prihvaća slike. Odaberite model s vizijom ili Auto."+ "visionWarning": "Model {model} ne prihvaća slike. Odaberite model s vizijom ili Auto.",+ "dictate": "Diktiraj",+ "dictationStop": "Zaustavi snimanje",+ "dictationTranscribing": "Transkribiranje…",+ "dictationUnavailable": "Dodajte pružatelje audio modela da biste mogli diktirati.",+ "dictationModel": "Model diktiranja",+ "dictationFailed": "Transkripcija nije uspjela: {reason}",+ "artifactOpen": "Otvori pretpregled",+ "artifactPreview": "Pretpregled",+ "artifactCode": "Kod",+ "artifactClose": "Zatvori pretpregled",+ "artifactDownload": "Preuzmi",+ "artifactReload": "Ponovno učitaj pretpregled",+ "artifactHtml": "HTML stranica",+ "artifactSvg": "SVG slika",+ "artifactLines": "redaka",+ "artifactResize": "Promijeni veličinu pretpregleda"},"playgroundSessions": {"heading": "Razgovori",@@ -885,7 +901,9 @@"daysAgo": "prije {count} d","loadFailed": "Nije moguće otvoriti taj razgovor.","renameFailed": "Nije moguće preimenovati taj razgovor.",- "deleteFailed": "Nije moguće izbrisati taj razgovor."+ "deleteFailed": "Nije moguće izbrisati taj razgovor.",+ "actions": "Radnje razgovora",+ "newChat": "Novi razgovor"},"embeddings": {"title": "Modeli",diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex ce5f53c3..c56ae9a2 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -867,7 +867,23 @@"attachUnsupported": "A(z) {name} nem támogatott. Csatolj képeket (PNG, JPEG, WebP, GIF) vagy szövegfájlokat (TXT, MD, CSV, JSON, LOG).","attachFailed": "A(z) {name} nem olvasható.","noVisionBadge": "Nincs kép",- "visionWarning": "A(z) {model} nem fogad képeket. Válassz képfeldolgozó modellt vagy az Automatikus lehetőséget."+ "visionWarning": "A(z) {model} nem fogad képeket. Válassz képfeldolgozó modellt vagy az Automatikus lehetőséget.",+ "dictate": "Diktálás",+ "dictationStop": "Felvétel leállítása",+ "dictationTranscribing": "Átírás…",+ "dictationUnavailable": "Adjon hozzá hangmodell-szolgáltatókat a diktálás használatához.",+ "dictationModel": "Diktálási modell",+ "dictationFailed": "Az átírás nem sikerült: {reason}",+ "artifactOpen": "Előnézet megnyitása",+ "artifactPreview": "Előnézet",+ "artifactCode": "Kód",+ "artifactClose": "Előnézet bezárása",+ "artifactDownload": "Letöltés",+ "artifactReload": "Előnézet újratöltése",+ "artifactHtml": "HTML-oldal",+ "artifactSvg": "SVG-kép",+ "artifactLines": "sor",+ "artifactResize": "Előnézet átméretezése"},"playgroundSessions": {"heading": "Beszélgetések",@@ -885,7 +901,9 @@"daysAgo": "{count} napja","loadFailed": "Nem sikerült megnyitni ezt a beszélgetést.","renameFailed": "Nem sikerült átnevezni ezt a beszélgetést.",- "deleteFailed": "Nem sikerült törölni ezt a beszélgetést."+ "deleteFailed": "Nem sikerült törölni ezt a beszélgetést.",+ "actions": "Beszélgetés műveletei",+ "newChat": "Új csevegés"},"embeddings": {"title": "Modellek",diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex e9546988..c397ec8c 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} tidak didukung. Lampirkan gambar (PNG, JPEG, WebP, GIF) atau file teks (TXT, MD, CSV, JSON, LOG).","attachFailed": "Tidak dapat membaca {name}.","noVisionBadge": "Tanpa gambar",- "visionWarning": "{model} tidak menerima gambar. Pilih model visi atau Otomatis."+ "visionWarning": "{model} tidak menerima gambar. Pilih model visi atau Otomatis.",+ "dictate": "Dikte",+ "dictationStop": "Hentikan perekaman",+ "dictationTranscribing": "Menranskripsi…",+ "dictationUnavailable": "Tambahkan penyedia model audio untuk menggunakan dikte.",+ "dictationModel": "Model dikte",+ "dictationFailed": "Transkripsi gagal: {reason}",+ "artifactOpen": "Buka pratinjau",+ "artifactPreview": "Pratinjau",+ "artifactCode": "Kode",+ "artifactClose": "Tutup pratinjau",+ "artifactDownload": "Unduh",+ "artifactReload": "Muat ulang pratinjau",+ "artifactHtml": "Halaman HTML",+ "artifactSvg": "Gambar SVG",+ "artifactLines": "baris",+ "artifactResize": "Ubah ukuran pratinjau"},"playgroundSessions": {"heading": "Percakapan",@@ -885,7 +901,9 @@"daysAgo": "{count} hari lalu","loadFailed": "Tidak dapat membuka percakapan itu.","renameFailed": "Tidak dapat mengganti nama percakapan itu.",- "deleteFailed": "Tidak dapat menghapus percakapan itu."+ "deleteFailed": "Tidak dapat menghapus percakapan itu.",+ "actions": "Tindakan percakapan",+ "newChat": "Obrolan baru"},"embeddings": {"title": "Model",diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex 5b1f2b73..ef556b1e 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -867,7 +867,23 @@"attachUnsupported": "Anaghị akwado {name}. Tinye onyonyo (PNG, JPEG, WebP, GIF) ma ọ bụ faịlụ ederede (TXT, MD, CSV, JSON, LOG).","attachFailed": "Enweghị ike ịgụ {name}.","noVisionBadge": "Enweghị onyonyo",- "visionWarning": "{model} anaghị anabata onyonyo. Họrọ ụdị na-anabata onyonyo ma ọ bụ Akpaaka."+ "visionWarning": "{model} anaghị anabata onyonyo. Họrọ ụdị na-anabata onyonyo ma ọ bụ Akpaaka.",+ "dictate": "Kwuo ka e dee",+ "dictationStop": "Kwụsị ndekọ",+ "dictationTranscribing": "Na-edegharị…",+ "dictationUnavailable": "Tinye ndị na-enye ụdị ụda iji jiri ikwu ka e dee.",+ "dictationModel": "Ụdị ikwu ka e dee",+ "dictationFailed": "Ndegharị dara: {reason}",+ "artifactOpen": "Mepee nlele",+ "artifactPreview": "Nlele",+ "artifactCode": "Koodu",+ "artifactClose": "Mechie nlele",+ "artifactDownload": "Budata",+ "artifactReload": "Bugharịa nlele",+ "artifactHtml": "Ibe HTML",+ "artifactSvg": "Onyonyo SVG",+ "artifactLines": "ahịrị",+ "artifactResize": "Gbanwee nha nlele"},"playgroundSessions": {"heading": "Mkparịta ụka",@@ -885,7 +901,9 @@"daysAgo": "ụbọchị {count} gara aga","loadFailed": "Enweghị ike imepe mkparịta ụka ahụ.","renameFailed": "Enweghị ike ịnyegharị aha mkparịta ụka ahụ.",- "deleteFailed": "Enweghị ike ihichapụ mkparịta ụka ahụ."+ "deleteFailed": "Enweghị ike ihichapụ mkparịta ụka ahụ.",+ "actions": "Omume mkparịta ụka",+ "newChat": "Nkata ọhụrụ"},"embeddings": {"title": "Ụdị",diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 5b5ed78f..9e6fd9b7 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} non è supportato. Allega immagini (PNG, JPEG, WebP, GIF) o file di testo (TXT, MD, CSV, JSON, LOG).","attachFailed": "Impossibile leggere {name}.","noVisionBadge": "No immagini",- "visionWarning": "{model} non accetta immagini. Scegli un modello con visione o Auto."+ "visionWarning": "{model} non accetta immagini. Scegli un modello con visione o Auto.",+ "dictate": "Detta",+ "dictationStop": "Interrompi registrazione",+ "dictationTranscribing": "Trascrizione…",+ "dictationUnavailable": "Aggiungi provider di modelli audio per usare la dettatura.",+ "dictationModel": "Modello di dettatura",+ "dictationFailed": "Trascrizione non riuscita: {reason}",+ "artifactOpen": "Apri anteprima",+ "artifactPreview": "Anteprima",+ "artifactCode": "Codice",+ "artifactClose": "Chiudi anteprima",+ "artifactDownload": "Scarica",+ "artifactReload": "Ricarica anteprima",+ "artifactHtml": "Pagina HTML",+ "artifactSvg": "Immagine SVG",+ "artifactLines": "righe",+ "artifactResize": "Ridimensiona anteprima"},"playgroundSessions": {"heading": "Conversazioni",@@ -885,7 +901,9 @@"daysAgo": "{count} g fa","loadFailed": "Impossibile aprire quella conversazione.","renameFailed": "Impossibile rinominare quella conversazione.",- "deleteFailed": "Impossibile eliminare quella conversazione."+ "deleteFailed": "Impossibile eliminare quella conversazione.",+ "actions": "Azioni conversazione",+ "newChat": "Nuova chat"},"embeddings": {"title": "Modelli",diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex 5deebb12..63215f74 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} はサポートされていません。画像 (PNG、JPEG、WebP、GIF) またはテキスト ファイル (TXT、MD、CSV、JSON、LOG) を添付してください。","attachFailed": "{name} を読み取れませんでした。","noVisionBadge": "画像不可",- "visionWarning": "{model} は画像を受け付けません。ビジョン モデルまたは「自動」を選択してください。"+ "visionWarning": "{model} は画像を受け付けません。ビジョン モデルまたは「自動」を選択してください。",+ "dictate": "音声入力",+ "dictationStop": "録音を停止",+ "dictationTranscribing": "文字起こし中…",+ "dictationUnavailable": "音声入力を使うには、音声モデルのプロバイダーを追加してください。",+ "dictationModel": "音声入力モデル",+ "dictationFailed": "文字起こしに失敗しました: {reason}",+ "artifactOpen": "プレビューを開く",+ "artifactPreview": "プレビュー",+ "artifactCode": "コード",+ "artifactClose": "プレビューを閉じる",+ "artifactDownload": "ダウンロード",+ "artifactReload": "プレビューを再読み込み",+ "artifactHtml": "HTMLページ",+ "artifactSvg": "SVG画像",+ "artifactLines": "行",+ "artifactResize": "プレビューのサイズ変更"},"playgroundSessions": {"heading": "会話",@@ -885,7 +901,9 @@"daysAgo": "{count}日前","loadFailed": "この会話を開けませんでした。","renameFailed": "この会話の名前を変更できませんでした。",- "deleteFailed": "この会話を削除できませんでした。"+ "deleteFailed": "この会話を削除できませんでした。",+ "actions": "会話の操作",+ "newChat": "新しいチャット"},"embeddings": {"title": "モデル",diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex 44de1653..06073900 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} არ არის მხარდაჭერილი. მიამაგრეთ სურათები (PNG, JPEG, WebP, GIF) ან ტექსტური ფაილები (TXT, MD, CSV, JSON, LOG).","attachFailed": "{name} ვერ წაიკითხა.","noVisionBadge": "სურათების გარეშე",- "visionWarning": "{model} არ იღებს სურათებს. აირჩიეთ ხედვის მოდელი ან ავტომატური."+ "visionWarning": "{model} არ იღებს სურათებს. აირჩიეთ ხედვის მოდელი ან ავტომატური.",+ "dictate": "კარნახი",+ "dictationStop": "ჩაწერის შეწყვეტა",+ "dictationTranscribing": "ტრანსკრიფცია…",+ "dictationUnavailable": "კარნახის გამოსაყენებლად დაამატეთ აუდიო მოდელების პროვაიდერები.",+ "dictationModel": "კარნახის მოდელი",+ "dictationFailed": "ტრანსკრიფცია ვერ შესრულდა: {reason}",+ "artifactOpen": "გადახედვის გახსნა",+ "artifactPreview": "გადახედვა",+ "artifactCode": "კოდი",+ "artifactClose": "გადახედვის დახურვა",+ "artifactDownload": "ჩამოტვირთვა",+ "artifactReload": "გადახედვის განახლება",+ "artifactHtml": "HTML გვერდი",+ "artifactSvg": "SVG სურათი",+ "artifactLines": "ხაზი",+ "artifactResize": "გადახედვის ზომის შეცვლა"},"playgroundSessions": {"heading": "საუბრები",@@ -885,7 +901,9 @@"daysAgo": "{count} დღის წინ","loadFailed": "ამ საუბრის გახსნა ვერ მოხერხდა.","renameFailed": "ამ საუბრის გადარქმევა ვერ მოხერხდა.",- "deleteFailed": "ამ საუბრის წაშლა ვერ მოხერხდა."+ "deleteFailed": "ამ საუბრის წაშლა ვერ მოხერხდა.",+ "actions": "საუბრის მოქმედებები",+ "newChat": "ახალი ჩატი"},"embeddings": {"title": "მოდელები",diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 3c1fec92..19dcfe10 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} មិនត្រូវបានគាំទ្រទេ។ ភ្ជាប់រូបភាព (PNG, JPEG, WebP, GIF) ឬឯកសារអត្ថបទ (TXT, MD, CSV, JSON, LOG)។","attachFailed": "មិនអាចអានឯកសារ {name} បានទេ។","noVisionBadge": "គ្មានរូបភាព",- "visionWarning": "{model} មិនទទួលយករូបភាពទេ។ សូមជ្រើសរើសម៉ូដែលដែលទទួលរូបភាព ឬ Auto។"+ "visionWarning": "{model} មិនទទួលយករូបភាពទេ។ សូមជ្រើសរើសម៉ូដែលដែលទទួលរូបភាព ឬ Auto។",+ "dictate": "និយាយវាយអត្ថបទ",+ "dictationStop": "បញ្ឈប់ការថត",+ "dictationTranscribing": "កំពុងបំលែងជាអត្ថបទ…",+ "dictationUnavailable": "បន្ថែមអ្នកផ្តល់ម៉ូដែលសំឡេង ដើម្បីប្រើការនិយាយវាយអត្ថបទ។",+ "dictationModel": "ម៉ូដែលនិយាយវាយអត្ថបទ",+ "dictationFailed": "ការបំលែងបរាជ័យ: {reason}",+ "artifactOpen": "បើកការមើលជាមុន",+ "artifactPreview": "មើលជាមុន",+ "artifactCode": "កូដ",+ "artifactClose": "បិទការមើលជាមុន",+ "artifactDownload": "ទាញយក",+ "artifactReload": "ផ្ទុកការមើលជាមុនឡើងវិញ",+ "artifactHtml": "ទំព័រ HTML",+ "artifactSvg": "រូបភាព SVG",+ "artifactLines": "បន្ទាត់",+ "artifactResize": "ប្ដូរទំហំការមើលជាមុន"},"playgroundSessions": {"heading": "ការសន្ទនា",@@ -885,7 +901,9 @@"daysAgo": "{count} ថ្ងៃមុន","loadFailed": "មិនអាចបើកការសន្ទនានោះបានទេ។","renameFailed": "មិនអាចប្តូរឈ្មោះការសន្ទនានោះបានទេ។",- "deleteFailed": "មិនអាចលុបការសន្ទនានោះបានទេ។"+ "deleteFailed": "មិនអាចលុបការសន្ទនានោះបានទេ។",+ "actions": "សកម្មភាពការសន្ទនា",+ "newChat": "ជជែកថ្មី"},"embeddings": {"title": "ម៉ូដែល",diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 72a6c520..6730983a 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} ಬೆಂಬಲಿತವಾಗಿಲ್ಲ. ಚಿತ್ರಗಳನ್ನು (PNG, JPEG, WebP, GIF) ಅಥವಾ ಪಠ್ಯ ಫೈಲ್ಗಳನ್ನು (TXT, MD, CSV, JSON, LOG) ಲಗತ್ತಿಸಿ.","attachFailed": "{name} ಅನ್ನು ಓದಲು ಸಾಧ್ಯವಾಗಲಿಲ್ಲ.","noVisionBadge": "ಚಿತ್ರಗಳಿಲ್ಲ",- "visionWarning": "{model} ಚಿತ್ರಗಳನ್ನು ಸ್ವೀಕರಿಸುವುದಿಲ್ಲ. ಚಿತ್ರದ ಇನ್ಪುಟ್ ಸ್ವೀಕರಿಸುವ ಮಾದರಿ ಅಥವಾ ಸ್ವಯಂ ಆಯ್ಕೆಮಾಡಿ."+ "visionWarning": "{model} ಚಿತ್ರಗಳನ್ನು ಸ್ವೀಕರಿಸುವುದಿಲ್ಲ. ಚಿತ್ರದ ಇನ್ಪುಟ್ ಸ್ವೀಕರಿಸುವ ಮಾದರಿ ಅಥವಾ ಸ್ವಯಂ ಆಯ್ಕೆಮಾಡಿ.",+ "dictate": "ಹೇಳಿ ಬರೆಸಿ",+ "dictationStop": "ರೆಕಾರ್ಡಿಂಗ್ ನಿಲ್ಲಿಸಿ",+ "dictationTranscribing": "ಲಿಪ್ಯಂತರ…",+ "dictationUnavailable": "ಡಿಕ್ಟೇಷನ್ ಬಳಸಲು ಆಡಿಯೊ ಮಾದರಿ ಪೂರೈಕೆದಾರರನ್ನು ಸೇರಿಸಿ.",+ "dictationModel": "ಡಿಕ್ಟೇಷನ್ ಮಾದರಿ",+ "dictationFailed": "ಲಿಪ್ಯಂತರ ವಿಫಲ: {reason}",+ "artifactOpen": "ಪೂರ್ವವೀಕ್ಷಣೆ ತೆರೆಯಿರಿ",+ "artifactPreview": "ಪೂರ್ವವೀಕ್ಷಣೆ",+ "artifactCode": "ಕೋಡ್",+ "artifactClose": "ಪೂರ್ವವೀಕ್ಷಣೆ ಮುಚ್ಚಿ",+ "artifactDownload": "ಡೌನ್ಲೋಡ್",+ "artifactReload": "ಪೂರ್ವವೀಕ್ಷಣೆ ಮರುಲೋಡ್ ಮಾಡಿ",+ "artifactHtml": "HTML ಪುಟ",+ "artifactSvg": "SVG ಚಿತ್ರ",+ "artifactLines": "ಸಾಲುಗಳು",+ "artifactResize": "ಪೂರ್ವವೀಕ್ಷಣೆಯ ಗಾತ್ರ ಬದಲಿಸಿ"},"playgroundSessions": {"heading": "ಸಂಭಾಷಣೆಗಳು",@@ -885,7 +901,9 @@"daysAgo": "{count} ದಿನ ಹಿಂದೆ","loadFailed": "ಆ ಸಂಭಾಷಣೆಯನ್ನು ತೆರೆಯಲಾಗಲಿಲ್ಲ.","renameFailed": "ಆ ಸಂಭಾಷಣೆಯನ್ನು ಮರುಹೆಸರಿಸಲಾಗಲಿಲ್ಲ.",- "deleteFailed": "ಆ ಸಂಭಾಷಣೆಯನ್ನು ಅಳಿಸಲಾಗಲಿಲ್ಲ."+ "deleteFailed": "ಆ ಸಂಭಾಷಣೆಯನ್ನು ಅಳಿಸಲಾಗಲಿಲ್ಲ.",+ "actions": "ಸಂವಾದ ಕ್ರಿಯೆಗಳು",+ "newChat": "ಹೊಸ ಚಾಟ್"},"embeddings": {"title": "ಮಾದರಿಗಳು",diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex 4e52f52f..1c9a4bbc 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -867,7 +867,23 @@"attachUnsupported": "{name}은(는) 지원되지 않습니다. 이미지(PNG, JPEG, WebP, GIF) 또는 텍스트 파일(TXT, MD, CSV, JSON, LOG)을 첨부하세요.","attachFailed": "{name}을(를) 읽을 수 없습니다.","noVisionBadge": "이미지 불가",- "visionWarning": "{model}은(는) 이미지를 지원하지 않습니다. 이미지 입력이 가능한 모델 또는 자동을 선택하세요."+ "visionWarning": "{model}은(는) 이미지를 지원하지 않습니다. 이미지 입력이 가능한 모델 또는 자동을 선택하세요.",+ "dictate": "받아쓰기",+ "dictationStop": "녹음 중지",+ "dictationTranscribing": "변환 중…",+ "dictationUnavailable": "받아쓰기를 사용하려면 오디오 모델 제공자를 추가하세요.",+ "dictationModel": "받아쓰기 모델",+ "dictationFailed": "변환 실패: {reason}",+ "artifactOpen": "미리보기 열기",+ "artifactPreview": "미리보기",+ "artifactCode": "코드",+ "artifactClose": "미리보기 닫기",+ "artifactDownload": "다운로드",+ "artifactReload": "미리보기 새로 고침",+ "artifactHtml": "HTML 페이지",+ "artifactSvg": "SVG 이미지",+ "artifactLines": "줄",+ "artifactResize": "미리보기 크기 조절"},"playgroundSessions": {"heading": "대화",@@ -885,7 +901,9 @@"daysAgo": "{count}일 전","loadFailed": "해당 대화를 열지 못했습니다.","renameFailed": "해당 대화의 이름을 변경하지 못했습니다.",- "deleteFailed": "해당 대화를 삭제하지 못했습니다."+ "deleteFailed": "해당 대화를 삭제하지 못했습니다.",+ "actions": "대화 작업",+ "newChat": "새 채팅"},"embeddings": {"title": "모델",diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex 442b3103..3481af69 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -867,7 +867,23 @@"attachUnsupported": "Failas {name} nepalaikomas. Pridėkite vaizdų (PNG, JPEG, WebP, GIF) arba tekstinių failų (TXT, MD, CSV, JSON, LOG).","attachFailed": "Nepavyko perskaityti failo {name}.","noVisionBadge": "Be vaizdų",- "visionWarning": "Modelis {model} nepriima vaizdų. Pasirinkite vaizdo įvestį palaikantį modelį arba Auto."+ "visionWarning": "Modelis {model} nepriima vaizdų. Pasirinkite vaizdo įvestį palaikantį modelį arba Auto.",+ "dictate": "Diktuoti",+ "dictationStop": "Stabdyti įrašymą",+ "dictationTranscribing": "Transkribuojama…",+ "dictationUnavailable": "Pridėkite garso modelių teikėjų, kad galėtumėte diktuoti.",+ "dictationModel": "Diktavimo modelis",+ "dictationFailed": "Transkripcija nepavyko: {reason}",+ "artifactOpen": "Atverti peržiūrą",+ "artifactPreview": "Peržiūra",+ "artifactCode": "Kodas",+ "artifactClose": "Užverti peržiūrą",+ "artifactDownload": "Atsisiųsti",+ "artifactReload": "Įkelti peržiūrą iš naujo",+ "artifactHtml": "HTML puslapis",+ "artifactSvg": "SVG paveikslėlis",+ "artifactLines": "eilučių",+ "artifactResize": "Keisti peržiūros dydį"},"playgroundSessions": {"heading": "Pokalbiai",@@ -885,7 +901,9 @@"daysAgo": "prieš {count} d.","loadFailed": "Nepavyko atidaryti šio pokalbio.","renameFailed": "Nepavyko pervadinti šio pokalbio.",- "deleteFailed": "Nepavyko ištrinti šio pokalbio."+ "deleteFailed": "Nepavyko ištrinti šio pokalbio.",+ "actions": "Pokalbio veiksmai",+ "newChat": "Naujas pokalbis"},"embeddings": {"title": "Modeliai",diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex e127f64f..637d4b80 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} പിന്തുണയ്ക്കുന്നില്ല. ചിത്രങ്ങൾ (PNG, JPEG, WebP, GIF) അല്ലെങ്കിൽ ടെക്സ്റ്റ് ഫയലുകൾ (TXT, MD, CSV, JSON, LOG) അറ്റാച്ചുചെയ്യുക.","attachFailed": "{name} വായിക്കാൻ കഴിഞ്ഞില്ല.","noVisionBadge": "ചിത്രങ്ങളില്ല",- "visionWarning": "{model} ചിത്രങ്ങൾ സ്വീകരിക്കുന്നില്ല. ഇമേജ് ഇൻപുട്ട് സ്വീകരിക്കുന്ന മോഡൽ അല്ലെങ്കിൽ ഓട്ടോ തിരഞ്ഞെടുക്കുക."+ "visionWarning": "{model} ചിത്രങ്ങൾ സ്വീകരിക്കുന്നില്ല. ഇമേജ് ഇൻപുട്ട് സ്വീകരിക്കുന്ന മോഡൽ അല്ലെങ്കിൽ ഓട്ടോ തിരഞ്ഞെടുക്കുക.",+ "dictate": "പറഞ്ഞ് എഴുതുക",+ "dictationStop": "റെക്കോർഡിംഗ് നിർത്തുക",+ "dictationTranscribing": "ട്രാൻസ്ക്രൈബ് ചെയ്യുന്നു…",+ "dictationUnavailable": "ഡിക്ടേഷൻ ഉപയോഗിക്കാൻ ഓഡിയോ മോഡൽ ദാതാക്കളെ ചേർക്കുക.",+ "dictationModel": "ഡിക്ടേഷൻ മോഡൽ",+ "dictationFailed": "ട്രാൻസ്ക്രിപ്ഷൻ പരാജയപ്പെട്ടു: {reason}",+ "artifactOpen": "പ്രിവ്യൂ തുറക്കുക",+ "artifactPreview": "പ്രിവ്യൂ",+ "artifactCode": "കോഡ്",+ "artifactClose": "പ്രിവ്യൂ അടയ്ക്കുക",+ "artifactDownload": "ഡൗൺലോഡ്",+ "artifactReload": "പ്രിവ്യൂ വീണ്ടും ലോഡ് ചെയ്യുക",+ "artifactHtml": "HTML പേജ്",+ "artifactSvg": "SVG ചിത്രം",+ "artifactLines": "വരികൾ",+ "artifactResize": "പ്രിവ്യൂ വലുപ്പം മാറ്റുക"},"playgroundSessions": {"heading": "സംഭാഷണങ്ങൾ",@@ -885,7 +901,9 @@"daysAgo": "{count} ദി. മുമ്പ്","loadFailed": "ആ സംഭാഷണം തുറക്കാനായില്ല.","renameFailed": "ആ സംഭാഷണത്തിന്റെ പേര് മാറ്റാനായില്ല.",- "deleteFailed": "ആ സംഭാഷണം ഇല്ലാതാക്കാനായില്ല."+ "deleteFailed": "ആ സംഭാഷണം ഇല്ലാതാക്കാനായില്ല.",+ "actions": "സംഭാഷണ പ്രവർത്തനങ്ങൾ",+ "newChat": "പുതിയ ചാറ്റ്"},"embeddings": {"title": "മോഡലുകൾ",diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex f7cc2f34..c09753d9 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} समर्थित नाही. प्रतिमा (PNG, JPEG, WebP, GIF) किंवा मजकूर फाइल्स (TXT, MD, CSV, JSON, LOG) संलग्न करा.","attachFailed": "{name} वाचता आले नाही.","noVisionBadge": "प्रतिमा नाही",- "visionWarning": "{model} प्रतिमा स्वीकारत नाही. दृष्टी मॉडेल किंवा ऑटो निवडा."+ "visionWarning": "{model} प्रतिमा स्वीकारत नाही. दृष्टी मॉडेल किंवा ऑटो निवडा.",+ "dictate": "बोलून लिहा",+ "dictationStop": "रेकॉर्डिंग थांबवा",+ "dictationTranscribing": "लिहिले जात आहे…",+ "dictationUnavailable": "बोलून लिहिण्यासाठी ऑडिओ मॉडेल प्रदाते जोडा.",+ "dictationModel": "श्रुतलेखन मॉडेल",+ "dictationFailed": "लिहिणे अयशस्वी: {reason}",+ "artifactOpen": "पूर्वावलोकन उघडा",+ "artifactPreview": "पूर्वावलोकन",+ "artifactCode": "कोड",+ "artifactClose": "पूर्वावलोकन बंद करा",+ "artifactDownload": "डाउनलोड",+ "artifactReload": "पूर्वावलोकन पुन्हा लोड करा",+ "artifactHtml": "HTML पृष्ठ",+ "artifactSvg": "SVG प्रतिमा",+ "artifactLines": "ओळी",+ "artifactResize": "पूर्वावलोकनाचा आकार बदला"},"playgroundSessions": {"heading": "संभाषणे",@@ -885,7 +901,9 @@"daysAgo": "{count} दि. पूर्वी","loadFailed": "ते संभाषण उघडता आले नाही.","renameFailed": "त्या संभाषणाचे नाव बदलता आले नाही.",- "deleteFailed": "ते संभाषण हटवता आले नाही."+ "deleteFailed": "ते संभाषण हटवता आले नाही.",+ "actions": "संवाद क्रिया",+ "newChat": "नवीन चॅट"},"embeddings": {"title": "मॉडेल्स",diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex 4fafd4a5..8a671dcb 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} tidak disokong. Lampirkan imej (PNG, JPEG, WebP, GIF) atau fail teks (TXT, MD, CSV, JSON, LOG).","attachFailed": "Tidak dapat membaca {name}.","noVisionBadge": "Tiada imej",- "visionWarning": "{model} tidak menerima imej. Pilih model yang menyokong imej atau Auto."+ "visionWarning": "{model} tidak menerima imej. Pilih model yang menyokong imej atau Auto.",+ "dictate": "Dikte",+ "dictationStop": "Hentikan rakaman",+ "dictationTranscribing": "Mentranskripsi…",+ "dictationUnavailable": "Tambah pembekal model audio untuk menggunakan dikte.",+ "dictationModel": "Model dikte",+ "dictationFailed": "Transkripsi gagal: {reason}",+ "artifactOpen": "Buka pratonton",+ "artifactPreview": "Pratonton",+ "artifactCode": "Kod",+ "artifactClose": "Tutup pratonton",+ "artifactDownload": "Muat turun",+ "artifactReload": "Muat semula pratonton",+ "artifactHtml": "Halaman HTML",+ "artifactSvg": "Imej SVG",+ "artifactLines": "baris",+ "artifactResize": "Ubah saiz pratonton"},"playgroundSessions": {"heading": "Perbualan",@@ -885,7 +901,9 @@"daysAgo": "{count} hari lalu","loadFailed": "Tidak dapat membuka perbualan itu.","renameFailed": "Tidak dapat menukar nama perbualan itu.",- "deleteFailed": "Tidak dapat memadam perbualan itu."+ "deleteFailed": "Tidak dapat memadam perbualan itu.",+ "actions": "Tindakan perbualan",+ "newChat": "Sembang baharu"},"embeddings": {"title": "Model",diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 4d10a425..337b2826 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} ကို မပံ့ပိုးပါ။ ပုံများ (PNG, JPEG, WebP, GIF) သို့မဟုတ် စာသားဖိုင်များ (TXT, MD, CSV, JSON, LOG) ကို ပူးတွဲပါ။","attachFailed": "{name} ကို ဖတ်၍မရပါ။","noVisionBadge": "ပုံမရ",- "visionWarning": "{model} သည် ပုံများကို လက်မခံပါ။ ပုံရိပ်ထည့်သွင်းမှုကို လက်ခံသော မော်ဒယ် သို့မဟုတ် အော်တို ကို ရွေးပါ။"+ "visionWarning": "{model} သည် ပုံများကို လက်မခံပါ။ ပုံရိပ်ထည့်သွင်းမှုကို လက်ခံသော မော်ဒယ် သို့မဟုတ် အော်တို ကို ရွေးပါ။",+ "dictate": "အသံဖြင့်ရေးရန်",+ "dictationStop": "အသံသွင်းခြင်း ရပ်ရန်",+ "dictationTranscribing": "စာသားပြောင်းနေသည်…",+ "dictationUnavailable": "အသံဖြင့်ရေးရန် အသံမော်ဒယ် ပံ့ပိုးသူများ ထည့်ပါ။",+ "dictationModel": "အသံဖြင့်ရေးမော်ဒယ်",+ "dictationFailed": "စာသားပြောင်းခြင်း မအောင်မြင်ပါ: {reason}",+ "artifactOpen": "အစမ်းကြည့်ရန် ဖွင့်ရန်",+ "artifactPreview": "အစမ်းကြည့်ရှု",+ "artifactCode": "ကုဒ်",+ "artifactClose": "အစမ်းကြည့်ရှုမှု ပိတ်ရန်",+ "artifactDownload": "ဒေါင်းလုဒ်",+ "artifactReload": "အစမ်းကြည့်ရှုမှု ပြန်တင်ရန်",+ "artifactHtml": "HTML စာမျက်နှာ",+ "artifactSvg": "SVG ပုံ",+ "artifactLines": "လိုင်း",+ "artifactResize": "အစမ်းကြည့်ရှုမှု အရွယ်အစားပြောင်းရန်"},"playgroundSessions": {"heading": "စကားဝိုင်းများ",@@ -885,7 +901,9 @@"daysAgo": "{count} ရက်က","loadFailed": "ထိုစကားဝိုင်းကို ဖွင့်၍မရပါ။","renameFailed": "ထိုစကားဝိုင်း၏ အမည်ကို ပြောင်း၍မရပါ။",- "deleteFailed": "ထိုစကားဝိုင်းကို ဖျက်၍မရပါ။"+ "deleteFailed": "ထိုစကားဝိုင်းကို ဖျက်၍မရပါ။",+ "actions": "စကားဝိုင်း လုပ်ဆောင်ချက်များ",+ "newChat": "ချတ်အသစ်"},"embeddings": {"title": "မော်ဒယ်များ",diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex abbfa484..2b0caef3 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} समर्थित छैन। छवि (PNG, JPEG, WebP, GIF) वा पाठ फाइलहरू (TXT, MD, CSV, JSON, LOG) संलग्न गर्नुहोस्।","attachFailed": "{name} पढ्न सकिएन।","noVisionBadge": "छवि छैन",- "visionWarning": "{model} ले छवि स्वीकार गर्दैन। छवि स्वीकार गर्ने मोडेल वा स्वत: छान्नुहोस्।"+ "visionWarning": "{model} ले छवि स्वीकार गर्दैन। छवि स्वीकार गर्ने मोडेल वा स्वत: छान्नुहोस्।",+ "dictate": "बोलेर लेख्नुहोस्",+ "dictationStop": "रेकर्डिङ रोक्नुहोस्",+ "dictationTranscribing": "लेखिँदैछ…",+ "dictationUnavailable": "बोलेर लेख्न अडियो मोडेल प्रदायकहरू थप्नुहोस्।",+ "dictationModel": "श्रुतलेखन मोडेल",+ "dictationFailed": "लेख्न असफल: {reason}",+ "artifactOpen": "पूर्वावलोकन खोल्नुहोस्",+ "artifactPreview": "पूर्वावलोकन",+ "artifactCode": "कोड",+ "artifactClose": "पूर्वावलोकन बन्द गर्नुहोस्",+ "artifactDownload": "डाउनलोड",+ "artifactReload": "पूर्वावलोकन पुनः लोड गर्नुहोस्",+ "artifactHtml": "HTML पृष्ठ",+ "artifactSvg": "SVG छवि",+ "artifactLines": "पङ्क्तिहरू",+ "artifactResize": "पूर्वावलोकनको आकार बदल्नुहोस्"},"playgroundSessions": {"heading": "कुराकानीहरू",@@ -885,7 +901,9 @@"daysAgo": "{count} दि. अघि","loadFailed": "त्यो कुराकानी खोल्न सकिएन।","renameFailed": "त्यो कुराकानीको नाम बदल्न सकिएन।",- "deleteFailed": "त्यो कुराकानी मेट्न सकिएन।"+ "deleteFailed": "त्यो कुराकानी मेट्न सकिएन।",+ "actions": "वार्तालाप कार्यहरू",+ "newChat": "नयाँ च्याट"},"embeddings": {"title": "नमूनाहरू",diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex ada40c67..2b930ff4 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} wordt niet ondersteund. Voeg afbeeldingen (PNG, JPEG, WebP, GIF) of tekstbestanden (TXT, MD, CSV, JSON, LOG) toe.","attachFailed": "Kan {name} niet lezen.","noVisionBadge": "Geen afbeeldingen",- "visionWarning": "{model} accepteert geen afbeeldingen. Kies een model met beeldinvoer of Auto."+ "visionWarning": "{model} accepteert geen afbeeldingen. Kies een model met beeldinvoer of Auto.",+ "dictate": "Dicteren",+ "dictationStop": "Opname stoppen",+ "dictationTranscribing": "Transcriberen…",+ "dictationUnavailable": "Voeg providers voor audiomodellen toe om dicteren te gebruiken.",+ "dictationModel": "Dicteermodel",+ "dictationFailed": "Transcriptie mislukt: {reason}",+ "artifactOpen": "Voorbeeld openen",+ "artifactPreview": "Voorbeeld",+ "artifactCode": "Code",+ "artifactClose": "Voorbeeld sluiten",+ "artifactDownload": "Downloaden",+ "artifactReload": "Voorbeeld herladen",+ "artifactHtml": "HTML-pagina",+ "artifactSvg": "SVG-afbeelding",+ "artifactLines": "regels",+ "artifactResize": "Voorbeeld vergroten of verkleinen"},"playgroundSessions": {"heading": "Gesprekken",@@ -885,7 +901,9 @@"daysAgo": "{count} d geleden","loadFailed": "Kan dat gesprek niet openen.","renameFailed": "Kan de naam van dat gesprek niet wijzigen.",- "deleteFailed": "Kan dat gesprek niet verwijderen."+ "deleteFailed": "Kan dat gesprek niet verwijderen.",+ "actions": "Gespreksacties",+ "newChat": "Nieuwe chat"},"embeddings": {"title": "Modellen",diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex 61c59f40..ba04fcc3 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} støttes ikke. Legg ved bilder (PNG, JPEG, WebP, GIF) eller tekstfiler (TXT, MD, CSV, JSON, LOG).","attachFailed": "Kunne ikke lese {name}.","noVisionBadge": "Ingen bilder",- "visionWarning": "{model} godtar ikke bilder. Velg en modell med bildeinput eller Auto."+ "visionWarning": "{model} godtar ikke bilder. Velg en modell med bildeinput eller Auto.",+ "dictate": "Dikter",+ "dictationStop": "Stopp opptak",+ "dictationTranscribing": "Transkriberer…",+ "dictationUnavailable": "Legg til leverandører av lydmodeller for å kunne diktere.",+ "dictationModel": "Dikteringsmodell",+ "dictationFailed": "Transkripsjon mislyktes: {reason}",+ "artifactOpen": "Åpne forhåndsvisning",+ "artifactPreview": "Forhåndsvisning",+ "artifactCode": "Kode",+ "artifactClose": "Lukk forhåndsvisning",+ "artifactDownload": "Last ned",+ "artifactReload": "Last inn forhåndsvisningen på nytt",+ "artifactHtml": "HTML-side",+ "artifactSvg": "SVG-bilde",+ "artifactLines": "linjer",+ "artifactResize": "Endre størrelse på forhåndsvisning"},"playgroundSessions": {"heading": "Samtaler",@@ -885,7 +901,9 @@"daysAgo": "for {count} d siden","loadFailed": "Kunne ikke åpne den samtalen.","renameFailed": "Kunne ikke gi den samtalen nytt navn.",- "deleteFailed": "Kunne ikke slette den samtalen."+ "deleteFailed": "Kunne ikke slette den samtalen.",+ "actions": "Samtalehandlinger",+ "newChat": "Ny chat"},"embeddings": {"title": "Modeller",diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex e6f37993..50f38ab1 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} ସମର୍ଥିତ ନୁହେଁ। ଚିତ୍ର (PNG, JPEG, WebP, GIF) କିମ୍ୱା ଟେକ୍ସଟ୍ ଫାଇଲ (TXT, MD, CSV, JSON, LOG) ସଂଲଗ୍ନ କରନ୍ତୁ।","attachFailed": "{name} ପଢ଼ି ହେଲା ନାହିଁ।","noVisionBadge": "ଚିତ୍ର ନାହିଁ",- "visionWarning": "{model} ଚିତ୍ର ଗ୍ରହଣ କରେ ନାହିଁ। ଫଟୋ ଇନପୁଟ୍ ସ୍ଵୀକାର କରୁଥିବା ମଡେଲ୍ କିମ୍ୱା ସ୍ଵତଃ ଚୟନ କରନ୍ତୁ।"+ "visionWarning": "{model} ଚିତ୍ର ଗ୍ରହଣ କରେ ନାହିଁ। ଫଟୋ ଇନପୁଟ୍ ସ୍ଵୀକାର କରୁଥିବା ମଡେଲ୍ କିମ୍ୱା ସ୍ଵତଃ ଚୟନ କରନ୍ତୁ।",+ "dictate": "କହି ଲେଖନ୍ତୁ",+ "dictationStop": "ରେକର୍ଡିଂ ବନ୍ଦ କରନ୍ତୁ",+ "dictationTranscribing": "ଲେଖା ହେଉଛି…",+ "dictationUnavailable": "କହି ଲେଖିବା ପାଇଁ ଅଡିଓ ମଡେଲ ପ୍ରଦାନକାରୀ ଯୋଡ଼ନ୍ତୁ।",+ "dictationModel": "ଶ୍ରୁତଲେଖ ମଡେଲ",+ "dictationFailed": "ଲେଖା ବିଫଳ: {reason}",+ "artifactOpen": "ପ୍ରିଭ୍ୟୁ ଖୋଲନ୍ତୁ",+ "artifactPreview": "ପ୍ରିଭ୍ୟୁ",+ "artifactCode": "କୋଡ୍",+ "artifactClose": "ପ୍ରିଭ୍ୟୁ ବନ୍ଦ କରନ୍ତୁ",+ "artifactDownload": "ଡାଉନଲୋଡ୍",+ "artifactReload": "ପ୍ରିଭ୍ୟୁ ପୁନଃ ଲୋଡ୍ କରନ୍ତୁ",+ "artifactHtml": "HTML ପୃଷ୍ଠା",+ "artifactSvg": "SVG ଛବି",+ "artifactLines": "ଧାଡ଼ି",+ "artifactResize": "ପ୍ରିଭ୍ୟୁ ଆକାର ବଦଳାନ୍ତୁ"},"playgroundSessions": {"heading": "ବାର୍ତ୍ତାଳାପ",@@ -885,7 +901,9 @@"daysAgo": "{count} ଦିନ ପୂର୍ବେ","loadFailed": "ସେହି ବାର୍ତ୍ତାଳାପ ଖୋଲାଯାଇପାରିଲା ନାହିଁ।","renameFailed": "ସେହି ବାର୍ତ୍ତାଳାପର ନାମ ବଦଳାଯାଇପାରିଲା ନାହିଁ।",- "deleteFailed": "ସେହି ବାର୍ତ୍ତାଳାପ ବିଲୋପ କରାଯାଇପାରିଲା ନାହିଁ।"+ "deleteFailed": "ସେହି ବାର୍ତ୍ତାଳାପ ବିଲୋପ କରାଯାଇପାରିଲା ନାହିଁ।",+ "actions": "ବାର୍ତ୍ତାଳାପ କାର୍ଯ୍ୟ",+ "newChat": "ନୂଆ ଚାଟ୍"},"embeddings": {"title": "ମଡେଲଗୁଡିକ",diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex 37bd294c..65836bcf 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} ਸਮਰਥਿਤ ਨਹੀਂ ਹੈ। ਚਿੱਤਰ (PNG, JPEG, WebP, GIF) ਜਾਂ ਟੈਕਸਟ ਫਾਈਲਾਂ (TXT, MD, CSV, JSON, LOG) ਨੱਥੀ ਕਰੋ।","attachFailed": "{name} ਪੜ੍ਹਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ।","noVisionBadge": "ਚਿੱਤਰ ਨਹੀਂ",- "visionWarning": "{model} ਚਿੱਤਰ ਸਵੀਕਾਰ ਨਹੀਂ ਕਰਦਾ। ਚਿੱਤਰ ਇੰਪੁੱਟ ਸਵੀਕਾਰ ਕਰਨ ਵਾਲਾ ਮਾਡਲ ਜਾਂ ਆਟੋ ਚੁਣੋ।"+ "visionWarning": "{model} ਚਿੱਤਰ ਸਵੀਕਾਰ ਨਹੀਂ ਕਰਦਾ। ਚਿੱਤਰ ਇੰਪੁੱਟ ਸਵੀਕਾਰ ਕਰਨ ਵਾਲਾ ਮਾਡਲ ਜਾਂ ਆਟੋ ਚੁਣੋ।",+ "dictate": "ਬੋਲ ਕੇ ਲਿਖੋ",+ "dictationStop": "ਰਿਕਾਰਡਿੰਗ ਰੋਕੋ",+ "dictationTranscribing": "ਲਿਖਿਆ ਜਾ ਰਿਹਾ ਹੈ…",+ "dictationUnavailable": "ਬੋਲ ਕੇ ਲਿਖਣ ਲਈ ਆਡੀਓ ਮਾਡਲ ਪ੍ਰਦਾਤਾ ਸ਼ਾਮਲ ਕਰੋ।",+ "dictationModel": "ਬੋਲ ਕੇ ਲਿਖਣ ਦਾ ਮਾਡਲ",+ "dictationFailed": "ਲਿਖਣਾ ਅਸਫਲ: {reason}",+ "artifactOpen": "ਪੂਰਵਦਰਸ਼ਨ ਖੋਲ੍ਹੋ",+ "artifactPreview": "ਪੂਰਵਦਰਸ਼ਨ",+ "artifactCode": "ਕੋਡ",+ "artifactClose": "ਪੂਰਵਦਰਸ਼ਨ ਬੰਦ ਕਰੋ",+ "artifactDownload": "ਡਾਊਨਲੋਡ",+ "artifactReload": "ਪੂਰਵਦਰਸ਼ਨ ਮੁੜ ਲੋਡ ਕਰੋ",+ "artifactHtml": "HTML ਪੰਨਾ",+ "artifactSvg": "SVG ਤਸਵੀਰ",+ "artifactLines": "ਲਾਈਨਾਂ",+ "artifactResize": "ਪੂਰਵਦਰਸ਼ਨ ਦਾ ਆਕਾਰ ਬਦਲੋ"},"playgroundSessions": {"heading": "ਗੱਲਬਾਤ",@@ -885,7 +901,9 @@"daysAgo": "{count} ਦਿਨ ਪਹਿਲਾਂ","loadFailed": "ਉਹ ਗੱਲਬਾਤ ਨਹੀਂ ਖੋਲ੍ਹੀ ਜਾ ਸਕੀ।","renameFailed": "ਉਸ ਗੱਲਬਾਤ ਦਾ ਨਾਂ ਨਹੀਂ ਬਦਲਿਆ ਜਾ ਸਕਿਆ।",- "deleteFailed": "ਉਹ ਗੱਲਬਾਤ ਮਿਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ।"+ "deleteFailed": "ਉਹ ਗੱਲਬਾਤ ਮਿਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ।",+ "actions": "ਗੱਲਬਾਤ ਕਾਰਵਾਈਆਂ",+ "newChat": "ਨਵੀਂ ਚੈਟ"},"embeddings": {"title": "ਮਾਡਲ",diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex 5acf7858..1bf2f8b9 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} nie jest obsługiwany. Załącz obrazy (PNG, JPEG, WebP, GIF) lub pliki tekstowe (TXT, MD, CSV, JSON, LOG).","attachFailed": "Nie udało się odczytać pliku {name}.","noVisionBadge": "Bez obrazów",- "visionWarning": "{model} nie przyjmuje obrazów. Wybierz model obsługujący obrazy lub Auto."+ "visionWarning": "{model} nie przyjmuje obrazów. Wybierz model obsługujący obrazy lub Auto.",+ "dictate": "Dyktuj",+ "dictationStop": "Zatrzymaj nagrywanie",+ "dictationTranscribing": "Transkrypcja…",+ "dictationUnavailable": "Dodaj dostawców modeli audio, aby korzystać z dyktowania.",+ "dictationModel": "Model dyktowania",+ "dictationFailed": "Transkrypcja nie powiodła się: {reason}",+ "artifactOpen": "Otwórz podgląd",+ "artifactPreview": "Podgląd",+ "artifactCode": "Kod",+ "artifactClose": "Zamknij podgląd",+ "artifactDownload": "Pobierz",+ "artifactReload": "Odśwież podgląd",+ "artifactHtml": "Strona HTML",+ "artifactSvg": "Obraz SVG",+ "artifactLines": "wierszy",+ "artifactResize": "Zmień rozmiar podglądu"},"playgroundSessions": {"heading": "Rozmowy",@@ -885,7 +901,9 @@"daysAgo": "{count} dni temu","loadFailed": "Nie udało się otworzyć tej rozmowy.","renameFailed": "Nie udało się zmienić nazwy tej rozmowy.",- "deleteFailed": "Nie udało się usunąć tej rozmowy."+ "deleteFailed": "Nie udało się usunąć tej rozmowy.",+ "actions": "Akcje rozmowy",+ "newChat": "Nowy czat"},"embeddings": {"title": "Modele",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex 06f03a6b..6b0563c9 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} não é compatível. Anexe imagens (PNG, JPEG, WebP, GIF) ou arquivos de texto (TXT, MD, CSV, JSON, LOG).","attachFailed": "Não foi possível ler {name}.","noVisionBadge": "Sem imagens",- "visionWarning": "{model} não aceita imagens. Escolha um modelo de visão ou Auto."+ "visionWarning": "{model} não aceita imagens. Escolha um modelo de visão ou Auto.",+ "dictate": "Ditar",+ "dictationStop": "Parar gravação",+ "dictationTranscribing": "Transcrevendo…",+ "dictationUnavailable": "Adicione provedores de modelos de áudio para usar o ditado.",+ "dictationModel": "Modelo de ditado",+ "dictationFailed": "Falha na transcrição: {reason}",+ "artifactOpen": "Abrir prévia",+ "artifactPreview": "Prévia",+ "artifactCode": "Código",+ "artifactClose": "Fechar prévia",+ "artifactDownload": "Baixar",+ "artifactReload": "Recarregar prévia",+ "artifactHtml": "Página HTML",+ "artifactSvg": "Imagem SVG",+ "artifactLines": "linhas",+ "artifactResize": "Redimensionar prévia"},"playgroundSessions": {"heading": "Conversas",@@ -885,7 +901,9 @@"daysAgo": "há {count} d","loadFailed": "Não foi possível abrir essa conversa.","renameFailed": "Não foi possível renomear essa conversa.",- "deleteFailed": "Não foi possível excluir essa conversa."+ "deleteFailed": "Não foi possível excluir essa conversa.",+ "actions": "Ações da conversa",+ "newChat": "Novo chat"},"embeddings": {"title": "Modelos",diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 4ed47c48..8260835d 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} não é suportado. Anexe imagens (PNG, JPEG, WebP, GIF) ou ficheiros de texto (TXT, MD, CSV, JSON, LOG).","attachFailed": "Não foi possível ler {name}.","noVisionBadge": "Sem imagens",- "visionWarning": "{model} não aceita imagens. Escolha um modelo de visão ou Auto."+ "visionWarning": "{model} não aceita imagens. Escolha um modelo de visão ou Auto.",+ "dictate": "Ditar",+ "dictationStop": "Parar gravação",+ "dictationTranscribing": "A transcrever…",+ "dictationUnavailable": "Adicione fornecedores de modelos de áudio para poder usar o ditado.",+ "dictationModel": "Modelo de ditado",+ "dictationFailed": "Falha na transcrição: {reason}",+ "artifactOpen": "Abrir pré-visualização",+ "artifactPreview": "Pré-visualização",+ "artifactCode": "Código",+ "artifactClose": "Fechar pré-visualização",+ "artifactDownload": "Transferir",+ "artifactReload": "Recarregar pré-visualização",+ "artifactHtml": "Página HTML",+ "artifactSvg": "Imagem SVG",+ "artifactLines": "linhas",+ "artifactResize": "Redimensionar pré-visualização"},"playgroundSessions": {"heading": "Conversas",@@ -885,7 +901,9 @@"daysAgo": "há {count} d","loadFailed": "Não foi possível abrir essa conversa.","renameFailed": "Não foi possível mudar o nome dessa conversa.",- "deleteFailed": "Não foi possível eliminar essa conversa."+ "deleteFailed": "Não foi possível eliminar essa conversa.",+ "actions": "Ações da conversa",+ "newChat": "Nova conversa"},"embeddings": {"title": "Modelos",diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex 71828992..9315fde4 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} nu este acceptat. Atașează imagini (PNG, JPEG, WebP, GIF) sau fișiere text (TXT, MD, CSV, JSON, LOG).","attachFailed": "Nu s-a putut citi {name}.","noVisionBadge": "Fără imagini",- "visionWarning": "{model} nu acceptă imagini. Alege un model cu suport pentru imagini sau Auto."+ "visionWarning": "{model} nu acceptă imagini. Alege un model cu suport pentru imagini sau Auto.",+ "dictate": "Dictează",+ "dictationStop": "Oprește înregistrarea",+ "dictationTranscribing": "Se transcrie…",+ "dictationUnavailable": "Adaugă furnizori de modele audio pentru a putea folosi dictarea.",+ "dictationModel": "Model de dictare",+ "dictationFailed": "Transcrierea a eșuat: {reason}",+ "artifactOpen": "Deschide previzualizarea",+ "artifactPreview": "Previzualizare",+ "artifactCode": "Cod",+ "artifactClose": "Închide previzualizarea",+ "artifactDownload": "Descarcă",+ "artifactReload": "Reîncarcă previzualizarea",+ "artifactHtml": "Pagină HTML",+ "artifactSvg": "Imagine SVG",+ "artifactLines": "linii",+ "artifactResize": "Redimensionează previzualizarea"},"playgroundSessions": {"heading": "Conversații",@@ -885,7 +901,9 @@"daysAgo": "acum {count} z","loadFailed": "Nu s-a putut deschide acea conversație.","renameFailed": "Nu s-a putut redenumi acea conversație.",- "deleteFailed": "Nu s-a putut șterge acea conversație."+ "deleteFailed": "Nu s-a putut șterge acea conversație.",+ "actions": "Acțiuni conversație",+ "newChat": "Chat nou"},"embeddings": {"title": "Modele",diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex 4eb28224..b6da3422 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} не поддерживается. Прикрепите изображения (PNG, JPEG, WebP, GIF) или текстовые файлы (TXT, MD, CSV, JSON, LOG).","attachFailed": "Не удалось прочитать {name}.","noVisionBadge": "Без изображений",- "visionWarning": "{model} не принимает изображения. Выберите модель с поддержкой изображений или «Авто»."+ "visionWarning": "{model} не принимает изображения. Выберите модель с поддержкой изображений или «Авто».",+ "dictate": "Диктовать",+ "dictationStop": "Остановить запись",+ "dictationTranscribing": "Расшифровка…",+ "dictationUnavailable": "Добавьте провайдеров аудиомоделей, чтобы использовать диктовку.",+ "dictationModel": "Модель диктовки",+ "dictationFailed": "Ошибка расшифровки: {reason}",+ "artifactOpen": "Открыть предпросмотр",+ "artifactPreview": "Предпросмотр",+ "artifactCode": "Код",+ "artifactClose": "Закрыть предпросмотр",+ "artifactDownload": "Скачать",+ "artifactReload": "Обновить предпросмотр",+ "artifactHtml": "HTML-страница",+ "artifactSvg": "SVG-изображение",+ "artifactLines": "строк",+ "artifactResize": "Изменить размер предпросмотра"},"playgroundSessions": {"heading": "Чаты",@@ -885,7 +901,9 @@"daysAgo": "{count} дн. назад","loadFailed": "Не удалось открыть этот чат.","renameFailed": "Не удалось переименовать этот чат.",- "deleteFailed": "Не удалось удалить этот чат."+ "deleteFailed": "Не удалось удалить этот чат.",+ "actions": "Действия с беседой",+ "newChat": "Новый чат"},"embeddings": {"title": "Модели",diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex f11e7918..933c3c47 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} සඳහා සහාය නොදක්වයි. රූප (PNG, JPEG, WebP, GIF) හෝ පෙළ ගොනු (TXT, MD, CSV, JSON, LOG) අමුණන්න.","attachFailed": "{name} කියවිය නොහැකි විය.","noVisionBadge": "රූප නැත",- "visionWarning": "{model} රූප පිළිගන්නේ නැත. රූප පිළිගන්නා ආකෘතියක් හෝ ස්වයංක්රීය තෝරන්න."+ "visionWarning": "{model} රූප පිළිගන්නේ නැත. රූප පිළිගන්නා ආකෘතියක් හෝ ස්වයංක්රීය තෝරන්න.",+ "dictate": "කියා ලියන්න",+ "dictationStop": "පටිගත කිරීම නවත්වන්න",+ "dictationTranscribing": "ලියමින්…",+ "dictationUnavailable": "කියා ලිවීම භාවිතයට ශ්රව්ය මාදිලි සපයන්නන් එක් කරන්න.",+ "dictationModel": "කියා ලිවීමේ මාදිලිය",+ "dictationFailed": "ලිවීම අසාර්ථකයි: {reason}",+ "artifactOpen": "පෙරදසුන විවෘත කරන්න",+ "artifactPreview": "පෙරදසුන",+ "artifactCode": "කේතය",+ "artifactClose": "පෙරදසුන වසන්න",+ "artifactDownload": "බාගන්න",+ "artifactReload": "පෙරදසුන නැවත පූරණය කරන්න",+ "artifactHtml": "HTML පිටුව",+ "artifactSvg": "SVG රූපය",+ "artifactLines": "පේළි",+ "artifactResize": "පෙරදසුනේ ප්රමාණය වෙනස් කරන්න"},"playgroundSessions": {"heading": "සංවාද",@@ -885,7 +901,9 @@"daysAgo": "දින {count} පෙර","loadFailed": "එම සංවාදය විවෘත කළ නොහැකි විය.","renameFailed": "එම සංවාදයේ නම වෙනස් කළ නොහැකි විය.",- "deleteFailed": "එම සංවාදය මැකිය නොහැකි විය."+ "deleteFailed": "එම සංවාදය මැකිය නොහැකි විය.",+ "actions": "සංවාද ක්රියා",+ "newChat": "නව කතාබහ"},"embeddings": {"title": "ආකෘති",diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex 7632f3f0..5d0b1d57 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -867,7 +867,23 @@"attachUnsupported": "Súbor {name} nie je podporovaný. Priložte obrázky (PNG, JPEG, WebP, GIF) alebo textové súbory (TXT, MD, CSV, JSON, LOG).","attachFailed": "Súbor {name} sa nepodarilo prečítať.","noVisionBadge": "Bez obrázkov",- "visionWarning": "Model {model} neprijíma obrázky. Vyberte model s podporou obrázkov alebo Auto."+ "visionWarning": "Model {model} neprijíma obrázky. Vyberte model s podporou obrázkov alebo Auto.",+ "dictate": "Diktovať",+ "dictationStop": "Zastaviť nahrávanie",+ "dictationTranscribing": "Prepisuje sa…",+ "dictationUnavailable": "Pridajte poskytovateľov audio modelov, aby ste mohli diktovať.",+ "dictationModel": "Model diktovania",+ "dictationFailed": "Prepis zlyhal: {reason}",+ "artifactOpen": "Otvoriť náhľad",+ "artifactPreview": "Náhľad",+ "artifactCode": "Kód",+ "artifactClose": "Zavrieť náhľad",+ "artifactDownload": "Stiahnuť",+ "artifactReload": "Obnoviť náhľad",+ "artifactHtml": "HTML stránka",+ "artifactSvg": "SVG obrázok",+ "artifactLines": "riadkov",+ "artifactResize": "Zmeniť veľkosť náhľadu"},"playgroundSessions": {"heading": "Konverzácie",@@ -885,7 +901,9 @@"daysAgo": "pred {count} dňami","loadFailed": "Konverzáciu sa nepodarilo otvoriť.","renameFailed": "Konverzáciu sa nepodarilo premenovať.",- "deleteFailed": "Konverzáciu sa nepodarilo vymazať."+ "deleteFailed": "Konverzáciu sa nepodarilo vymazať.",+ "actions": "Akcie konverzácie",+ "newChat": "Nový chat"},"embeddings": {"title": "Modely",diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex dafe8ebd..4695e93c 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -867,7 +867,23 @@"attachUnsupported": "Датотека {name} није подржана. Приложите слике (PNG, JPEG, WebP, GIF) или текстуалне датотеке (TXT, MD, CSV, JSON, LOG).","attachFailed": "Није могуће прочитати датотеку {name}.","noVisionBadge": "Без слика",- "visionWarning": "Модел {model} не прихвата слике. Изаберите модел са визијом или Ауто."+ "visionWarning": "Модел {model} не прихвата слике. Изаберите модел са визијом или Ауто.",+ "dictate": "Диктирај",+ "dictationStop": "Заустави снимање",+ "dictationTranscribing": "Транскрибовање…",+ "dictationUnavailable": "Додајте провајдере аудио модела да бисте могли да диктирате.",+ "dictationModel": "Модел диктирања",+ "dictationFailed": "Транскрипција није успела: {reason}",+ "artifactOpen": "Отвори преглед",+ "artifactPreview": "Преглед",+ "artifactCode": "Код",+ "artifactClose": "Затвори преглед",+ "artifactDownload": "Преузми",+ "artifactReload": "Поново учитај преглед",+ "artifactHtml": "HTML страница",+ "artifactSvg": "SVG слика",+ "artifactLines": "редова",+ "artifactResize": "Промени величину прегледа"},"playgroundSessions": {"heading": "Разговори",@@ -885,7 +901,9 @@"daysAgo": "пре {count} д","loadFailed": "Није могуће отворити тај разговор.","renameFailed": "Није могуће преименовати тај разговор.",- "deleteFailed": "Није могуће избрисати тај разговор."+ "deleteFailed": "Није могуће избрисати тај разговор.",+ "actions": "Радње разговора",+ "newChat": "Нови разговор"},"embeddings": {"title": "Модели",diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex a39ef3da..bba8a348 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} stöds inte. Bifoga bilder (PNG, JPEG, WebP, GIF) eller textfiler (TXT, MD, CSV, JSON, LOG).","attachFailed": "Kunde inte läsa {name}.","noVisionBadge": "Inga bilder",- "visionWarning": "{model} accepterar inte bilder. Välj en modell med bildstöd eller Auto."+ "visionWarning": "{model} accepterar inte bilder. Välj en modell med bildstöd eller Auto.",+ "dictate": "Diktera",+ "dictationStop": "Stoppa inspelning",+ "dictationTranscribing": "Transkriberar…",+ "dictationUnavailable": "Lägg till leverantörer för ljudmodeller för att kunna diktera.",+ "dictationModel": "Dikteringsmodell",+ "dictationFailed": "Transkriberingen misslyckades: {reason}",+ "artifactOpen": "Öppna förhandsvisning",+ "artifactPreview": "Förhandsvisning",+ "artifactCode": "Kod",+ "artifactClose": "Stäng förhandsvisning",+ "artifactDownload": "Ladda ned",+ "artifactReload": "Läs in förhandsvisningen igen",+ "artifactHtml": "HTML-sida",+ "artifactSvg": "SVG-bild",+ "artifactLines": "rader",+ "artifactResize": "Ändra storlek på förhandsvisning"},"playgroundSessions": {"heading": "Konversationer",@@ -885,7 +901,9 @@"daysAgo": "{count} d sedan","loadFailed": "Det gick inte att öppna den konversationen.","renameFailed": "Det gick inte att byta namn på den konversationen.",- "deleteFailed": "Det gick inte att radera den konversationen."+ "deleteFailed": "Det gick inte att radera den konversationen.",+ "actions": "Samtalsåtgärder",+ "newChat": "Ny chatt"},"embeddings": {"title": "Modeller",diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 946852c9..cf41b122 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} haitumiki. Ambatisha picha (PNG, JPEG, WebP, GIF) au faili za maandishi (TXT, MD, CSV, JSON, LOG).","attachFailed": "Imeshindwa kusoma {name}.","noVisionBadge": "Hakuna picha",- "visionWarning": "{model} haikubali picha. Chagua muundo wa maono au Otomatiki."+ "visionWarning": "{model} haikubali picha. Chagua muundo wa maono au Otomatiki.",+ "dictate": "Sema uandikishe",+ "dictationStop": "Simamisha kurekodi",+ "dictationTranscribing": "Inanukuu…",+ "dictationUnavailable": "Ongeza watoa huduma wa miundo ya sauti ili kutumia kusema uandikishe.",+ "dictationModel": "Muundo wa kusema uandikishe",+ "dictationFailed": "Unukuzi umeshindwa: {reason}",+ "artifactOpen": "Fungua onyesho la kukagua",+ "artifactPreview": "Onyesho la kukagua",+ "artifactCode": "Msimbo",+ "artifactClose": "Funga onyesho la kukagua",+ "artifactDownload": "Pakua",+ "artifactReload": "Pakia upya onyesho",+ "artifactHtml": "Ukurasa wa HTML",+ "artifactSvg": "Picha ya SVG",+ "artifactLines": "mistari",+ "artifactResize": "Badilisha ukubwa wa onyesho"},"playgroundSessions": {"heading": "Mazungumzo",@@ -885,7 +901,9 @@"daysAgo": "siku {count} zilizopita","loadFailed": "Imeshindwa kufungua mazungumzo hayo.","renameFailed": "Imeshindwa kubadilisha jina la mazungumzo hayo.",- "deleteFailed": "Imeshindwa kufuta mazungumzo hayo."+ "deleteFailed": "Imeshindwa kufuta mazungumzo hayo.",+ "actions": "Vitendo vya mazungumzo",+ "newChat": "Gumzo jipya"},"embeddings": {"title": "Mifano",diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex 3cba155c..a7bb7633 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} ஆதரிக்கப்படவில்லை. படங்களை (PNG, JPEG, WebP, GIF) அல்லது உரைக் கோப்புகளை (TXT, MD, CSV, JSON, LOG) இணைக்கவும்.","attachFailed": "{name} ஐப் படிக்க முடியவில்லை.","noVisionBadge": "படங்கள் இல்லை",- "visionWarning": "{model} படங்களை ஏற்காது. பட உள்ளீட்டை ஏற்கும் மாதிரியை அல்லது ஆட்டோ என்பதைத் தேர்ந்தெடுக்கவும்."+ "visionWarning": "{model} படங்களை ஏற்காது. பட உள்ளீட்டை ஏற்கும் மாதிரியை அல்லது ஆட்டோ என்பதைத் தேர்ந்தெடுக்கவும்.",+ "dictate": "பேசி எழுதுங்கள்",+ "dictationStop": "பதிவை நிறுத்து",+ "dictationTranscribing": "எழுத்தாக்கம்…",+ "dictationUnavailable": "பேசி எழுத ஆடியோ மாதிரி வழங்குநர்களைச் சேர்க்கவும்.",+ "dictationModel": "பேச்சு எழுத்தாக்க மாதிரி",+ "dictationFailed": "எழுத்தாக்கம் தோல்வி: {reason}",+ "artifactOpen": "முன்னோட்டத்தைத் திற",+ "artifactPreview": "முன்னோட்டம்",+ "artifactCode": "குறியீடு",+ "artifactClose": "முன்னோட்டத்தை மூடு",+ "artifactDownload": "பதிவிறக்கு",+ "artifactReload": "முன்னோட்டத்தை மீண்டும் ஏற்று",+ "artifactHtml": "HTML பக்கம்",+ "artifactSvg": "SVG படம்",+ "artifactLines": "வரிகள்",+ "artifactResize": "முன்னோட்ட அளவை மாற்று"},"playgroundSessions": {"heading": "உரையாடல்கள்",@@ -885,7 +901,9 @@"daysAgo": "{count} நாள் முன்","loadFailed": "அந்த உரையாடலைத் திறக்க முடியவில்லை.","renameFailed": "அந்த உரையாடலுக்கு மறுபெயரிட முடியவில்லை.",- "deleteFailed": "அந்த உரையாடலை நீக்க முடியவில்லை."+ "deleteFailed": "அந்த உரையாடலை நீக்க முடியவில்லை.",+ "actions": "உரையாடல் செயல்கள்",+ "newChat": "புதிய அரட்டை"},"embeddings": {"title": "மாதிரிகள்",diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex aef6906f..2f37ed9d 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} మద్దతు లేదు. చిత్రాలను (PNG, JPEG, WebP, GIF) లేదా టెక్స్ట్ ఫైల్లను (TXT, MD, CSV, JSON, LOG) జోడించండి.","attachFailed": "{name} చదవడం సాధ్యం కాలేదు.","noVisionBadge": "చిత్రాలు లేవు",- "visionWarning": "{model} చిత్రాలను అంగీకరించదు. చిత్రాలకు మద్దతిచ్చే మోడల్ని లేదా ఆటో ఎంచుకోండి."+ "visionWarning": "{model} చిత్రాలను అంగీకరించదు. చిత్రాలకు మద్దతిచ్చే మోడల్ని లేదా ఆటో ఎంచుకోండి.",+ "dictate": "మాటల్లో చెప్పండి",+ "dictationStop": "రికార్డింగ్ ఆపు",+ "dictationTranscribing": "లిఖితం చేస్తోంది…",+ "dictationUnavailable": "డిక్టేషన్ ఉపయోగించడానికి ఆడియో మోడల్ ప్రొవైడర్లను జోడించండి.",+ "dictationModel": "డిక్టేషన్ మోడల్",+ "dictationFailed": "లిఖితం విఫలమైంది: {reason}",+ "artifactOpen": "ప్రివ్యూ తెరువు",+ "artifactPreview": "ప్రివ్యూ",+ "artifactCode": "కోడ్",+ "artifactClose": "ప్రివ్యూ మూసివేయి",+ "artifactDownload": "డౌన్లోడ్",+ "artifactReload": "ప్రివ్యూ మళ్లీ లోడ్ చేయి",+ "artifactHtml": "HTML పేజీ",+ "artifactSvg": "SVG చిత్రం",+ "artifactLines": "పంక్తులు",+ "artifactResize": "ప్రివ్యూ పరిమాణం మార్చు"},"playgroundSessions": {"heading": "సంభాషణలు",@@ -885,7 +901,9 @@"daysAgo": "{count} రోజుల క్రితం","loadFailed": "ఆ సంభాషణను తెరవడం సాధ్యం కాలేదు.","renameFailed": "ఆ సంభాషణ పేరును మార్చడం సాధ్యం కాలేదు.",- "deleteFailed": "ఆ సంభాషణను తొలగించడం సాధ్యం కాలేదు."+ "deleteFailed": "ఆ సంభాషణను తొలగించడం సాధ్యం కాలేదు.",+ "actions": "సంభాషణ చర్యలు",+ "newChat": "కొత్త చాట్"},"embeddings": {"title": "మోడల్స్",diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex 4276bed0..eb3eee28 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} ไม่รองรับ กรุณาแนบรูปภาพ (PNG, JPEG, WebP, GIF) หรือไฟล์ข้อความ (TXT, MD, CSV, JSON, LOG)","attachFailed": "ไม่สามารถอ่าน {name} ได้","noVisionBadge": "ไม่รับรูปภาพ",- "visionWarning": "{model} ไม่รองรับรูปภาพ เลือกโมเดลที่รองรับรูปภาพหรืออัตโนมัติ"+ "visionWarning": "{model} ไม่รองรับรูปภาพ เลือกโมเดลที่รองรับรูปภาพหรืออัตโนมัติ",+ "dictate": "พูดเพื่อพิมพ์",+ "dictationStop": "หยุดบันทึก",+ "dictationTranscribing": "กำลังถอดเสียง…",+ "dictationUnavailable": "เพิ่มผู้ให้บริการโมเดลเสียงเพื่อใช้การพูดเพื่อพิมพ์",+ "dictationModel": "โมเดลพูดเพื่อพิมพ์",+ "dictationFailed": "ถอดเสียงไม่สำเร็จ: {reason}",+ "artifactOpen": "เปิดตัวอย่าง",+ "artifactPreview": "ตัวอย่าง",+ "artifactCode": "โค้ด",+ "artifactClose": "ปิดตัวอย่าง",+ "artifactDownload": "ดาวน์โหลด",+ "artifactReload": "โหลดตัวอย่างใหม่",+ "artifactHtml": "หน้า HTML",+ "artifactSvg": "ภาพ SVG",+ "artifactLines": "บรรทัด",+ "artifactResize": "ปรับขนาดตัวอย่าง"},"playgroundSessions": {"heading": "บทสนทนา",@@ -885,7 +901,9 @@"daysAgo": "{count} วันที่แล้ว","loadFailed": "ไม่สามารถเปิดบทสนทนานั้นได้","renameFailed": "ไม่สามารถเปลี่ยนชื่อบทสนทนานั้นได้",- "deleteFailed": "ไม่สามารถลบบทสนทนานั้นได้"+ "deleteFailed": "ไม่สามารถลบบทสนทนานั้นได้",+ "actions": "การดำเนินการของการสนทนา",+ "newChat": "แชทใหม่"},"embeddings": {"title": "โมเดล",diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 226daf11..9d6a5d5f 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -867,7 +867,23 @@"attachUnsupported": "Hindi suportado ang {name}. Maglakip ng mga larawan (PNG, JPEG, WebP, GIF) o mga text file (TXT, MD, CSV, JSON, LOG).","attachFailed": "Hindi mabasa ang {name}.","noVisionBadge": "Walang larawan",- "visionWarning": "Hindi tumatanggap ng larawan ang {model}. Pumili ng modelong tumatanggap ng larawan o Auto."+ "visionWarning": "Hindi tumatanggap ng larawan ang {model}. Pumili ng modelong tumatanggap ng larawan o Auto.",+ "dictate": "Idikta",+ "dictationStop": "Ihinto ang pag-record",+ "dictationTranscribing": "Isinasalin sa teksto…",+ "dictationUnavailable": "Magdagdag ng mga provider ng audio model para magamit ang pagdidikta.",+ "dictationModel": "Modelo ng pagdidikta",+ "dictationFailed": "Nabigo ang transkripsyon: {reason}",+ "artifactOpen": "Buksan ang preview",+ "artifactPreview": "Preview",+ "artifactCode": "Code",+ "artifactClose": "Isara ang preview",+ "artifactDownload": "I-download",+ "artifactReload": "I-reload ang preview",+ "artifactHtml": "HTML page",+ "artifactSvg": "SVG image",+ "artifactLines": "linya",+ "artifactResize": "Baguhin ang laki ng preview"},"playgroundSessions": {"heading": "Mga usapan",@@ -885,7 +901,9 @@"daysAgo": "{count} araw nakalipas","loadFailed": "Hindi mabuksan ang usapang iyon.","renameFailed": "Hindi mapalitan ang pangalan ng usapang iyon.",- "deleteFailed": "Hindi matanggal ang usapang iyon."+ "deleteFailed": "Hindi matanggal ang usapang iyon.",+ "actions": "Mga aksyon sa usapan",+ "newChat": "Bagong chat"},"embeddings": {"title": "Mga Modelo",diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex cf45e32b..2d100fc2 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} desteklenmiyor. Görüntü (PNG, JPEG, WebP, GIF) veya metin dosyaları (TXT, MD, CSV, JSON, LOG) ekleyin.","attachFailed": "{name} okunamadı.","noVisionBadge": "Görüntü yok",- "visionWarning": "{model} görüntü kabul etmiyor. Görüntü destekleyen bir model veya Otomatik seçin."+ "visionWarning": "{model} görüntü kabul etmiyor. Görüntü destekleyen bir model veya Otomatik seçin.",+ "dictate": "Dikte et",+ "dictationStop": "Kaydı durdur",+ "dictationTranscribing": "Yazıya dökülüyor…",+ "dictationUnavailable": "Dikteyi kullanabilmek için ses modelleri sağlayıcıları ekleyin.",+ "dictationModel": "Dikte modeli",+ "dictationFailed": "Yazıya dökme başarısız: {reason}",+ "artifactOpen": "Önizlemeyi aç",+ "artifactPreview": "Önizleme",+ "artifactCode": "Kod",+ "artifactClose": "Önizlemeyi kapat",+ "artifactDownload": "İndir",+ "artifactReload": "Önizlemeyi yenile",+ "artifactHtml": "HTML sayfası",+ "artifactSvg": "SVG görseli",+ "artifactLines": "satır",+ "artifactResize": "Önizlemeyi yeniden boyutlandır"},"playgroundSessions": {"heading": "Sohbetler",@@ -885,7 +901,9 @@"daysAgo": "{count} gün önce","loadFailed": "Bu sohbet açılamadı.","renameFailed": "Bu sohbet yeniden adlandırılamadı.",- "deleteFailed": "Bu sohbet silinemedi."+ "deleteFailed": "Bu sohbet silinemedi.",+ "actions": "Sohbet işlemleri",+ "newChat": "Yeni sohbet"},"embeddings": {"title": "Modeller",diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex c41bad61..c25f73b0 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} не підтримується. Прикріпіть зображення (PNG, JPEG, WebP, GIF) або текстові файли (TXT, MD, CSV, JSON, LOG).","attachFailed": "Не вдалося прочитати {name}.","noVisionBadge": "Без зображень",- "visionWarning": "{model} не приймає зображення. Виберіть модель із підтримкою зображень або «Авто»."+ "visionWarning": "{model} не приймає зображення. Виберіть модель із підтримкою зображень або «Авто».",+ "dictate": "Диктувати",+ "dictationStop": "Зупинити запис",+ "dictationTranscribing": "Розшифрування…",+ "dictationUnavailable": "Додайте провайдерів аудіомоделей, щоб використовувати диктування.",+ "dictationModel": "Модель диктування",+ "dictationFailed": "Помилка розшифрування: {reason}",+ "artifactOpen": "Відкрити перегляд",+ "artifactPreview": "Перегляд",+ "artifactCode": "Код",+ "artifactClose": "Закрити перегляд",+ "artifactDownload": "Завантажити",+ "artifactReload": "Оновити перегляд",+ "artifactHtml": "HTML-сторінка",+ "artifactSvg": "SVG-зображення",+ "artifactLines": "рядків",+ "artifactResize": "Змінити розмір перегляду"},"playgroundSessions": {"heading": "Чати",@@ -885,7 +901,9 @@"daysAgo": "{count} дн. тому","loadFailed": "Не вдалося відкрити цей чат.","renameFailed": "Не вдалося перейменувати цей чат.",- "deleteFailed": "Не вдалося видалити цей чат."+ "deleteFailed": "Не вдалося видалити цей чат.",+ "actions": "Дії з розмовою",+ "newChat": "Новий чат"},"embeddings": {"title": "Моделі",diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex 252bbae3..eab551b2 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} سپورٹڈ نہیں ہے۔ تصاویر (PNG، JPEG، WebP، GIF) یا ٹیکسٹ فائلیں (TXT، MD، CSV، JSON، LOG) منسلک کریں۔","attachFailed": "{name} کو پڑھا نہیں جا سکا۔","noVisionBadge": "تصاویر نہیں",- "visionWarning": "{model} تصاویر قبول نہیں کرتا۔ کوئی وژن ماڈل یا آٹو منتخب کریں۔"+ "visionWarning": "{model} تصاویر قبول نہیں کرتا۔ کوئی وژن ماڈل یا آٹو منتخب کریں۔",+ "dictate": "بول کر لکھیں",+ "dictationStop": "ریکارڈنگ روکیں",+ "dictationTranscribing": "تحریر ہو رہی ہے…",+ "dictationUnavailable": "بول کر لکھنے کے لیے آڈیو ماڈلز کے فراہم کنندگان شامل کریں۔",+ "dictationModel": "املا ماڈل",+ "dictationFailed": "تحریر ناکام: {reason}",+ "artifactOpen": "پیش منظر کھولیں",+ "artifactPreview": "پیش منظر",+ "artifactCode": "کوڈ",+ "artifactClose": "پیش منظر بند کریں",+ "artifactDownload": "ڈاؤن لوڈ",+ "artifactReload": "پیش منظر دوبارہ لوڈ کریں",+ "artifactHtml": "HTML صفحہ",+ "artifactSvg": "SVG تصویر",+ "artifactLines": "لائنیں",+ "artifactResize": "پیش منظر کا سائز بدلیں"},"playgroundSessions": {"heading": "گفتگوئیں",@@ -885,7 +901,9 @@"daysAgo": "{count} دن پہلے","loadFailed": "وہ گفتگو نہیں کھل سکی۔","renameFailed": "اس گفتگو کا نام تبدیل نہیں ہو سکا۔",- "deleteFailed": "وہ گفتگو حذف نہیں ہو سکی۔"+ "deleteFailed": "وہ گفتگو حذف نہیں ہو سکی۔",+ "actions": "گفتگو کے اعمال",+ "newChat": "نئی چیٹ"},"embeddings": {"title": "ماڈلز",diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex 04c98b3b..7582fcf7 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} qoʻllab-quvvatlanmaydi. Rasm (PNG, JPEG, WebP, GIF) yoki matnli fayl (TXT, MD, CSV, JSON, LOG) biriktiring.","attachFailed": "{name} oʻqib boʻlmadi.","noVisionBadge": "Rasmsiz",- "visionWarning": "{model} rasmlarni qabul qilmaydi. Rasmni qoʻllaydigan model yoki Avtomatik variantini tanlang."+ "visionWarning": "{model} rasmlarni qabul qilmaydi. Rasmni qoʻllaydigan model yoki Avtomatik variantini tanlang.",+ "dictate": "Diktovka",+ "dictationStop": "Yozib olishni to‘xtatish",+ "dictationTranscribing": "Matnga o‘girilmoqda…",+ "dictationUnavailable": "Diktovkadan foydalanish uchun audio modellar provayderlarini qo‘shing.",+ "dictationModel": "Diktovka modeli",+ "dictationFailed": "Matnga o‘girish amalga oshmadi: {reason}",+ "artifactOpen": "Ko‘rishni ochish",+ "artifactPreview": "Ko‘rish",+ "artifactCode": "Kod",+ "artifactClose": "Ko‘rishni yopish",+ "artifactDownload": "Yuklab olish",+ "artifactReload": "Ko‘rishni qayta yuklash",+ "artifactHtml": "HTML sahifa",+ "artifactSvg": "SVG rasm",+ "artifactLines": "qator",+ "artifactResize": "Ko‘rish o‘lchamini o‘zgartirish"},"playgroundSessions": {"heading": "Suhbatlar",@@ -885,7 +901,9 @@"daysAgo": "{count} kun oldin","loadFailed": "Bu suhbatni ochib bo‘lmadi.","renameFailed": "Bu suhbat nomini o‘zgartirib bo‘lmadi.",- "deleteFailed": "Bu suhbatni o‘chirib bo‘lmadi."+ "deleteFailed": "Bu suhbatni o‘chirib bo‘lmadi.",+ "actions": "Suhbat amallari",+ "newChat": "Yangi chat"},"embeddings": {"title": "Modellar",diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex bc662b0f..cf441856 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -867,7 +867,23 @@"attachUnsupported": "{name} không được hỗ trợ. Hãy đính kèm hình ảnh (PNG, JPEG, WebP, GIF) hoặc tệp văn bản (TXT, MD, CSV, JSON, LOG).","attachFailed": "Không thể đọc {name}.","noVisionBadge": "Không hình ảnh",- "visionWarning": "{model} không chấp nhận hình ảnh. Hãy chọn một mô hình hỗ trợ hình ảnh hoặc Tự động."+ "visionWarning": "{model} không chấp nhận hình ảnh. Hãy chọn một mô hình hỗ trợ hình ảnh hoặc Tự động.",+ "dictate": "Đọc chính tả",+ "dictationStop": "Dừng ghi âm",+ "dictationTranscribing": "Đang chuyển thành văn bản…",+ "dictationUnavailable": "Thêm nhà cung cấp mô hình âm thanh để dùng đọc chính tả.",+ "dictationModel": "Mô hình đọc chính tả",+ "dictationFailed": "Chuyển văn bản thất bại: {reason}",+ "artifactOpen": "Mở bản xem trước",+ "artifactPreview": "Xem trước",+ "artifactCode": "Mã",+ "artifactClose": "Đóng bản xem trước",+ "artifactDownload": "Tải xuống",+ "artifactReload": "Tải lại bản xem trước",+ "artifactHtml": "Trang HTML",+ "artifactSvg": "Ảnh SVG",+ "artifactLines": "dòng",+ "artifactResize": "Đổi kích cỡ bản xem trước"},"playgroundSessions": {"heading": "Cuộc trò chuyện",@@ -885,7 +901,9 @@"daysAgo": "{count} ngày trước","loadFailed": "Không thể mở cuộc trò chuyện đó.","renameFailed": "Không thể đổi tên cuộc trò chuyện đó.",- "deleteFailed": "Không thể xóa cuộc trò chuyện đó."+ "deleteFailed": "Không thể xóa cuộc trò chuyện đó.",+ "actions": "Thao tác hội thoại",+ "newChat": "Cuộc trò chuyện mới"},"embeddings": {"title": "Người mẫu",diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex 59ec52b7..c50acc91 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -867,7 +867,23 @@"attachUnsupported": "A ko ṣe atilẹyin fun {name}. Somọ awọn aworan (PNG, JPEG, WebP, GIF) tabi awọn faili ọrọ (TXT, MD, CSV, JSON, LOG).","attachFailed": "A ko le ka {name}.","noVisionBadge": "Ko si aworan",- "visionWarning": "{model} ko gba aworan. Yan awoṣe ti o gba aworan tabi Aifọwọyi."+ "visionWarning": "{model} ko gba aworan. Yan awoṣe ti o gba aworan tabi Aifọwọyi.",+ "dictate": "Sọ kí a kọ",+ "dictationStop": "Dá gbigbasilẹ dúró",+ "dictationTranscribing": "Ń kọ sílẹ̀…",+ "dictationUnavailable": "Fi àwọn olùpèsè àwòṣe ohùn kún un láti lè lo sísọ kí a kọ.",+ "dictationModel": "Àwòṣe sísọ kí a kọ",+ "dictationFailed": "Kíkọ sílẹ̀ kùnà: {reason}",+ "artifactOpen": "Ṣí àwòrán àkọ́kọ́",+ "artifactPreview": "Àwòrán àkọ́kọ́",+ "artifactCode": "Kóòdù",+ "artifactClose": "Pa àwòrán àkọ́kọ́",+ "artifactDownload": "Gbà sílẹ̀",+ "artifactReload": "Tún àwòrán àkọ́kọ́ gbé",+ "artifactHtml": "Ojú-ìwé HTML",+ "artifactSvg": "Àwòrán SVG",+ "artifactLines": "ìlà",+ "artifactResize": "Yí ìwọ̀n àwòrán àkọ́kọ́ padà"},"playgroundSessions": {"heading": "Àwọn ìjíròrò",@@ -885,7 +901,9 @@"daysAgo": "ọjọ́ {count} sẹ́yìn","loadFailed": "A kò lè ṣí ìjíròrò yẹn.","renameFailed": "A kò lè tún orúkọ ìjíròrò yẹn sọ.",- "deleteFailed": "A kò lè pa ìjíròrò yẹn rẹ́."+ "deleteFailed": "A kò lè pa ìjíròrò yẹn rẹ́.",+ "actions": "Àwọn ìṣe ìjíròrò",+ "newChat": "Ìfọ̀rọ̀wérọ̀ tuntun"},"embeddings": {"title": "Awọn awoṣe",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 290e7fc2..3fe6b1c2 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -867,7 +867,23 @@"attachUnsupported": "不支持 {name}。请附加图像(PNG、JPEG、WebP、GIF)或文本文件(TXT、MD、CSV、JSON、LOG)。","attachFailed": "无法读取 {name}。","noVisionBadge": "不支持图像",- "visionWarning": "{model} 不接受图像。请选择视觉模型或「自动」。"+ "visionWarning": "{model} 不接受图像。请选择视觉模型或「自动」。",+ "dictate": "语音输入",+ "dictationStop": "停止录音",+ "dictationTranscribing": "正在转写…",+ "dictationUnavailable": "请添加音频模型的提供商以使用语音输入。",+ "dictationModel": "语音输入模型",+ "dictationFailed": "转写失败:{reason}",+ "artifactOpen": "打开预览",+ "artifactPreview": "预览",+ "artifactCode": "代码",+ "artifactClose": "关闭预览",+ "artifactDownload": "下载",+ "artifactReload": "重新加载预览",+ "artifactHtml": "HTML 页面",+ "artifactSvg": "SVG 图像",+ "artifactLines": "行",+ "artifactResize": "调整预览大小"},"playgroundSessions": {"heading": "对话",@@ -885,7 +901,9 @@"daysAgo": "{count} 天前","loadFailed": "无法打开该对话。","renameFailed": "无法重命名该对话。",- "deleteFailed": "无法删除该对话。"+ "deleteFailed": "无法删除该对话。",+ "actions": "对话操作",+ "newChat": "新对话"},"embeddings": {"title": "模型",diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex b0d4c683..325f1cb5 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -867,7 +867,23 @@"attachUnsupported": "不支援 {name}。請附加圖像(PNG、JPEG、WebP、GIF)或文字檔案(TXT、MD、CSV、JSON、LOG)。","attachFailed": "無法讀取 {name}。","noVisionBadge": "無圖像",- "visionWarning": "{model} 不接受圖像。請選擇視覺模型或「自動」。"+ "visionWarning": "{model} 不接受圖像。請選擇視覺模型或「自動」。",+ "dictate": "語音輸入",+ "dictationStop": "停止錄音",+ "dictationTranscribing": "正在轉寫…",+ "dictationUnavailable": "請新增音訊模型的供應商以使用語音輸入。",+ "dictationModel": "語音輸入模型",+ "dictationFailed": "轉寫失敗:{reason}",+ "artifactOpen": "開啟預覽",+ "artifactPreview": "預覽",+ "artifactCode": "程式碼",+ "artifactClose": "關閉預覽",+ "artifactDownload": "下載",+ "artifactReload": "重新載入預覽",+ "artifactHtml": "HTML 頁面",+ "artifactSvg": "SVG 圖片",+ "artifactLines": "行",+ "artifactResize": "調整預覽大小"},"playgroundSessions": {"heading": "對話",@@ -885,7 +901,9 @@"daysAgo": "{count} 天前","loadFailed": "無法開啟該對話。","renameFailed": "無法重新命名該對話。",- "deleteFailed": "無法刪除該對話。"+ "deleteFailed": "無法刪除該對話。",+ "actions": "對話操作",+ "newChat": "新對話"},"embeddings": {"title": "模型",diff --git a/client/src/index.css b/client/src/index.cssindex b7790422..08792669 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -160,3 +160,34 @@font-feature-settings: 'ss01';}}++/* ── Syntax highlighting (highlight.js spans, see lib/highlight.ts) ─────────+ One restrained palette per theme: keywords and tags carry the accent,+ strings warm, comments recede, everything else stays the text colour. */+.code-highlight { color: var(--foreground); }+.code-highlight .hljs-comment, .code-highlight .hljs-quote { color: oklch(0.55 0 0); font-style: italic; }+.code-highlight .hljs-keyword, .code-highlight .hljs-selector-tag, .code-highlight .hljs-built_in,+.code-highlight .hljs-type, .code-highlight .hljs-literal, .code-highlight .hljs-doctag,+.code-highlight .hljs-meta { color: oklch(0.45 0.18 290); }+.code-highlight .hljs-tag, .code-highlight .hljs-name, .code-highlight .hljs-selector-class,+.code-highlight .hljs-selector-id, .code-highlight .hljs-section, .code-highlight .hljs-title { color: oklch(0.48 0.16 250); }+.code-highlight .hljs-attr, .code-highlight .hljs-attribute, .code-highlight .hljs-variable,+.code-highlight .hljs-template-variable, .code-highlight .hljs-property, .code-highlight .hljs-params { color: oklch(0.5 0.12 45); }+.code-highlight .hljs-string, .code-highlight .hljs-regexp, .code-highlight .hljs-addition,+.code-highlight .hljs-template-tag, .code-highlight .hljs-symbol, .code-highlight .hljs-bullet { color: oklch(0.5 0.14 150); }+.code-highlight .hljs-number, .code-highlight .hljs-link { color: oklch(0.5 0.15 25); }+.code-highlight .hljs-deletion { color: oklch(0.5 0.18 25); }+.code-highlight .hljs-emphasis { font-style: italic; }+.code-highlight .hljs-strong { font-weight: 600; }+.dark .code-highlight .hljs-comment, .dark .code-highlight .hljs-quote { color: oklch(0.6 0 0); }+.dark .code-highlight .hljs-keyword, .dark .code-highlight .hljs-selector-tag, .dark .code-highlight .hljs-built_in,+.dark .code-highlight .hljs-type, .dark .code-highlight .hljs-literal, .dark .code-highlight .hljs-doctag,+.dark .code-highlight .hljs-meta { color: oklch(0.78 0.12 290); }+.dark .code-highlight .hljs-tag, .dark .code-highlight .hljs-name, .dark .code-highlight .hljs-selector-class,+.dark .code-highlight .hljs-selector-id, .dark .code-highlight .hljs-section, .dark .code-highlight .hljs-title { color: oklch(0.78 0.11 240); }+.dark .code-highlight .hljs-attr, .dark .code-highlight .hljs-attribute, .dark .code-highlight .hljs-variable,+.dark .code-highlight .hljs-template-variable, .dark .code-highlight .hljs-property, .dark .code-highlight .hljs-params { color: oklch(0.8 0.1 60); }+.dark .code-highlight .hljs-string, .dark .code-highlight .hljs-regexp, .dark .code-highlight .hljs-addition,+.dark .code-highlight .hljs-template-tag, .dark .code-highlight .hljs-symbol, .dark .code-highlight .hljs-bullet { color: oklch(0.78 0.12 150); }+.dark .code-highlight .hljs-number, .dark .code-highlight .hljs-link { color: oklch(0.78 0.12 30); }+.dark .code-highlight .hljs-deletion { color: oklch(0.7 0.16 25); }diff --git a/client/src/lib/artifact-host.ts b/client/src/lib/artifact-host.tsnew file mode 100644index 00000000..53fbaeff--- /dev/null+++ b/client/src/lib/artifact-host.ts@@ -0,0 +1,13 @@+import { createContext } from 'react'+import type { ArtifactKind } from './artifacts'++// A host that shows artifacts (the Playground) provides this; the code block+// for a runnable fence then renders as a card that opens it instead of the+// raw source, which lives in the panel's Code tab. Without a host, blocks+// render as plain code everywhere else Markdown is used.+export interface ArtifactHost {+ open: (kind: ArtifactKind, language: string, code: string) => void+ /** The artifact currently open in the host, by its code, to mark the card active. */+ activeCode?: string | null+}+export const ArtifactHostContext = createContext<ArtifactHost | null>(null)diff --git a/client/src/lib/artifact-panel-size.test.ts b/client/src/lib/artifact-panel-size.test.tsnew file mode 100644index 00000000..218fd33d--- /dev/null+++ b/client/src/lib/artifact-panel-size.test.ts@@ -0,0 +1,44 @@+import { describe, it, expect } from 'vitest'+import {+ ARTIFACT_MIN_WIDTH,+ CHAT_MIN_WIDTH,+ clampArtifactWidth,+ defaultArtifactWidth,+ draggedArtifactWidth,+ maxArtifactWidth,+ readArtifactWidth,+} from './artifact-panel-size'++describe('artifact panel sizing', () => {+ it('opens at the Artifacts proportion, capped, on a wide screen', () => {+ expect(defaultArtifactWidth(1500)).toBe(560)+ expect(defaultArtifactWidth(1000)).toBe(450)+ })++ it('never lets the panel squeeze the chat below its minimum', () => {+ expect(maxArtifactWidth(1400)).toBe(1400 - CHAT_MIN_WIDTH)+ expect(clampArtifactWidth(5000, 1400)).toBe(1400 - CHAT_MIN_WIDTH)+ // A tiny viewport still yields the panel minimum rather than something negative.+ expect(maxArtifactWidth(500)).toBe(ARTIFACT_MIN_WIDTH)+ })++ it('never goes below the panel minimum', () => {+ expect(clampArtifactWidth(10, 1400)).toBe(ARTIFACT_MIN_WIDTH)+ expect(clampArtifactWidth(NaN, 1400)).toBe(defaultArtifactWidth(1400))+ })++ it('reads a remembered width and ignores junk', () => {+ expect(readArtifactWidth('700', 1400)).toBe(700)+ expect(readArtifactWidth('9999', 1400)).toBe(1400 - CHAT_MIN_WIDTH)+ expect(readArtifactWidth('abc', 1400)).toBe(defaultArtifactWidth(1400))+ expect(readArtifactWidth(null, 1400)).toBe(defaultArtifactWidth(1400))+ expect(readArtifactWidth('-5', 1400)).toBe(defaultArtifactWidth(1400))+ })++ it('drags from the left edge: pointer left widens, pointer right narrows, clamped', () => {+ expect(draggedArtifactWidth(560, 800, 700, 1400)).toBe(660)+ expect(draggedArtifactWidth(560, 800, 900, 1400)).toBe(460)+ expect(draggedArtifactWidth(560, 800, 0, 1400)).toBe(1400 - CHAT_MIN_WIDTH)+ expect(draggedArtifactWidth(560, 800, 1400, 1400)).toBe(ARTIFACT_MIN_WIDTH)+ })+})diff --git a/client/src/lib/artifact-panel-size.ts b/client/src/lib/artifact-panel-size.tsnew file mode 100644index 00000000..fcb1f53c--- /dev/null+++ b/client/src/lib/artifact-panel-size.ts@@ -0,0 +1,40 @@+// Sizing rules for the artifact panel: how wide it may be, what it opens at,+// and where the chosen width is remembered. Pure, so the clamp and the+// storage round-trip are tested without a DOM.++export const ARTIFACT_WIDTH_STORAGE_KEY = 'playground.artifactWidth'+/** Narrower than this and the header actions collide with the tabs. */+export const ARTIFACT_MIN_WIDTH = 320+/** What the chat column must keep, so the panel can never push it away. */+export const CHAT_MIN_WIDTH = 360+/** First open, before the user has dragged: the Artifacts-panel proportion. */+export const ARTIFACT_DEFAULT_FRACTION = 0.45+export const ARTIFACT_DEFAULT_MAX = 560+/** Keyboard resize step on the handle, px. */+export const ARTIFACT_KEY_STEP = 24++/** Largest width the viewport allows while the chat keeps its minimum. */+export function maxArtifactWidth(viewportWidth: number): number {+ return Math.max(ARTIFACT_MIN_WIDTH, Math.floor(viewportWidth - CHAT_MIN_WIDTH))+}++export function clampArtifactWidth(width: number, viewportWidth: number): number {+ if (!Number.isFinite(width)) return defaultArtifactWidth(viewportWidth)+ return Math.round(Math.min(maxArtifactWidth(viewportWidth), Math.max(ARTIFACT_MIN_WIDTH, width)))+}++export function defaultArtifactWidth(viewportWidth: number): number {+ return clampArtifactWidth(Math.min(ARTIFACT_DEFAULT_MAX, viewportWidth * ARTIFACT_DEFAULT_FRACTION), viewportWidth)+}++/** The remembered width, or the default when nothing valid is stored. */+export function readArtifactWidth(stored: string | null | undefined, viewportWidth: number): number {+ const n = stored == null ? NaN : Number(stored)+ return Number.isFinite(n) && n > 0 ? clampArtifactWidth(n, viewportWidth) : defaultArtifactWidth(viewportWidth)+}++/** Width after a drag: the handle is on the LEFT edge, so moving the pointer+ * left (negative dx) makes the panel wider. */+export function draggedArtifactWidth(startWidth: number, startX: number, clientX: number, viewportWidth: number): number {+ return clampArtifactWidth(startWidth + (startX - clientX), viewportWidth)+}diff --git a/client/src/lib/artifacts.test.ts b/client/src/lib/artifacts.test.tsnew file mode 100644index 00000000..737a699b--- /dev/null+++ b/client/src/lib/artifacts.test.ts@@ -0,0 +1,62 @@+import { describe, it, expect } from 'vitest'+import { artifactKindOf, artifactSrcDoc, extractArtifacts, ARTIFACT_SANDBOX } from './artifacts'++const HTML = '<!doctype html>\n<html><head><title>Hello page</title></head><body><h1>Hi</h1></body></html>'++describe('artifactKindOf', () => {+ it('recognises html and svg fences, and untagged fences by their first tag', () => {+ expect(artifactKindOf('html', '<div>x</div>')).toBe('html')+ expect(artifactKindOf('HTML', '<p>x</p>')).toBe('html')+ expect(artifactKindOf('svg', '<svg></svg>')).toBe('svg')+ expect(artifactKindOf('', HTML)).toBe('html')+ expect(artifactKindOf('xml', '<svg xmlns="http://www.w3.org/2000/svg"></svg>')).toBe('svg')+ expect(artifactKindOf('html', '<svg></svg>')).toBe('svg')+ })+ it('leaves ordinary code alone', () => {+ expect(artifactKindOf('js', 'console.log(1)')).toBeNull()+ expect(artifactKindOf('python', 'print(1)')).toBeNull()+ expect(artifactKindOf('', 'const x = 1')).toBeNull()+ expect(artifactKindOf('jsx', '<div/>')).toBeNull()+ })+})++describe('extractArtifacts', () => {+ it('finds runnable fences in document order with titles and stable ids', () => {+ const md = `Here you go:\n\n\`\`\`html\n${HTML}\n\`\`\`\n\nAnd a script:\n\n\`\`\`js\nalert(1)\n\`\`\`\n\n\`\`\`svg\n<svg xmlns="http://www.w3.org/2000/svg"><circle r="4"/></svg>\n\`\`\`\n`+ const found = extractArtifacts(md, 3)+ expect(found.map(a => [a.id, a.kind, a.title, a.filename])).toEqual([+ ['3:1', 'html', 'Hello page', 'artifact-1.html'],+ ['3:3', 'svg', null, 'artifact-3.svg'],+ ])+ expect(found[0].code).toBe(HTML)+ })++ it('accepts tilde fences and indented fences, and ignores an unterminated one while streaming', () => {+ expect(extractArtifacts('~~~html\n<p>a</p>\n~~~')).toHaveLength(1)+ expect(extractArtifacts(' ```html\n <p>a</p>\n ```')).toHaveLength(1)+ expect(extractArtifacts('```html\n<p>still typing')).toHaveLength(0)+ })++ it('does not treat a fence inside inline text as a block', () => {+ expect(extractArtifacts('Use ```html``` fences.')).toHaveLength(0)+ })+})++describe('artifactSrcDoc', () => {+ it('passes html through and wraps svg in a centring page', () => {+ const [html] = extractArtifacts(`\`\`\`html\n${HTML}\n\`\`\``)+ expect(artifactSrcDoc(html)).toBe(HTML)+ const [svg] = extractArtifacts('```svg\n<svg xmlns="http://www.w3.org/2000/svg"></svg>\n```')+ const doc = artifactSrcDoc(svg)+ expect(doc.startsWith('<!doctype html>')).toBe(true)+ expect(doc).toContain('<svg xmlns="http://www.w3.org/2000/svg"></svg>')+ })+})++describe('sandbox', () => {+ it('never grants the preview the dashboard origin', () => {+ expect(ARTIFACT_SANDBOX).toContain('allow-scripts')+ expect(ARTIFACT_SANDBOX).not.toContain('allow-same-origin')+ expect(ARTIFACT_SANDBOX).not.toContain('allow-top-navigation')+ })+})diff --git a/client/src/lib/artifacts.ts b/client/src/lib/artifacts.tsnew file mode 100644index 00000000..b3637a65--- /dev/null+++ b/client/src/lib/artifacts.ts@@ -0,0 +1,80 @@+// Artifacts: runnable code a reply carries, shown in a side panel with a live+// preview next to the source — the pattern Claude's Artifacts panel made+// familiar (a sandboxed iframe for the preview, tabs for code and preview,+// copy and download in the header). This module is the pure half: finding the+// artifacts in a Markdown reply and building the document the iframe runs.++export type ArtifactKind = 'html' | 'svg'++export interface Artifact {+ /** Stable within a message: `${messageIndex}:${blockIndex}`. */+ id: string+ kind: ArtifactKind+ /** Fence language as written, lowercased ('' when the fence had none). */+ language: string+ code: string+ /** <title> / <svg title> when present, else a kind label chosen by the caller. */+ title: string | null+ filename: string+}++const FENCE = /^([ \t]{0,3})(`{3,}|~{3,})[ \t]*([^\s`]*)[^\n]*\n([\s\S]*?)\n[ \t]{0,3}\2[ \t]*$/gm++/** Is this fenced block something a browser can run on its own? */+export function artifactKindOf(language: string, code: string): ArtifactKind | null {+ const lang = language.toLowerCase()+ const head = code.slice(0, 400).trimStart().toLowerCase()+ if (lang === 'svg' || (head.startsWith('<svg') && (lang === '' || lang === 'xml' || lang === 'html'))) return 'svg'+ if (lang === 'html' || lang === 'htm' || lang === 'xhtml') return 'html'+ if ((lang === '' || lang === 'xml' || lang === 'markup') && (head.startsWith('<!doctype html') || head.startsWith('<html'))) return 'html'+ return null+}++function titleOf(kind: ArtifactKind, code: string): string | null {+ const m = kind === 'html'+ ? /<title[^>]*>([^<]{1,120})<\/title>/i.exec(code)+ : /<title[^>]*>([^<]{1,120})<\/title>/i.exec(code)+ const t = m?.[1]?.trim()+ return t ? t : null+}++/** Every runnable fenced block in a Markdown reply, in document order.+ * A fence still open (streaming) is not matched, so a card only appears+ * once the block has closed. */+export function extractArtifacts(markdown: string, messageIndex = 0): Artifact[] {+ const out: Artifact[] = []+ let block = 0+ for (const m of markdown.matchAll(FENCE)) {+ const language = (m[3] ?? '').toLowerCase()+ const code = m[4] ?? ''+ block += 1+ const kind = artifactKindOf(language, code)+ if (!kind) continue+ out.push({+ id: `${messageIndex}:${block}`,+ kind,+ language,+ code,+ title: titleOf(kind, code),+ filename: kind === 'svg' ? `artifact-${block}.svg` : `artifact-${block}.html`,+ })+ }+ return out+}++/** The document the sandboxed iframe runs. HTML is passed through as the+ * model wrote it; an SVG is centred on a neutral page so it is visible at+ * its natural size. */+export function artifactSrcDoc(artifact: Artifact): string {+ if (artifact.kind === 'html') return artifact.code+ return `<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;background:#fff}body{display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}svg{max-width:100%;max-height:100%}</style></head><body>${artifact.code}</body></html>`+}++/** Sandbox flags for the preview: scripts may run (a page without JS is not+ * much of a preview) but the frame is a separate origin with no access to+ * the dashboard, its storage or its session. Never add allow-same-origin. */+export const ARTIFACT_SANDBOX = 'allow-scripts allow-forms allow-modals allow-popups allow-pointer-lock'++export function artifactMimeType(kind: ArtifactKind): string {+ return kind === 'svg' ? 'image/svg+xml' : 'text/html'+}diff --git a/client/src/lib/composer-geometry.test.ts b/client/src/lib/composer-geometry.test.tsnew file mode 100644index 00000000..52f88651--- /dev/null+++ b/client/src/lib/composer-geometry.test.ts@@ -0,0 +1,43 @@+import { describe, it, expect } from 'vitest'+import {+ COMPOSER_BUTTON_PX,+ COMPOSER_GAP_PX,+ COMPOSER_MAX_HEIGHT_PX,+ composerHasContent,+ composerHeight,+ sendButtonInteractive,+ sendButtonOffset,+} from './composer-geometry'++describe('composerHasContent', () => {+ it('needs real text or an attachment', () => {+ expect(composerHasContent('', 0)).toBe(false)+ expect(composerHasContent(' \n', 0)).toBe(false)+ expect(composerHasContent('hi', 0)).toBe(true)+ expect(composerHasContent('', 1)).toBe(true)+ })+})++describe('sendButtonOffset', () => {+ it('parks the whole offset on the button: under the bar when empty, at rest when there is content', () => {+ expect(sendButtonOffset(false)).toBe(-(COMPOSER_BUTTON_PX + COMPOSER_GAP_PX))+ expect(sendButtonOffset(true)).toBe(0)+ })+})++describe('sendButtonInteractive', () => {+ it('is a target only once emerged and idle', () => {+ expect(sendButtonInteractive(false, false)).toBe(false)+ expect(sendButtonInteractive(true, true)).toBe(false)+ expect(sendButtonInteractive(true, false)).toBe(true)+ })+})++describe('composerHeight', () => {+ it('caps the textarea and reports the grown threshold', () => {+ expect(composerHeight(40)).toEqual({ height: 40, grown: false })+ expect(composerHeight(60)).toEqual({ height: 60, grown: true })+ expect(composerHeight(900)).toEqual({ height: COMPOSER_MAX_HEIGHT_PX, grown: true })+ expect(composerHeight(-5).height).toBe(0)+ })+})diff --git a/client/src/lib/composer-geometry.ts b/client/src/lib/composer-geometry.tsnew file mode 100644index 00000000..38fe9e77--- /dev/null+++ b/client/src/lib/composer-geometry.ts@@ -0,0 +1,44 @@+// Geometry and state rules for the Playground's liquid composer, kept pure so+// the component file holds only the component (react-refresh) and the rules+// can be unit-tested without the SVG filter stack.++/** Send button diameter, px (Tailwind size-10). */+export const COMPOSER_BUTTON_PX = 40+/** Gap between the bar and the send button once it has broken free, px. */+export const COMPOSER_GAP_PX = 8+/** Bar corner radius, px — the "corner" knob of the reference block. */+export const COMPOSER_CORNER_PX = 28+/** Goo blur sigma, px — the "bridge" knob: how far the button stretches before+ * the liquid gives up and it breaks free. */+export const COMPOSER_BRIDGE = 3+/** Alpha-contrast slope — the "edge" knob: how sharp the liquid boundary is. */+export const COMPOSER_EDGE = 22+/** Textarea height at which the row switches to bottom alignment. */+export const COMPOSER_GROWN_PX = 44+/** Textarea height cap, px. */+export const COMPOSER_MAX_HEIGHT_PX = 160++/** Whether the composer has anything to send. */+export function composerHasContent(text: string, attachmentCount: number): boolean {+ return text.trim().length > 0 || attachmentCount > 0+}++/** THE OFFSET IS ALL ON THE BUTTON: the bar never moves. With nothing to send+ * the button sits one diameter plus one gap to the left, i.e. entirely under+ * the bar's right edge, so the two silhouettes are one body of liquid; with+ * content it walks out to its resting spot at x = 0. */+export function sendButtonOffset(hasContent: boolean): number {+ return hasContent ? 0 : -(COMPOSER_BUTTON_PX + COMPOSER_GAP_PX)+}++/** The button is only a target once it has emerged and nothing is in flight. */+export function sendButtonInteractive(hasContent: boolean, loading: boolean): boolean {+ return hasContent && !loading+}++/** Auto-grow: the height to give the textarea for its current scroll height,+ * and whether that counts as "grown" for row alignment. */+export function composerHeight(scrollHeight: number): { height: number; grown: boolean } {+ const height = Math.min(Math.max(0, scrollHeight), COMPOSER_MAX_HEIGHT_PX)+ return { height, grown: height > COMPOSER_GROWN_PX }+}diff --git a/client/src/lib/highlight.test.ts b/client/src/lib/highlight.test.tsnew file mode 100644index 00000000..872bde38--- /dev/null+++ b/client/src/lib/highlight.test.ts@@ -0,0 +1,50 @@+import { describe, it, expect } from 'vitest'+import { escapeHtml, highlightCode, resolveLanguage } from './highlight'++describe('resolveLanguage', () => {+ it('maps the tags models write onto registered grammars', () => {+ expect(resolveLanguage('html')).toBe('xml')+ expect(resolveLanguage('svg')).toBe('xml')+ expect(resolveLanguage('JS')).toBe('javascript')+ expect(resolveLanguage('tsx')).toBe('typescript')+ expect(resolveLanguage('py')).toBe('python')+ expect(resolveLanguage('sh')).toBe('bash')+ expect(resolveLanguage('yml')).toBe('yaml')+ })+ it('returns null for nothing and for grammars we do not ship', () => {+ expect(resolveLanguage('')).toBeNull()+ expect(resolveLanguage(undefined)).toBeNull()+ expect(resolveLanguage('brainfuck')).toBeNull()+ })+})++describe('highlightCode', () => {+ it('marks up html with tag and attribute spans and keeps the text escaped', () => {+ const out = highlightCode('<div class="a">x & y</div>', 'html')+ expect(out.language).toBe('xml')+ expect(out.html).toContain('hljs-tag')+ expect(out.html).toContain('hljs-attr')+ expect(out.html).not.toContain('<div class="a">') // real tags never leak through+ expect(out.html).toContain('<')+ })+ it('highlights javascript keywords and strings', () => {+ const out = highlightCode("const x = 'hi'; function f() { return 1 }", 'js')+ expect(out.language).toBe('javascript')+ expect(out.html).toContain('hljs-keyword')+ expect(out.html).toContain('hljs-string')+ })+ it('auto-detects an untagged block when the signal is strong', () => {+ const out = highlightCode('def greet(name):\n print(f"hello {name}")\n\nfor i in range(3):\n greet(i)\n', null)+ expect(out.language).toBe('python')+ })+ it('falls back to plain escaped text rather than a wrong grammar', () => {+ const out = highlightCode('just a sentence <with> a bracket', 'brainfuck')+ expect(out.html).toBe('just a sentence <with> a bracket')+ })+})++describe('escapeHtml', () => {+ it('escapes the three characters that matter for innerHTML', () => {+ expect(escapeHtml('a < b & c > d')).toBe('a < b & c > d')+ })+})diff --git a/client/src/lib/highlight.ts b/client/src/lib/highlight.tsnew file mode 100644index 00000000..84cb4d3d--- /dev/null+++ b/client/src/lib/highlight.ts@@ -0,0 +1,83 @@+import hljs from 'highlight.js/lib/core'+import xml from 'highlight.js/lib/languages/xml'+import javascript from 'highlight.js/lib/languages/javascript'+import typescript from 'highlight.js/lib/languages/typescript'+import css from 'highlight.js/lib/languages/css'+import json from 'highlight.js/lib/languages/json'+import python from 'highlight.js/lib/languages/python'+import bash from 'highlight.js/lib/languages/bash'+import shell from 'highlight.js/lib/languages/shell'+import markdown from 'highlight.js/lib/languages/markdown'+import sql from 'highlight.js/lib/languages/sql'+import yaml from 'highlight.js/lib/languages/yaml'+import go from 'highlight.js/lib/languages/go'+import rust from 'highlight.js/lib/languages/rust'+import java from 'highlight.js/lib/languages/java'++// Syntax highlighting for code the Playground shows: reply code blocks and+// the artifact panel's Code tab. highlight.js core with a hand-picked set of+// grammars (the whole library is ~1 MB; these fourteen cover what chat models+// actually emit). Output is escaped HTML with `hljs-*` spans, coloured by the+// token rules in index.css so it follows the dashboard's light/dark tokens.++hljs.registerLanguage('xml', xml)+hljs.registerLanguage('javascript', javascript)+hljs.registerLanguage('typescript', typescript)+hljs.registerLanguage('css', css)+hljs.registerLanguage('json', json)+hljs.registerLanguage('python', python)+hljs.registerLanguage('bash', bash)+hljs.registerLanguage('shell', shell)+hljs.registerLanguage('markdown', markdown)+hljs.registerLanguage('sql', sql)+hljs.registerLanguage('yaml', yaml)+hljs.registerLanguage('go', go)+hljs.registerLanguage('rust', rust)+hljs.registerLanguage('java', java)++// Fence tags models write → registered grammar names.+const ALIASES: Record<string, string> = {+ html: 'xml', htm: 'xml', xhtml: 'xml', svg: 'xml', vue: 'xml',+ js: 'javascript', jsx: 'javascript', mjs: 'javascript', cjs: 'javascript', node: 'javascript',+ ts: 'typescript', tsx: 'typescript',+ scss: 'css', less: 'css',+ jsonc: 'json', json5: 'json',+ py: 'python', python3: 'python',+ sh: 'bash', zsh: 'bash', console: 'shell', shellsession: 'shell',+ md: 'markdown', yml: 'yaml', golang: 'go', rs: 'rust',+}++export interface Highlighted {+ /** Escaped HTML with `hljs-*` spans — safe to inject as innerHTML. */+ html: string+ /** The grammar that was applied, or null when the code is plain escaped text. */+ language: string | null+}++export function resolveLanguage(tag: string | null | undefined): string | null {+ const lower = (tag ?? '').trim().toLowerCase()+ if (!lower) return null+ const name = ALIASES[lower] ?? lower+ return hljs.getLanguage(name) ? name : null+}++export function escapeHtml(text: string): string {+ return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>')+}++/** Highlight with the tagged grammar; an unknown or missing tag falls back to+ * auto-detection over the registered set, and anything hljs cannot place is+ * returned escaped, never styled wrong. */+export function highlightCode(code: string, tag?: string | null): Highlighted {+ const language = resolveLanguage(tag)+ try {+ if (language) return { html: hljs.highlight(code, { language, ignoreIllegals: true }).value, language }+ if (code.length <= 20_000) {+ const auto = hljs.highlightAuto(code)+ if (auto.language && auto.relevance >= 5) return { html: auto.value, language: auto.language }+ }+ } catch {+ // fall through to plain text+ }+ return { html: escapeHtml(code), language: null }+}diff --git a/client/src/lib/model-maker.test.ts b/client/src/lib/model-maker.test.tsnew file mode 100644index 00000000..8c7218d6--- /dev/null+++ b/client/src/lib/model-maker.test.ts@@ -0,0 +1,52 @@+import { describe, it, expect } from 'vitest'+import { modelMakerOf } from './model-maker'++const id = (m: string) => modelMakerOf(m)?.id ?? null++describe('modelMakerOf', () => {+ it('reads the family out of bare ids, with or without separators before digits', () => {+ expect(id('gemini-3.1-flash-lite')).toBe('google')+ expect(id('gemma2-9b-it')).toBe('google')+ expect(id('llama3-8b-8192')).toBe('meta')+ expect(id('qwen3-235b-a22b')).toBe('qwen')+ expect(id('QwQ-32B')).toBe('qwen')+ expect(id('deepseek-r1-distill-llama-70b')).toBe('deepseek')+ expect(id('codestral-latest')).toBe('mistral')+ expect(id('claude-sonnet-4-5')).toBe('anthropic')+ expect(id('gpt-4o-mini')).toBe('openai')+ expect(id('gpt-oss-120b')).toBe('openai')+ expect(id('o3-mini')).toBe('openai')+ expect(id('nemotron-3-ultra-550b')).toBe('nvidia')+ expect(id('kimi-k2.6')).toBe('moonshot')+ expect(id('glm-4.7-flash')).toBe('zhipu')+ expect(id('command-a-03-2025')).toBe('cohere')+ expect(id('phi-4-mini')).toBe('microsoft')+ expect(id('grok-4-fast')).toBe('xai')+ expect(id('sonar-pro')).toBe('perplexity')+ expect(id('granite-4.0-h-micro')).toBe('ibm')+ })++ it('uses the org segment of a namespaced id, and lets the family win over it when both are present', () => {+ expect(id('meta-llama/Llama-3.3-70B-Instruct')).toBe('meta')+ expect(id('Qwen/Qwen3-VL-235B-A22B-Instruct')).toBe('qwen')+ expect(id('moonshotai/Kimi-K3')).toBe('moonshot')+ expect(id('thinkingmachines/Inkling')).toBe('thinkingmachines')+ expect(id('zai-org/GLM-5.2')).toBe('zhipu')+ // A derived brand beats the base it names: a DeepSeek distillation of Llama+ // is DeepSeek's, a Nemotron built on Llama is NVIDIA's.+ expect(id('deepseek-ai/DeepSeek-R1-Distill-Qwen-32B')).toBe('deepseek')+ expect(id('nvidia/Llama-3.1-Nemotron-70B-Instruct')).toBe('nvidia')+ expect(id('openai/some-new-thing:free')).toBe('openai')+ })++ it('returns null for ids it cannot place, and for empty input', () => {+ expect(modelMakerOf('compound-mini')).toBeNull()+ expect(modelMakerOf('auto')).toBeNull()+ expect(modelMakerOf('')).toBeNull()+ expect(modelMakerOf(undefined)).toBeNull()+ })++ it('carries a display name', () => {+ expect(modelMakerOf('mistral-small-latest')).toEqual({ id: 'mistral', name: 'Mistral AI' })+ })+})diff --git a/client/src/lib/model-maker.ts b/client/src/lib/model-maker.tsnew file mode 100644index 00000000..b9eded23--- /dev/null+++ b/client/src/lib/model-maker.ts@@ -0,0 +1,92 @@+// Who MADE a model, inferred from its id — as opposed to who is serving it+// (the platform). A Llama on Groq and the same Llama on Cloudflare are both+// Meta's; the Playground shows the maker's mark under a reply, and the host in+// the tooltip. Pure so it can be tested without React.++export type ModelMakerId =+ | 'google' | 'meta' | 'qwen' | 'deepseek' | 'mistral' | 'anthropic' | 'openai'+ | 'nvidia' | 'moonshot' | 'zhipu' | 'minimax' | 'baidu' | 'perplexity' | 'cohere'+ | 'microsoft' | 'xai' | 'tencent' | 'ibm' | 'ai21' | 'thinkingmachines'++export interface ModelMaker {+ id: ModelMakerId+ name: string+}++const MAKERS: Record<ModelMakerId, string> = {+ google: 'Google', meta: 'Meta', qwen: 'Qwen', deepseek: 'DeepSeek', mistral: 'Mistral AI',+ anthropic: 'Anthropic', openai: 'OpenAI', nvidia: 'NVIDIA', moonshot: 'Moonshot AI', zhipu: 'Zhipu AI',+ minimax: 'MiniMax', baidu: 'Baidu', perplexity: 'Perplexity', cohere: 'Cohere', microsoft: 'Microsoft',+ xai: 'xAI', tencent: 'Tencent', ibm: 'IBM', ai21: 'AI21 Labs', thinkingmachines: 'Thinking Machines',+}++// Ordered: the first family marker found in the id wins. Markers are matched on+// word boundaries in a lowercased id with the vendor prefix ("meta-llama/",+// "google/") stripped, so "gpt-oss" lands on OpenAI and "o3" is not found+// inside another word.+const FAMILIES: Array<[RegExp, ModelMakerId]> = [+ // Fine-tunes and distillations name their base too ("deepseek-r1-distill-+ // llama", "llama-3.1-nemotron"), so the derived brand is listed before the+ // base families it is built on.+ [/\bnemotron\b/, 'nvidia'],+ [/\bdeepseek\b/, 'deepseek'],+ [/\b(qwen|qwq|qvq)\b/, 'qwen'],+ [/\b(mistral|mixtral|codestral|magistral|devstral|ministral|pixtral|mathstral|voxtral)\b/, 'mistral'],+ [/\b(gemini|gemma|palm|bison|learnlm)\b/, 'google'],+ [/\b(llama|codellama)\b/, 'meta'],+ [/\bclaude\b/, 'anthropic'],+ // Matched after the letter/digit split below, so "o3-mini" reads "o 3 mini".+ [/\b(gpt|chatgpt|davinci|whisper|dall e|dalle)\b|\bo [134]\b/, 'openai'],+ [/\b(kimi|moonshot)\b/, 'moonshot'],+ [/\b(glm|chatglm|cogview|cogvideo)\b/, 'zhipu'],+ [/\b(minimax|abab|hailuo)\b/, 'minimax'],+ [/\bernie\b/, 'baidu'],+ [/\bsonar\b/, 'perplexity'],+ [/\b(command|aya|c4ai)\b/, 'cohere'],+ [/\b(phi|wizardlm|orca)\b/, 'microsoft'],+ [/\bgrok\b/, 'xai'],+ [/\b(hunyuan|hy)\b/, 'tencent'],+ [/\bgranite\b/, 'ibm'],+ [/\bjamba\b/, 'ai21'],+ [/\binkling\b/, 'thinkingmachines'],+]++// The org segment of a namespaced id ("meta-llama/…", "Qwen/…") is a strong+// signal on its own, and settles ids whose family word is unusual.+const ORGS: Array<[RegExp, ModelMakerId]> = [+ [/^(google|gemini)$/, 'google'],+ [/^(meta|meta-llama|facebook)$/, 'meta'],+ [/^qwen$/, 'qwen'],+ [/^deepseek(-ai)?$/, 'deepseek'],+ [/^mistralai$/, 'mistral'],+ [/^anthropic$/, 'anthropic'],+ [/^openai$/, 'openai'],+ [/^nvidia$/, 'nvidia'],+ [/^moonshotai$/, 'moonshot'],+ [/^(zai-org|thudm|zhipuai|zhipu)$/, 'zhipu'],+ [/^minimaxai$/, 'minimax'],+ [/^baidu$/, 'baidu'],+ [/^perplexity(-ai)?$/, 'perplexity'],+ [/^cohereforai$/, 'cohere'],+ [/^microsoft$/, 'microsoft'],+ [/^(x-ai|xai)$/, 'xai'],+ [/^tencent$/, 'tencent'],+ [/^ibm(-granite)?$/, 'ibm'],+ [/^ai21(labs)?$/, 'ai21'],+ [/^thinkingmachines$/, 'thinkingmachines'],+]++export function modelMakerOf(modelId: string | null | undefined): ModelMaker | null {+ if (!modelId) return null+ const lower = modelId.trim().toLowerCase()+ // "org/name[:tag]" — try the org first, then the name; a bare id is its own name.+ const slash = lower.indexOf('/')+ const org = slash > 0 ? lower.slice(0, slash) : ''+ const name = (slash > 0 ? lower.slice(slash + 1) : lower).replace(/:.*$/, '')+ // Word boundaries need separators between letters and digits too+ // ("llama3", "gemma2", "qwen3", "o3mini", "gpt4o").+ const words = name.replace(/([a-z])(\d)/g, '$1 $2').replace(/(\d)([a-z])/g, '$1 $2').replace(/[-_./]/g, ' ')+ for (const [re, id] of FAMILIES) if (re.test(words)) return { id, name: MAKERS[id] }+ if (org) for (const [re, id] of ORGS) if (re.test(org)) return { id, name: MAKERS[id] }+ return null+}diff --git a/client/src/lib/transcription.test.ts b/client/src/lib/transcription.test.tsnew file mode 100644index 00000000..5a479c83--- /dev/null+++ b/client/src/lib/transcription.test.ts@@ -0,0 +1,75 @@+import { describe, it, expect } from 'vitest'+import {+ appendDictation,+ availableTranscriptionModels,+ hasTranscription,+ pickRecordingMimeType,+ recordingFilename,+ resolveDictationModel,+ transcriptionOptions,+ type TranscriptionModelRow,+} from './transcription'++function row(over: Partial<TranscriptionModelRow> & Pick<TranscriptionModelRow, 'id' | 'platform' | 'modelId'>): TranscriptionModelRow {+ return { displayName: over.modelId, modality: 'transcription', enabled: true, keyCount: 1, ...over }+}++const MODELS: TranscriptionModelRow[] = [+ row({ id: 1, platform: 'groq', modelId: 'whisper-large-v3', displayName: 'Whisper Large v3' }),+ row({ id: 2, platform: 'openrouter', modelId: 'whisper-large-v3', displayName: 'Whisper Large v3' }),+ row({ id: 3, platform: 'cloudflare', modelId: 'whisper-tiny-en', displayName: 'Whisper Tiny (en)' }),+ row({ id: 4, platform: 'nvidia', modelId: 'parakeet', keyCount: 0 }), // no key+ row({ id: 5, platform: 'groq', modelId: 'whisper-large-v3-turbo', enabled: false }), // switched off+ row({ id: 6, platform: 'pollinations', modelId: 'openai-audio', modality: 'audio' }), // wrong direction+]++describe('availableTranscriptionModels / hasTranscription', () => {+ it('keeps only enabled transcription rows on a keyed platform', () => {+ expect(availableTranscriptionModels(MODELS).map(m => m.id)).toEqual([1, 2, 3])+ expect(hasTranscription(MODELS)).toBe(true)+ expect(hasTranscription(MODELS.filter(m => m.id > 3))).toBe(false)+ expect(hasTranscription([])).toBe(false)+ })+})++describe('transcriptionOptions', () => {+ it('lists Auto first, then one option per model id with its hosts', () => {+ const opts = transcriptionOptions(MODELS, 'Auto')+ expect(opts.map(o => o.value)).toEqual(['auto', 'whisper-large-v3', 'whisper-tiny-en'])+ expect(opts[1]).toMatchObject({ label: 'Whisper Large v3', sub: '2 providers', platforms: ['groq', 'openrouter'] })+ expect(opts[2]).toMatchObject({ sub: 'cloudflare' })+ })+ it('is just Auto when nothing is usable', () => {+ expect(transcriptionOptions([], 'Auto')).toEqual([{ value: 'auto', label: 'Auto' }])+ })+})++describe('resolveDictationModel', () => {+ it('honours a usable saved choice and falls back to auto otherwise', () => {+ expect(resolveDictationModel('whisper-tiny-en', MODELS)).toBe('whisper-tiny-en')+ expect(resolveDictationModel('parakeet', MODELS)).toBe('auto') // lost its key+ expect(resolveDictationModel('whisper-large-v3-turbo', MODELS)).toBe('auto') // disabled+ expect(resolveDictationModel(null, MODELS)).toBe('auto')+ expect(resolveDictationModel('auto', MODELS)).toBe('auto')+ })+})++describe('recording container', () => {+ it('prefers webm/opus and names the file to match', () => {+ expect(pickRecordingMimeType(() => true)).toBe('audio/webm;codecs=opus')+ expect(pickRecordingMimeType(t => t === 'audio/mp4')).toBe('audio/mp4')+ expect(pickRecordingMimeType(() => false)).toBeUndefined()+ expect(recordingFilename('audio/webm;codecs=opus')).toBe('dictation.webm')+ expect(recordingFilename('audio/mp4')).toBe('dictation.m4a')+ expect(recordingFilename('audio/ogg;codecs=opus')).toBe('dictation.ogg')+ expect(recordingFilename(undefined)).toBe('dictation.webm')+ })+})++describe('appendDictation', () => {+ it('joins spoken text onto typed text with a single space', () => {+ expect(appendDictation('', ' hello ')).toBe('hello')+ expect(appendDictation('Dear team, ', 'thanks for today')).toBe('Dear team, thanks for today')+ expect(appendDictation('typed', ' ')).toBe('typed')+ })+})diff --git a/client/src/lib/transcription.ts b/client/src/lib/transcription.tsnew file mode 100644index 00000000..6062f650--- /dev/null+++ b/client/src/lib/transcription.ts@@ -0,0 +1,80 @@+import type { ModelComboOption } from '@/components/model-combobox'++// Which speech-to-text models the Playground's mic can use, and how the+// dictation-model setting resolves against them. Pure, so the rules are+// testable without a browser or a MediaRecorder.++/** The slice of GET /api/media the mic needs. */+export interface TranscriptionModelRow {+ id: number+ platform: string+ modelId: string+ displayName: string+ modality: 'image' | 'video' | 'audio' | 'transcription'+ enabled: boolean+ keyCount: number+}++export const DICTATION_AUTO = 'auto'+export const DICTATION_MODEL_STORAGE_KEY = 'playground.transcriptionModel'++/** Transcription rows that can actually route: enabled, on a platform with a key. */+export function availableTranscriptionModels(models: readonly TranscriptionModelRow[]): TranscriptionModelRow[] {+ return models.filter(m => m.modality === 'transcription' && m.enabled && m.keyCount > 0)+}++export function hasTranscription(models: readonly TranscriptionModelRow[]): boolean {+ return availableTranscriptionModels(models).length > 0+}++/** Picker options: Auto first, then every usable model, once per model id+ * (the same Whisper on two hosts is one choice; the router picks the host). */+export function transcriptionOptions(models: readonly TranscriptionModelRow[], autoLabel: string): ModelComboOption[] {+ const byId = new Map<string, TranscriptionModelRow[]>()+ for (const m of availableTranscriptionModels(models)) {+ const list = byId.get(m.modelId)+ if (list) list.push(m)+ else byId.set(m.modelId, [m])+ }+ const options: ModelComboOption[] = [{ value: DICTATION_AUTO, label: autoLabel }]+ for (const [modelId, rows] of byId) {+ const platforms = [...new Set(rows.map(r => r.platform))]+ options.push({+ value: modelId,+ label: rows[0].displayName || modelId,+ sub: platforms.length === 1 ? platforms[0] : `${platforms.length} providers`,+ platforms,+ })+ }+ return options+}++/** The `model` the mic sends: the saved choice while it is still usable,+ * otherwise Auto — a model that lost its key must not make dictation fail. */+export function resolveDictationModel(choice: string | null | undefined, models: readonly TranscriptionModelRow[]): string {+ if (!choice || choice === DICTATION_AUTO) return DICTATION_AUTO+ return availableTranscriptionModels(models).some(m => m.modelId === choice) ? choice : DICTATION_AUTO+}++/** A recording container the browser can produce and providers accept, in+ * preference order. Returns undefined when nothing is supported (older+ * Safari), in which case MediaRecorder picks its own default. */+export function pickRecordingMimeType(isSupported: (type: string) => boolean): string | undefined {+ return ['audio/webm;codecs=opus', 'audio/webm', 'audio/mp4', 'audio/ogg;codecs=opus'].find(isSupported)+}++/** File name for the upload, matching the container so the provider can sniff it. */+export function recordingFilename(mimeType: string | undefined): string {+ if (!mimeType) return 'dictation.webm'+ if (mimeType.startsWith('audio/mp4')) return 'dictation.m4a'+ if (mimeType.startsWith('audio/ogg')) return 'dictation.ogg'+ return 'dictation.webm'+}++/** Append dictated text to what is already typed, with one space between. */+export function appendDictation(existing: string, text: string): string {+ const spoken = text.trim()+ if (!spoken) return existing+ if (!existing.trim()) return spoken+ return `${existing.replace(/\s+$/, '')} ${spoken}`+}diff --git a/client/src/lib/waveform.test.ts b/client/src/lib/waveform.test.tsnew file mode 100644index 00000000..f3ab8c26--- /dev/null+++ b/client/src/lib/waveform.test.ts@@ -0,0 +1,33 @@+import { describe, it, expect } from 'vitest'+import { barHeights, WAVE_BAR_COUNT } from './waveform'++describe('barHeights', () => {+ it('returns one height per bar, resting at the minimum on silence', () => {+ const h = barHeights(new Uint8Array(128).fill(0))+ expect(h).toHaveLength(WAVE_BAR_COUNT)+ expect(h.every(v => v === 3)).toBe(true)+ })++ it('hits the maximum on a saturated signal', () => {+ const h = barHeights(new Uint8Array(128).fill(255), 5, 2, 20)+ expect(h).toEqual([20, 20, 20, 20, 20])+ })++ it('puts the loudest (lowest) bins in the centre and falls off to the edges', () => {+ // Energy concentrated in the first bins, as a voice is.+ const data = new Uint8Array(128)+ for (let i = 0; i < 8; i++) data[i] = 255+ const h = barHeights(data, 7, 0, 10)+ const mid = 3+ expect(h[mid]).toBeGreaterThan(h[0])+ expect(h[mid]).toBeGreaterThan(h[6])+ expect(h[mid]).toBe(Math.max(...h))+ })++ it('handles empty input and odd sizes without gaps', () => {+ expect(barHeights([], 4, 1, 9)).toEqual([1, 1, 1, 1])+ const h = barHeights(new Uint8Array(10).fill(100), 6)+ expect(h).toHaveLength(6)+ expect(h.every(v => Number.isFinite(v) && v >= 3 && v <= 22)).toBe(true)+ })+})diff --git a/client/src/lib/waveform.ts b/client/src/lib/waveform.tsnew file mode 100644index 00000000..049532d8--- /dev/null+++ b/client/src/lib/waveform.ts@@ -0,0 +1,41 @@+// Turns an analyser's frequency snapshot into bar heights for the dictation+// wave drawn inside the composer while the mic is live. Pure, so the shaping+// is tested without an AudioContext.++/** Bars across the field. Odd so one sits dead centre. */+export const WAVE_BAR_COUNT = 31++/**+ * `data` is a getByteFrequencyData buffer (0..255 per bin). The bins are+ * bucketed evenly into `bars`, each bucket's mean drives one bar, and the+ * result is scaled into [min, max] px. Speech energy lives in the low bins,+ * so the buckets are laid out from the centre outwards — the middle bars+ * carry the voice, the edges the hiss — which reads as a wave rather than a+ * left-heavy staircase.+ */+export function barHeights(data: ArrayLike<number>, bars: number = WAVE_BAR_COUNT, min = 3, max = 22): number[] {+ const n = data.length+ if (bars <= 0) return []+ if (n === 0) return Array.from({ length: bars }, () => min)+ // Only the lower half of the spectrum carries anything a microphone hears.+ const usable = Math.max(1, Math.floor(n / 2))+ const perBar = usable / bars+ const levels: number[] = []+ for (let b = 0; b < bars; b++) {+ const start = Math.floor(b * perBar)+ const end = Math.max(start + 1, Math.floor((b + 1) * perBar))+ let sum = 0+ for (let i = start; i < end && i < n; i++) sum += data[i]+ levels.push(sum / (end - start) / 255)+ }+ // Centre-out ordering: bucket 0 (lowest, loudest) in the middle, then+ // alternating right/left so energy falls off symmetrically.+ const ordered: number[] = new Array(bars).fill(0)+ const mid = Math.floor(bars / 2)+ for (let b = 0; b < bars; b++) {+ const step = Math.ceil(b / 2)+ const idx = b % 2 === 0 ? mid + step : mid - step+ ordered[idx] = levels[b]+ }+ return ordered.map(v => min + Math.min(1, Math.max(0, v)) * (max - min))+}diff --git a/client/src/pages/PlaygroundPage.tsx b/client/src/pages/PlaygroundPage.tsxindex 7afcd60a..d0a5ba14 100644--- a/client/src/pages/PlaygroundPage.tsx+++ b/client/src/pages/PlaygroundPage.tsx@@ -1,11 +1,14 @@-import { useState, useRef, useEffect } from 'react'+import { useState, useRef, useEffect, useMemo, useCallback } from 'react'import { useQuery, useQueryClient } from '@tanstack/react-query'-import { ArrowUp, ChevronRight, CircleAlert, FileText, Paperclip, X } from 'lucide-react'+import { ChevronRight, CircleAlert, FileText, X } from 'lucide-react'import { apiFetch } from '@/lib/api'-import { Button } from '@/components/ui/button'import { buildModelOptions } from '@/lib/model-groups'import type { Chain } from '@/components/chain-manager'import { Markdown } from '@/components/markdown'+import { ArtifactHostContext } from '@/lib/artifact-host'+import { ArtifactPanel, ARTIFACT_PANEL_TRANSITION_MS } from '@/components/playground/artifact-panel'+import { ARTIFACT_WIDTH_STORAGE_KEY, clampArtifactWidth, readArtifactWidth } from '@/lib/artifact-panel-size'+import { extractArtifacts, type Artifact, type ArtifactKind } from '@/lib/artifacts'import { CopyButton } from '@/components/copy-button'import { toast } from '@/lib/toast'import {@@ -28,6 +31,18 @@ import {import { readChatStream } from '@/lib/playground-stream'import { ConversationSidebar } from '@/components/playground/conversation-sidebar'import { SettingsRail } from '@/components/playground/settings-rail'+import { LiquidComposer } from '@/components/playground/liquid-composer'+import { ModelMakerIcon } from '@/components/model-maker-icon'+import { composerHasContent } from '@/lib/composer-geometry'+import {+ DICTATION_AUTO,+ DICTATION_MODEL_STORAGE_KEY,+ appendDictation,+ hasTranscription,+ resolveDictationModel,+ transcriptionOptions,+ type TranscriptionModelRow,+} from '@/lib/transcription'import {readSampling,samplingRequestParams,@@ -140,17 +155,18 @@ function ReasoningTrace({ text, answerStarted }: { text: string; answerStarted?:if (answerStarted && !touched.current) setOpen(false)}, [answerStarted])return (- <div className="mb-2 text-[10px] leading-snug text-muted-foreground/80">+ <div className="mb-2 text-muted-foreground/80"><buttontype="button"onClick={() => { touched.current = true; setOpen(o => !o) }}- className="inline-flex items-center gap-1 font-mono hover:text-foreground transition-colors"+ className="inline-flex items-center gap-1 font-mono text-[10px] leading-snug hover:text-foreground transition-colors"><ChevronRight className={`size-3 transition-transform ${open ? 'rotate-90' : ''}`} />{open ? t('common.hide') : t('common.show')}</button>{open && (- <div className="mt-1 whitespace-pre-wrap border-l border-border/60 pl-2.5 italic opacity-80">+ // Same type as the answer beneath it, size and leading, only quieter.+ <div className="mt-1 whitespace-pre-wrap border-l border-border/60 pl-2.5 text-sm leading-relaxed text-muted-foreground">{text}</div>)}@@ -209,10 +225,6 @@ export default function PlaygroundPage() {// Files staged for the NEXT message: images already downscaled to a data URI,// text-like files already decoded. Cleared on send. (#325)const [attachments, setAttachments] = useState<Attachment[]>([])- // Purely cosmetic: the composer row centres its buttons against a one-line- // box, but pins them to the bottom once the textarea has grown, which is- // where the eye expects them on a tall message.- const [composerGrown, setComposerGrown] = useState(false)const [dragging, setDragging] = useState(false)const messagesEndRef = useRef<HTMLDivElement>(null)const transcriptRef = useRef<HTMLDivElement>(null)@@ -256,6 +268,85 @@ export default function PlaygroundPage() {queryFn: () => apiFetch('/api/settings/api-key'),})+ // Speech-to-text for the composer's mic: which transcription models can+ // route right now, and which one the user asked for (Auto by default,+ // remembered in localStorage like the chat model).+ const { data: mediaData } = useQuery<{ models: TranscriptionModelRow[] }>({+ queryKey: ['media'],+ queryFn: () => apiFetch('/api/media'),+ })+ const mediaModels = mediaData?.models ?? []+ const transcriptionAvailable = hasTranscription(mediaModels)+ const [dictationChoice, setDictationChoice] = useState<string>(+ () => localStorage.getItem(DICTATION_MODEL_STORAGE_KEY) ?? DICTATION_AUTO,+ )+ const pickDictationModel = (v: string) => {+ setDictationChoice(v)+ localStorage.setItem(DICTATION_MODEL_STORAGE_KEY, v)+ }+ const dictationOptions = transcriptionOptions(mediaModels, t('playground.autoModel'))+ const dictationModel = resolveDictationModel(dictationChoice, mediaModels)++ // Artifacts (#playground): runnable code in a reply (HTML, SVG) opens in a+ // side panel with a sandboxed preview next to the source. A card in the+ // reply opens it by hand; a reply that finishes with an artifact opens its+ // first one on its own, once, like the Artifacts pattern users know.+ const [artifact, setArtifact] = useState<Artifact | null>(null)+ // `artifactOpen` drives the slide; the artifact itself stays mounted through+ // the exit animation and is dropped once it has finished.+ const [artifactOpen, setArtifactOpen] = useState(false)+ const closeTimer = useRef<ReturnType<typeof setTimeout> | null>(null)+ const [artifactWidth, setArtifactWidth] = useState<number>(+ () => readArtifactWidth(localStorage.getItem(ARTIFACT_WIDTH_STORAGE_KEY), window.innerWidth),+ )+ const commitArtifactWidth = (w: number) => {+ const next = clampArtifactWidth(w, window.innerWidth)+ setArtifactWidth(next)+ localStorage.setItem(ARTIFACT_WIDTH_STORAGE_KEY, String(next))+ }+ const showArtifact = (a: Artifact) => {+ if (closeTimer.current) { clearTimeout(closeTimer.current); closeTimer.current = null }+ setArtifact(a)+ setArtifactOpen(true)+ }+ const closeArtifact = () => {+ setArtifactOpen(false)+ if (closeTimer.current) clearTimeout(closeTimer.current)+ closeTimer.current = setTimeout(() => { setArtifact(null); closeTimer.current = null }, ARTIFACT_PANEL_TRANSITION_MS)+ }+ useEffect(() => () => { if (closeTimer.current) clearTimeout(closeTimer.current) }, [])+ const openArtifact = useCallback((kind: ArtifactKind, language: string, code: string) => {+ if (closeTimer.current) { clearTimeout(closeTimer.current); closeTimer.current = null }+ setArtifact({+ id: `manual:${code.length}:${code.slice(0, 40)}`,+ kind,+ language,+ code,+ title: /<title[^>]*>([^<]{1,120})<\/title>/i.exec(code)?.[1]?.trim() ?? null,+ filename: kind === 'svg' ? 'artifact.svg' : 'artifact.html',+ })+ setArtifactOpen(true)+ }, [])+ const artifactHost = useMemo(() => ({ open: openArtifact, activeCode: artifact?.code ?? null }), [openArtifact, artifact?.code])+ // Auto-open only for a reply that just finished HERE — not for every old+ // conversation that happens to contain one, which would pop the panel on+ // each visit. `loading` going true→false marks the reply's completion.+ const wasLoadingRef = useRef(false)+ useEffect(() => {+ if (loading) { wasLoadingRef.current = true; return }+ if (!wasLoadingRef.current) return+ wasLoadingRef.current = false+ const idx = messages.length - 1+ const last = messages[idx]+ if (!last || last.role !== 'assistant' || last.isError) return+ const found = extractArtifacts(last.content, idx)+ if (found.length === 0) return+ // Deferred a tick: the open is a consequence of the reply landing, not+ // part of rendering it, and it must not cascade into this commit.+ const timer = setTimeout(() => showArtifact(found[0]), 0)+ return () => clearTimeout(timer)+ }, [loading, messages])+const { data: fallbackEntries = [] } = useQuery<FallbackEntry[]>({queryKey: ['fallback'],queryFn: () => apiFetch('/api/fallback'),@@ -810,7 +901,6 @@ export default function PlaygroundPage() {// leaves the old one in the sidebar. (resetConversationState stops an open// stream too, or its next frame would paste the half-finished answer back// into the empty transcript.)- const handleClear = handleNewConversation// Searchable picker options: auto + fusion pinned at the top, then every model// ordered BY INTELLIGENCE — size tier first (Frontier→Small), then the catalog@@ -862,7 +952,9 @@ export default function PlaygroundPage() {// the three panes that mean to. The transcript keeps its OWN scroll// container in the middle column — transcriptRef and the follow-the-stream// behaviour are untouched by the reshuffle.- <div className="flex min-h-0 flex-1 overflow-hidden">+ // Every lucide icon in the three panes draws at 1.5 instead of the default+ // 2: the page is dense with small glyphs and the bold stroke read heavy.+ <div className="flex min-h-0 flex-1 overflow-hidden [&_svg]:stroke-[1.5]"><ConversationSidebarconversations={conversations}activeId={conversationId}@@ -875,22 +967,9 @@ export default function PlaygroundPage() {/><div className="flex min-w-0 flex-1 flex-col">- {/* The page header, reduced to a slim bar: the title, what is answering,- and the one action that belongs to the transcript rather than to a- rail. */}- <div className="flex shrink-0 items-center gap-2 border-b px-4 py-2">- <h1 className="shrink-0 text-sm font-semibold tracking-tight">{t('playground.title')}</h1>- <span className="min-w-0 truncate text-xs text-muted-foreground">- <span aria-hidden="true">· </span>{activeModelLabel}- </span>- {messages.length > 0 && (- <Button variant="outline" size="sm" className="ms-auto" onClick={handleClear}>- {t('playground.clear')}- </Button>- )}- </div>-- <div ref={transcriptRef} className="min-h-0 flex-1 overflow-y-auto p-6 space-y-4">+ <div ref={transcriptRef} className="min-h-0 flex-1 overflow-y-auto p-6">+ {/* The chat sits in a centred column; the composer below shares its width. */}+ <div className="mx-auto h-full w-full max-w-3xl space-y-4">{messages.length === 0 ? (<div className="flex items-center justify-center h-full text-center"><div className="space-y-2 max-w-sm">@@ -912,15 +991,18 @@ export default function PlaygroundPage() {const showBubble = msg.role === 'user' || msg.content.length > 0 || !!msg.reasoningreturn (<div key={i} className={`flex ${msg.role === 'user' ? 'justify-end' : 'justify-start'}`}>- <div className={`flex flex-col gap-1 max-w-[80%] ${msg.role === 'user' ? 'items-end' : 'items-start'}`}>+ {/* The user speaks in a bubble; the assistant answers as plain+ text across the whole column — no box, no padding, no fill.+ Errors keep their tinted box so they read as errors. */}+ <div className={`flex flex-col gap-1 ${msg.role === 'user' ? 'max-w-[80%] items-end' : 'w-full items-start'}`}>{showBubble && (<div- className={`group relative rounded-2xl px-4 py-2.5 text-sm leading-relaxed ${+ className={`group relative text-sm leading-relaxed ${msg.role === 'user'- ? 'bg-primary text-primary-foreground'+ ? 'rounded-2xl bg-primary px-4 py-2.5 text-primary-foreground': msg.isError- ? 'border border-destructive/25 bg-destructive/10 text-destructive'- : 'bg-muted'+ ? 'rounded-2xl border border-destructive/25 bg-destructive/10 px-4 py-2.5 text-destructive'+ : 'w-full'}`}>{msg.images && msg.images.length > 0 && (@@ -943,18 +1025,13 @@ export default function PlaygroundPage() {{msg.reasoning && (<ReasoningTrace text={msg.reasoning} answerStarted={msg.content.length > 0} />)}- <Markdown>{msg.content}</Markdown>+ <ArtifactHostContext.Provider value={artifactHost}>+ <Markdown>{msg.content}</Markdown>+ </ArtifactHostContext.Provider></>) : (<div className="whitespace-pre-wrap">{msg.content}</div>)}- {msg.role === 'assistant' && !msg.isError && msg.content && (- <CopyButton- text={msg.content}- label={t('playground.copyReply')}- className="absolute right-1.5 top-1.5 size-6 opacity-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-100"- />- )}{msg.meta && (<div className="flex items-center gap-2 mt-2 flex-wrap text-[11px] opacity-70 tabular-nums">{(fusionPanel || msg.meta.fusionStreaming) ? (@@ -975,8 +1052,12 @@ export default function PlaygroundPage() {</>) : (<>- {msg.meta.platform && <span>{msg.meta.platform}</span>}- {msg.meta.model && <span className="font-mono">· {msg.meta.model}</span>}+ {/* The maker's mark stands in for the host's name; the+ host is in the tooltip. Unknown makers get a neutral glyph. */}+ {(msg.meta.model || msg.meta.platform) && (+ <ModelMakerIcon modelId={msg.meta.model} platform={msg.meta.platform} className="size-3" />+ )}+ {msg.meta.model && <span className="font-mono">{msg.meta.model}</span>}{/* Which provider served it is known from theresponse headers straight away; the timingonly means something once the last frame@@ -987,8 +1068,22 @@ export default function PlaygroundPage() {)}</>)}+ {msg.role === 'assistant' && !msg.isError && msg.content && (+ <CopyButton+ text={msg.content}+ label={t('playground.copyReply')}+ className="size-5 border-0 bg-transparent opacity-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-60 hover:!opacity-100"+ />+ )}</div>)}+ {!msg.meta && msg.role === 'assistant' && !msg.isError && msg.content && (+ <CopyButton+ text={msg.content}+ label={t('playground.copyReply')}+ className="mt-1 size-5 border-0 bg-transparent opacity-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-60 hover:!opacity-100"+ />+ )}</div>)}{msg.role === 'assistant' && fusionPanel && fusionPanel.length > 0 && (@@ -1008,7 +1103,7 @@ export default function PlaygroundPage() {whole message on the buffered path. */}{loading && messages[messages.length - 1]?.role === 'user' && (<div className="flex justify-start">- <div className="bg-muted rounded-2xl px-4 py-3">+ <div className="py-2"><div className="flex gap-1"><span className="size-1.5 rounded-full bg-muted-foreground/50 animate-bounce" style={{ animationDelay: '0ms' }} /><span className="size-1.5 rounded-full bg-muted-foreground/50 animate-bounce" style={{ animationDelay: '150ms' }} />@@ -1020,10 +1115,11 @@ export default function PlaygroundPage() {<div ref={messagesEndRef} /></>)}+ </div></div><div- className={`bg-background/50 p-3 transition-colors ${dragging ? 'bg-primary/5 ring-1 ring-inset ring-primary/40' : ''}`}+ className={`mx-auto w-full max-w-3xl px-6 pb-4 pt-1 transition-colors ${dragging ? 'rounded-2xl bg-primary/5 ring-1 ring-inset ring-primary/40' : ''}`}onDragOver={e => { e.preventDefault(); setDragging(true) }}onDragLeave={e => { if (!e.currentTarget.contains(e.relatedTarget as Node)) setDragging(false) }}onDrop={e => {@@ -1059,71 +1155,64 @@ export default function PlaygroundPage() {<span>{t('playground.visionWarning', { model: activeModelLabel })}</span></div>)}- <div className={`flex gap-2 ${composerGrown ? 'items-end' : 'items-center'}`}>- <input- ref={fileInputRef}- type="file"- multiple- accept={ACCEPT_ATTRIBUTE}- className="hidden"- onChange={e => {- addFiles([...(e.target.files ?? [])])- e.target.value = ''- }}- />- <Button- variant="ghost"- size="icon"- className="text-muted-foreground hover:text-foreground"- onClick={() => fileInputRef.current?.click()}- disabled={loading}- aria-label={t('playground.attach')}- title={t('playground.attach')}- >- <Paperclip className="size-4" />- </Button>- <textarea- ref={inputRef}- value={input}- onChange={e => setInput(e.target.value)}- onKeyDown={handleKeyDown}- onPaste={e => {- // Screenshot straight from the clipboard; a normal text paste- // carries no files and falls through untouched.- const files = [...e.clipboardData.files]- if (files.length === 0) return- e.preventDefault()- addFiles(files)- }}- placeholder={t('playground.inputPlaceholder')}- rows={1}- className="flex-1 resize-none rounded-lg border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring/50 min-h-[40px] max-h-[160px]"- style={{ height: 'auto', overflow: 'hidden' }}- onInput={e => {- const el = e.target as HTMLTextAreaElement- el.style.height = 'auto'- const height = Math.min(el.scrollHeight, 160)- el.style.height = height + 'px'- setComposerGrown(height > 44)- }}- />- <Button- onClick={handleSend}- disabled={loading || (!input.trim() && attachments.length === 0)}- size="icon"- className="rounded-full"- aria-label={loading ? t('playground.sending') : t('playground.send')}- title={loading ? t('playground.sending') : t('playground.send')}- >- <ArrowUp className="size-4" />- </Button>- </div>+ <input+ ref={fileInputRef}+ type="file"+ multiple+ accept={ACCEPT_ATTRIBUTE}+ className="hidden"+ onChange={e => {+ addFiles([...(e.target.files ?? [])])+ e.target.value = ''+ }}+ />+ <LiquidComposer+ inputRef={inputRef}+ value={input}+ onChange={setInput}+ onKeyDown={handleKeyDown}+ onPaste={e => {+ // Screenshot straight from the clipboard; a normal text paste+ // carries no files and falls through untouched.+ const files = [...e.clipboardData.files]+ if (files.length === 0) return+ e.preventDefault()+ addFiles(files)+ }}+ placeholder={t('playground.inputPlaceholder')}+ hasContent={composerHasContent(input, attachments.length)}+ loading={loading}+ onSend={handleSend}+ onAttach={() => fileInputRef.current?.click()}+ labels={{ attach: t('playground.attach'), send: t('playground.send'), sending: t('playground.sending') }}+ dictation={{+ available: transcriptionAvailable,+ model: dictationModel,+ apiKey: keyData?.apiKey,+ onText: text => {+ setInput(prev => appendDictation(prev, text))+ inputRef.current?.focus()+ },+ }}+ /></div></div>{/* Last column, and last in the DOM on purpose: the system prompt textareait carries must never come before the composer's, which is what aplain `textarea` selector reaches for. */}+ {/* The artifact panel takes the rail's column while something is open;+ closing it brings the settings rail back as it was. */}+ {artifact ? (+ <ArtifactPanel+ artifact={artifact}+ open={artifactOpen}+ width={artifactWidth}+ onWidthChange={setArtifactWidth}+ onWidthCommit={commitArtifactWidth}+ onClose={closeArtifact}+ />+ ) : (<SettingsRailopen={settingsOpen}onToggle={toggleSettings}@@ -1131,11 +1220,16 @@ export default function PlaygroundPage() {modelOptions={pickerOptions}onSelectModel={pickModel}noModels={availableModels.length === 0}+ dictationValue={dictationModel}+ dictationOptions={dictationOptions}+ onSelectDictation={pickDictationModel}+ noTranscription={!transcriptionAvailable}systemPrompt={systemPrompt}onSystemPromptChange={updateSystemPrompt}sampling={sampling}onSamplingChange={updateSampling}/>+ )}</div>)}diff --git a/package-lock.json b/package-lock.jsonindex 42594a02..a119c0d8 100644--- a/package-lock.json+++ b/package-lock.json@@ -58,6 +58,8 @@"@tanstack/react-query": "^5.97.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1",+ "highlight.js": "^11.12.0",+ "liquid-gooey": "^0.2.1","lucide-react": "^1.8.0","react": "^19.2.4","react-dom": "^19.2.4",@@ -66,6 +68,7 @@"recharts": "^3.8.1","remark-gfm": "^4.0.1","shadcn": "^4.2.0",+ "simple-icons": "^16.31.0","tailwind-merge": "^3.5.0","tailwindcss": "^4.2.2","tw-animate-css": "^1.4.0"@@ -7238,6 +7241,15 @@"hermes-estree": "0.25.1"}},+ "node_modules/highlight.js": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.12.0.tgz",+ "integrity": "sha512-nbfWpyRMcMrPMmDwJB+dhX/eiaPKtc2RB+0QZskqJ3WjRA/FDS0e9hZrx8EC/lbEv8gXy98FcDbNa/dspAaJMg==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=12.0.0"+ }+ },"node_modules/hono": {"version": "4.13.3","resolved": "https://registry.npmjs.org/hono/-/hono-4.13.3.tgz",@@ -8239,6 +8251,16 @@"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==","license": "MIT"},+ "node_modules/liquid-gooey": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/liquid-gooey/-/liquid-gooey-0.2.1.tgz",+ "integrity": "sha512-BRb0Rscie4JCHFmk4bkWxM+p03c34sidLgNE8XFJGRGEyWM/Wf0FYztJH3CfMWwOVajd4dVurAFe+BTSj8Eeeg==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=18",+ "react-dom": ">=18"+ }+ },"node_modules/locate-path": {"version": "6.0.0","resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",@@ -11267,6 +11289,25 @@"simple-concat": "^1.0.0"}},+ "node_modules/simple-icons": {+ "version": "16.31.0",+ "resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-16.31.0.tgz",+ "integrity": "sha512-dDEqvQrmxL7ZnqQtGHGjCNW6CfiwzAif+83Hol9JXAnAB6wh2zsZD7Sc1kWT0O/RRAKt7xfG8W6UZhYBPD+GAA==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/simple-icons"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/simple-icons"+ }+ ],+ "license": "CC0-1.0",+ "engines": {+ "node": ">=0.12.18"+ }+ },"node_modules/sisteransi": {"version": "1.0.5","resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",