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
Playground conversations + post-add model picker (#944)
Tashfeen6c4233b68476
diff --git a/client/src/App.tsx b/client/src/App.tsxindex 67b52511..bce2efaa 100644--- a/client/src/App.tsx+++ b/client/src/App.tsx@@ -336,6 +336,25 @@ function PageBoundary({ children }: { children: ReactNode }) {return <ErrorBoundary key={location.pathname}>{children}</ErrorBoundary>}+// Routes that own the whole viewport instead of sitting in the shell's centred,+// padded column. Only the Playground so far: its three columns run edge to edge+// and the transcript scrolls inside its own pane, so the page must be exactly+// as tall as what is left under the navbar — not a centred card with margins.+const FULL_BLEED_ROUTES = new Set(['/playground'])++// The shell's content container. A full-bleed route drops the max-width and the+// padding and becomes a flex child that fills the rest of the screen; every+// other route keeps the exact classes it always had.+function PageContainer({ children }: { children: ReactNode }) {+ const location = useLocation()+ const fullBleed = FULL_BLEED_ROUTES.has(location.pathname)+ return (+ <main className={fullBleed ? 'flex min-h-0 flex-1 flex-col' : 'mx-auto max-w-6xl px-6 py-8'}>+ {children}+ </main>+ )+}+function App() {return (<QueryClientProvider client={queryClient}>@@ -343,9 +362,13 @@ function App() {<I18nProvider><BrowserRouter basename={import.meta.env.BASE_URL}><AuthGate>- <div className={`min-h-screen ${isDesktopApp ? 'desktop-backdrop' : 'bg-background'}`}>+ {/* Column, so a full-bleed route can claim the height the navbar+ leaves without anyone having to know how tall the navbar is.+ Fixed-position children (toaster, palette, reminder) are out of+ flow, and a padded route stretches to nothing it can show. */}+ <div className={`flex min-h-screen flex-col ${isDesktopApp ? 'desktop-backdrop' : 'bg-background'}`}><Navbar />- <main className="mx-auto max-w-6xl px-6 py-8">+ <PageContainer><PageBoundary><Routes><Route path="/" element={<Navigate to="/models/chat" replace />} />@@ -371,7 +394,7 @@ function App() {<Route path="*" element={<NotFoundPage />} /></Routes></PageBoundary>- </main>+ </PageContainer><Toaster /><CommandPalette /><UpdateReminder />diff --git a/client/src/components/keys/add-key-dialog.tsx b/client/src/components/keys/add-key-dialog.tsxindex 8c5bdd99..922bbfe0 100644--- a/client/src/components/keys/add-key-dialog.tsx+++ b/client/src/components/keys/add-key-dialog.tsx@@ -4,9 +4,10 @@ import { Dialog, DialogClose, DialogPopup, DialogTitle } from '@/components/ui/dimport { SegmentedControl } from '@/components/ui/segmented-control'import { useI18n } from '@/i18n'import type { Platform } from '../../../../shared/types'-import { AddKeyForm } from './add-key-form'+import { AddKeyForm, type AddedKeyScopeOffer } from './add-key-form'import { ImportKeysSection } from './import-keys-section'import { CustomProviderSection } from './custom-provider-section'+import { ModelSelectDialog } from './model-select-dialog'type Pane = 'provider' | 'import' | 'custom'@@ -24,6 +25,16 @@ export function AddKeyDialog({ open, onOpenChange, initialPlatform }: {const [pane, setPane] = useState<Pane>('provider')const close = () => onOpenChange(false)+ // #657: the scope picker for a key the provider pane just added. It lives+ // here, not in the pane, because the pane unmounts with this dialog — the+ // picker has to outlive the add form it follows. null = nothing pending, and+ // the whole flow is skippable: dismissing leaves the key exactly as added.+ const [scopeOffer, setScopeOffer] = useState<AddedKeyScopeOffer | null>(null)+ const finishAdd = (offer?: AddedKeyScopeOffer) => {+ close()+ setScopeOffer(offer ?? null)+ }+// The pane sticks across opens (reopening to import twice should not reset// it), but a provider-specific entry point must land on the provider pane// or the preselection would be invisible. Adjusted during render (not in an@@ -35,34 +46,47 @@ export function AddKeyDialog({ open, onOpenChange, initialPlatform }: {}return (- <Dialog open={open} onOpenChange={onOpenChange}>- <DialogPopup maxWidth="max-w-3xl">- <div className="mb-4 flex items-center justify-between gap-4">- <DialogTitle>{t('keys.addKey')}</DialogTitle>- <DialogClose- aria-label={t('common.dismiss')}- className="-mr-1 rounded-lg p-1 text-muted-foreground/70 transition-colors outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"- >- <X className="size-4" />- </DialogClose>- </div>+ <>+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogPopup maxWidth="max-w-3xl">+ <div className="mb-4 flex items-center justify-between gap-4">+ <DialogTitle>{t('keys.addKey')}</DialogTitle>+ <DialogClose+ aria-label={t('common.dismiss')}+ className="-mr-1 rounded-lg p-1 text-muted-foreground/70 transition-colors outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"+ >+ <X className="size-4" />+ </DialogClose>+ </div>- <SegmentedControl- value={pane}- onValueChange={setPane}- options={[- { value: 'provider', label: t('keys.paneProviderKey') },- { value: 'import', label: t('keys.paneImportFile') },- { value: 'custom', label: t('keys.paneCustomEndpoint') },- ]}- ariaLabel={t('keys.addKey')}- className="mb-5"- />+ <SegmentedControl+ value={pane}+ onValueChange={setPane}+ options={[+ { value: 'provider', label: t('keys.paneProviderKey') },+ { value: 'import', label: t('keys.paneImportFile') },+ { value: 'custom', label: t('keys.paneCustomEndpoint') },+ ]}+ ariaLabel={t('keys.addKey')}+ className="mb-5"+ />- {pane === 'provider' && <AddKeyForm onSuccess={close} initialPlatform={initialPlatform} />}- {pane === 'import' && <ImportKeysSection onImported={close} />}- {pane === 'custom' && <CustomProviderSection onAdded={close} />}- </DialogPopup>- </Dialog>+ {pane === 'provider' && <AddKeyForm onSuccess={finishAdd} initialPlatform={initialPlatform} />}+ {pane === 'import' && <ImportKeysSection onImported={close} />}+ {pane === 'custom' && <CustomProviderSection onAdded={close} />}+ </DialogPopup>+ </Dialog>++ {/* Mounted only while an offer is pending, so the tick state always starts+ from "all" without a reset effect. */}+ {scopeOffer && (+ <ModelSelectDialog+ keyId={scopeOffer.keyId}+ platformLabel={scopeOffer.platformLabel}+ candidates={scopeOffer.candidates}+ onOpenChange={() => setScopeOffer(null)}+ />+ )}+ </>)}diff --git a/client/src/components/keys/add-key-form.tsx b/client/src/components/keys/add-key-form.tsxindex 3c781f65..1095ef12 100644--- a/client/src/components/keys/add-key-form.tsx+++ b/client/src/components/keys/add-key-form.tsx@@ -10,8 +10,19 @@ import { FieldError } from '@/components/ui/field-error'import type { ApiKey, Platform } from '../../../../shared/types'import { useI18n } from '@/i18n'import { toast } from '@/lib/toast'+import type { FallbackEntry } from '@/lib/routing'+import { scopeCandidates, shouldOfferModelPicker, type ScopeCandidate } from '@/lib/model-scope-selection'import { GetKeyLink, PLATFORMS } from './shared'+/** A key that just landed, plus the models the picker should offer for it.+ * Only produced when the picker is actually worth showing (#657) — otherwise+ * the add stays as silent as it has always been. */+export interface AddedKeyScopeOffer {+ keyId: number+ platformLabel: string+ candidates: ScopeCandidate[]+}+// The "Provider key" pane of the Add key dialog: paste a credential for a known// provider. Extracted verbatim from the old inline KeysPage form so all field// validation, the keyless/Cloudflare special cases, and the POST /api/keys@@ -19,7 +30,10 @@ import { GetKeyLink, PLATFORMS } from './shared'// `initialPlatform` preselects the provider (checklist-chip entry); the field// stays editable. The dialog remounts this pane per open, so a plain initial// state is enough.-export function AddKeyForm({ onSuccess, initialPlatform }: { onSuccess: () => void; initialPlatform?: Platform }) {+//+// `onSuccess` may carry a scope offer for the key that was just added; the+// dialog owns that follow-up because this pane unmounts the moment it closes.+export function AddKeyForm({ onSuccess, initialPlatform }: { onSuccess: (offer?: AddedKeyScopeOffer) => void; initialPlatform?: Platform }) {const { t } = useI18n()const queryClient = useQueryClient()const [platform, setPlatform] = useState<Platform | ''>(initialPlatform ?? '')@@ -47,6 +61,32 @@ export function AddKeyForm({ onSuccess, initialPlatform }: { onSuccess: () => voconst addedPlatforms = useMemo(() => new Set(keys.map(k => k.platform)), [keys])const [hideAdded, setHideAdded] = useState(false)+ // #657 post-add scope picker: the platform's model list. This is the same+ // ['fallback'] query the Models page, the fallback chain and the command+ // palette already run — react-query dedupes it, so opening this pane costs at+ // most one GET that the rest of the dashboard was going to make anyway. That+ // is why the picker needs no new endpoint and no widening of POST /api/keys+ // (whose response only carries a model COUNT, not the ids). An empty or+ // still-loading list simply means no picker, which is the old behaviour.+ const { data: catalog = [] } = useQuery<FallbackEntry[]>({+ queryKey: ['fallback'],+ queryFn: () => apiFetch('/api/fallback'),+ })++ // Whether the key that just landed is worth offering the picker for, and the+ // rows to offer. Anything missing — no id back, a keyless sentinel, a catalog+ // too small or not loaded — returns undefined, and the add stays silent.+ function scopeOffer(keyId: number | undefined, added: string): AddedKeyScopeOffer | undefined {+ if (typeof keyId !== 'number') return undefined+ const provider = PLATFORMS.find(p => p.value === added)+ // Keyless gateways are excluded from scope editing on the key row too — no+ // credential means nothing was bought per model group.+ if (!provider || provider.keyless) return undefined+ const candidates = scopeCandidates(catalog, added)+ if (!shouldOfferModelPicker(candidates)) return undefined+ return { keyId, platformLabel: provider.label, candidates }+ }+const platformOptions = useMemo(() => PLATFORMS// The selected provider always stays listed, so hiding added ones never@@ -63,8 +103,8 @@ export function AddKeyForm({ onSuccess, initialPlatform }: { onSuccess: () => voconst addKey = useMutation({meta: { silenceToast: true },mutationFn: (body: { platform: string; key: string; label?: string }) =>- apiFetch<{ notice?: string | null }>('/api/keys', { method: 'POST', body: JSON.stringify(body) }),- onSuccess: (data) => {+ apiFetch<{ id: number; notice?: string | null }>('/api/keys', { method: 'POST', body: JSON.stringify(body) }),+ onSuccess: (data, variables) => {queryClient.invalidateQueries({ queryKey: ['keys'] })queryClient.invalidateQueries({ queryKey: ['health'] })queryClient.invalidateQueries({ queryKey: ['fallback'] })@@ -74,7 +114,7 @@ export function AddKeyForm({ onSuccess, initialPlatform }: { onSuccess: () => vo// current catalog tier yet (#438) — surfaced as a toast now that the// dialog closes on success.if (data?.notice) toast.info(data.notice)- onSuccess()+ onSuccess(scopeOffer(data?.id, variables.platform))},})diff --git a/client/src/components/keys/model-select-dialog.tsx b/client/src/components/keys/model-select-dialog.tsxnew file mode 100644index 00000000..8e46a93e--- /dev/null+++ b/client/src/components/keys/model-select-dialog.tsx@@ -0,0 +1,162 @@+import { useState } from 'react'+import { useMutation, useQueryClient } from '@tanstack/react-query'+import { apiFetch } from '@/lib/api'+import { Button } from '@/components/ui/button'+import { Dialog, DialogPopup, DialogTitle } from '@/components/ui/dialog'+import { useI18n } from '@/i18n'+import { toast } from '@/lib/toast'+import { formatContext } from '@/lib/routing'+import { resolveScopeUpdate, type ScopeCandidate } from '@/lib/model-scope-selection'++// Post-add model picker. A key pasted for a platform with a large catalog is+// assumed to serve all of it (#657: modelScope null), which is wrong for relay+// keys sold per model group — and the symptom is a run of 401s at routing time+// rather than anything the Keys page shows. So once, right after the add, show+// what this key is about to be asked to serve.+//+// Everything is ticked on arrival because "all" is both the current behaviour+// and the right default; confirming untouched therefore sends NO request at+// all (see resolveScopeUpdate — a stored full list would freeze the key at+// today's catalog). Only a genuine subset costs one PATCH. Dismissing costs+// nothing: the key is already added and already works.+//+// The list is handed in by the add flow, which reads it from the ['fallback']+// model list the dashboard already holds — this dialog fetches nothing.+export function ModelSelectDialog({+ keyId,+ platformLabel,+ candidates,+ onOpenChange,+}: {+ keyId: number+ /** Human-readable provider name for the subtitle, e.g. "Groq". */+ platformLabel: string+ candidates: ScopeCandidate[]+ onOpenChange: (open: boolean) => void+}) {+ const { t } = useI18n()+ const queryClient = useQueryClient()++ const allIds = candidates.map(c => c.modelId)+ // Mounted only while open, so the all-ticked default seeds from props+ // without a reset effect.+ const [selected, setSelected] = useState<Set<string>>(() => new Set(allIds))++ const save = useMutation({+ // The failure is shown inline, right under the list it belongs to.+ meta: { silenceToast: true },+ mutationFn: (modelScope: string[]) =>+ apiFetch(`/api/keys/${keyId}`, { method: 'PATCH', body: JSON.stringify({ modelScope }) }),+ onSuccess: (_data, modelScope) => {+ queryClient.invalidateQueries({ queryKey: ['keys'] })+ // Singular/plural as separate keys, the way keys.modelScopeBadgeOne/Other+ // already do it — this i18n layer has no plural rules of its own.+ toast.success(t(+ modelScope.length === 1 ? 'keys.modelPicker.scopedOne' : 'keys.modelPicker.scopedOther',+ { count: modelScope.length },+ ))+ onOpenChange(false)+ },+ })++ const toggle = (id: string) => {+ setSelected(prev => {+ const next = new Set(prev)+ if (next.has(id)) next.delete(id)+ else next.add(id)+ return next+ })+ }++ const allSelected = allIds.length > 0 && allIds.every(id => selected.has(id))+ const toggleAll = () => setSelected(allSelected ? new Set() : new Set(allIds))++ const confirm = () => {+ const update = resolveScopeUpdate(allIds, selected)+ // Untouched (or somehow empty) = the key keeps the null scope it was added+ // with. Closing is the whole action; there is nothing to save.+ if (!update.patch) {+ onOpenChange(false)+ return+ }+ save.mutate(update.modelScope)+ }++ return (+ <Dialog open onOpenChange={onOpenChange}>+ <DialogPopup maxWidth="max-w-xl">+ <DialogTitle>{t('keys.modelPicker.title')}</DialogTitle>+ <p className="mt-1 text-xs text-muted-foreground">+ {t('keys.modelPicker.hint', { provider: platformLabel })}+ </p>++ <label className="mt-4 flex items-center gap-2 text-xs font-medium">+ <input+ type="checkbox"+ checked={allSelected}+ onChange={toggleAll}+ className="size-4 accent-primary"+ />+ <span>{t('keys.discoverSelectAll')}</span>+ <span className="ml-auto font-normal text-muted-foreground tabular-nums">+ {t('keys.modelPicker.count', { selected: selected.size, total: allIds.length })}+ </span>+ </label>++ <div className="mt-2 max-h-[45vh] overflow-y-auto rounded-2xl border divide-y">+ {candidates.map(model => (+ <label+ key={model.modelId}+ className="flex cursor-pointer items-center gap-2 px-3 py-2 text-xs hover:bg-muted/30"+ >+ <input+ type="checkbox"+ checked={selected.has(model.modelId)}+ onChange={() => toggle(model.modelId)}+ className="size-4 accent-primary"+ />+ <span className="min-w-0 flex-1 truncate" title={model.modelId}>+ {model.displayName}+ </span>+ {/* Same badge vocabulary as the models table and the discover+ dialog, so a row here reads the way it will there. */}+ {model.sizeLabel && (+ <span+ title={t('models.sizeLabel')}+ className="shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground"+ >+ {model.sizeLabel}+ </span>+ )}+ {model.contextWindow !== null && model.contextWindow > 0 && (+ <span+ title={t('models.ctxTitle')}+ className="shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground tabular-nums"+ >+ {t('models.ctxBadge', { size: formatContext(model.contextWindow) })}+ </span>+ )}+ </label>+ ))}+ </div>++ <p className="mt-3 text-[11px] text-muted-foreground">+ {allSelected ? t('keys.modelPicker.allNote') : t('keys.modelPicker.subsetNote')}+ </p>++ {save.isError && (+ <p className="mt-2 text-xs text-destructive">{(save.error as Error).message}</p>+ )}++ <div className="mt-5 flex items-center justify-end gap-2">+ <Button variant="outline" size="sm" onClick={() => onOpenChange(false)} disabled={save.isPending}>+ {t('keys.modelPicker.skip')}+ </Button>+ <Button size="sm" onClick={confirm} disabled={selected.size === 0 || save.isPending}>+ {save.isPending ? t('common.saving') : t('common.save')}+ </Button>+ </div>+ </DialogPopup>+ </Dialog>+ )+}diff --git a/client/src/components/playground/conversation-sidebar.tsx b/client/src/components/playground/conversation-sidebar.tsxnew file mode 100644index 00000000..eb4759d1--- /dev/null+++ b/client/src/components/playground/conversation-sidebar.tsx@@ -0,0 +1,196 @@+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 { useI18n } from '@/i18n'++// The Playground's saved-conversation rail. Collapses to a narrow strip (the+// toggle and "new chat" stay reachable) so a long transcript can have the whole+// width when you want it; the open/closed choice is remembered by the page.+//+// Deliberately dumb: every mutation is handed up to PlaygroundPage, which owns+// the active conversation, the transcript, and the saving. All this does is+// list, select, rename in place, and confirm a delete.++export function ConversationSidebar({+ conversations,+ activeId,+ open,+ onToggle,+ onNew,+ onSelect,+ onRename,+ onDelete,+}: {+ conversations: ConversationSummary[]+ activeId: number | null+ open: boolean+ onToggle: () => void+ onNew: () => void+ onSelect: (id: number) => void+ onRename: (id: number, title: string) => void+ onDelete: (id: number) => void+}) {+ const { t } = useI18n()+ const [renamingId, setRenamingId] = 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+ // answer streams.+ const [, setTick] = useState(0)++ useEffect(() => {+ const timer = window.setInterval(() => setTick(n => n + 1), 60_000)+ return () => window.clearInterval(timer)+ }, [])++ useEffect(() => {+ if (renamingId !== null) renameRef.current?.select()+ }, [renamingId])++ const startRename = (conversation: ConversationSummary) => {+ setRenamingId(conversation.id)+ setDraft(conversation.title)+ }++ const commitRename = () => {+ if (renamingId === null) return+ const title = draft.trim()+ const previous = conversations.find(c => c.id === renamingId)+ setRenamingId(null)+ // An empty box is a cancel, not a request for a nameless conversation.+ if (title && title !== previous?.title) onRename(renamingId, title)+ }++ if (!open) {+ return (+ <div className="flex w-11 shrink-0 flex-col items-center gap-1 border-e bg-card py-3">+ <Button+ variant="ghost"+ size="icon-sm"+ onClick={onToggle}+ aria-label={t('playgroundSessions.showSidebar')}+ title={t('playgroundSessions.showSidebar')}+ >+ <PanelLeftOpen className="size-4" />+ </Button>+ <Button+ variant="ghost"+ size="icon-sm"+ onClick={onNew}+ aria-label={t('playgroundSessions.newConversation')}+ title={t('playgroundSessions.newConversation')}+ >+ <MessageSquarePlus className="size-4" />+ </Button>+ </div>+ )+ }++ return (+ <div className="flex w-60 shrink-0 flex-col overflow-hidden border-e bg-card">+ <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>+ <Button+ variant="ghost"+ size="icon-sm"+ 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" />+ </Button>+ </div>++ <div className="min-h-0 flex-1 overflow-y-auto p-1.5">+ {conversations.length === 0 ? (+ <p className="px-2 py-3 text-xs text-muted-foreground">+ {t('playgroundSessions.empty')}+ </p>+ ) : (+ <ul className="space-y-0.5">+ {conversations.map(conversation => {+ const isActive = conversation.id === activeId+ const when = relativeTime(conversation.updatedAt)+ return (+ <li key={conversation.id}>+ {renamingId === conversation.id ? (+ <input+ ref={renameRef}+ value={draft}+ onChange={e => setDraft(e.target.value)}+ onBlur={commitRename}+ onKeyDown={e => {+ if (e.key === 'Enter') { e.preventDefault(); commitRename() }+ if (e.key === 'Escape') { e.preventDefault(); setRenamingId(null) }+ }}+ aria-label={t('playgroundSessions.renamePlaceholder')}+ placeholder={t('playgroundSessions.renamePlaceholder')}+ className="w-full rounded-lg border bg-background px-2 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-ring/50"+ />+ ) : (+ <div+ className={`group flex items-center gap-0.5 rounded-lg pr-0.5 transition-colors ${+ isActive ? 'bg-muted' : 'hover:bg-muted/60'+ }`}+ >+ <button+ type="button"+ onClick={() => onSelect(conversation.id)}+ onDoubleClick={() => startRename(conversation)}+ className="min-w-0 flex-1 px-2 py-1.5 text-left"+ >+ <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')}+ >+ <Trash2 className="size-3" />+ </ConfirmButton>+ </div>+ </div>+ )}+ </li>+ )+ })}+ </ul>+ )}+ </div>+ </div>+ )+}diff --git a/client/src/components/playground/settings-rail.tsx b/client/src/components/playground/settings-rail.tsxnew file mode 100644index 00000000..db708923--- /dev/null+++ b/client/src/components/playground/settings-rail.tsx@@ -0,0 +1,232 @@+import { PanelRightClose, PanelRightOpen } from 'lucide-react'+import { Button } from '@/components/ui/button'+import { Switch } from '@/components/ui/switch'+import { ModelCombobox, type ModelComboOption } from '@/components/model-combobox'+import {+ SAMPLING_FIELDS,+ SAMPLING_RANGES,+ formatSamplingValue,+ samplingActiveCount,+ setSamplingEnabled,+ setSamplingValue,+ type SamplingField,+ type SamplingSettings,+} from '@/lib/playground-sampling'+import { useI18n } from '@/i18n'++// The Playground's right-hand settings rail: everything that shapes the NEXT+// request but is not the request itself — which model answers, the system+// prompt it answers under, and the sampling knobs.+//+// It mirrors the conversation sidebar on the other edge: same collapse-to-a-+// strip move, same remembered open/closed choice (kept by the page). Collapsed+// it still says whether anything is set, so a temperature you dialled in last+// week cannot quietly steer today's answers from behind a closed rail.+//+// Deliberately dumb, like the sidebar: it owns no state, every change goes up+// to PlaygroundPage, which persists it.++const FIELD_LABEL_KEYS: Record<SamplingField, string> = {+ temperature: 'playground.temperature',+ topP: 'playground.topP',+ maxTokens: 'playground.maxTokens',+}++export interface SettingsRailProps {+ open: boolean+ onToggle: () => void+ /** Model picker, moved here from the page header. */+ modelValue: string+ modelOptions: ModelComboOption[]+ onSelectModel: (value: string) => void+ /** Shown under the picker when no platform has an enabled key yet. */+ noModels: boolean+ systemPrompt: string+ onSystemPromptChange: (value: string) => void+ sampling: SamplingSettings+ onSamplingChange: (next: SamplingSettings) => void+}++function SamplingControlRow({+ field,+ settings,+ onChange,+}: {+ field: SamplingField+ settings: SamplingSettings+ onChange: (next: SamplingSettings) => void+}) {+ const { t } = useI18n()+ const range = SAMPLING_RANGES[field]+ const control = settings[field]+ const label = t(FIELD_LABEL_KEYS[field])++ return (+ <div className="space-y-1.5">+ <div className="flex items-center gap-2">+ <label+ htmlFor={`playground-sampling-${field}`}+ className={`flex-1 truncate text-xs font-medium transition-colors ${+ control.enabled ? '' : 'text-muted-foreground'+ }`}+ >+ {label}+ </label>+ <span className="shrink-0 text-xs tabular-nums text-muted-foreground">+ {control.enabled+ ? formatSamplingValue(field, control.value)+ : t('playground.samplingDefault')}+ </span>+ <Switch+ size="sm"+ aria-label={label}+ checked={control.enabled}+ onCheckedChange={enabled => onChange(setSamplingEnabled(settings, field, enabled))}+ />+ </div>+ {/* max_tokens is an unbounded integer in practice, so it gets a box; the+ two [0,1]-ish knobs get sliders you can sweep. A switched-off control+ stays on screen, disabled, so the rail does not jump as you toggle. */}+ {field === 'maxTokens' ? (+ <input+ id={`playground-sampling-${field}`}+ type="number"+ inputMode="numeric"+ min={range.min}+ max={range.max}+ step={range.step}+ disabled={!control.enabled}+ value={control.value}+ onChange={e => onChange(setSamplingValue(settings, field, Number(e.target.value)))}+ aria-label={label}+ className="h-8 w-full rounded-lg border border-input bg-transparent px-2.5 font-mono text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30"+ />+ ) : (+ <input+ id={`playground-sampling-${field}`}+ type="range"+ min={range.min}+ max={range.max}+ step={range.step}+ disabled={!control.enabled}+ value={control.value}+ onChange={e => onChange(setSamplingValue(settings, field, Number(e.target.value)))}+ aria-label={label}+ className="w-full cursor-pointer accent-primary disabled:cursor-not-allowed disabled:opacity-50"+ />+ )}+ </div>+ )+}++export function SettingsRail({+ open,+ onToggle,+ modelValue,+ modelOptions,+ onSelectModel,+ noModels,+ systemPrompt,+ onSystemPromptChange,+ sampling,+ onSamplingChange,+}: SettingsRailProps) {+ const { t } = useI18n()+ // Anything the collapsed strip should own up to: a system prompt riding on+ // every request, or a knob overriding the provider's default.+ const tweaked = samplingActiveCount(sampling) > 0 || systemPrompt.trim().length > 0++ if (!open) {+ return (+ <div className="flex w-11 shrink-0 flex-col items-center gap-1 border-s bg-card py-3">+ <Button+ variant="ghost"+ size="icon-sm"+ onClick={onToggle}+ aria-label={t('playground.showSettings')}+ title={t('playground.showSettings')}+ >+ <PanelRightOpen className="size-4" />+ </Button>+ {tweaked && <span className="size-1.5 rounded-full bg-primary/70" />}+ </div>+ )+ }++ return (+ <div className="flex w-72 shrink-0 flex-col border-s bg-card">+ <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('settings.title')}+ </span>+ <Button+ variant="ghost"+ size="icon-sm"+ onClick={onToggle}+ aria-label={t('playground.hideSettings')}+ title={t('playground.hideSettings')}+ >+ <PanelRightClose className="size-4" />+ </Button>+ </div>++ <div className="min-h-0 flex-1 space-y-5 overflow-y-auto p-3">+ <div className="space-y-1.5">+ <span className="block text-xs font-medium">{t('common.model')}</span>+ <ModelCombobox+ value={modelValue}+ options={modelOptions}+ onSelect={onSelectModel}+ ariaLabel={t('playground.selectModel')}+ 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"+ footer={+ noModels ? (+ // Models only appear once a platform has an enabled key. Without+ // one, the list is just Auto/Fusion and looks broken — say why. (#269)+ <div className="px-2 py-1.5 text-xs text-muted-foreground">{t('playground.noModels')}</div>+ ) : undefined+ }+ />+ </div>++ {/* The system prompt textarea deliberately lives BELOW the composer in+ DOM order (the rail is the last column): `textarea` first-match+ selectors still land on the message box. */}+ <div className="space-y-1.5">+ <label htmlFor="playground-system-prompt" className="flex items-center gap-1.5 text-xs font-medium">+ {t('playground.systemPromptLabel')}+ {systemPrompt.trim() && <span className="size-1.5 rounded-full bg-primary/70" />}+ </label>+ <textarea+ id="playground-system-prompt"+ value={systemPrompt}+ onChange={e => onSystemPromptChange(e.target.value)}+ placeholder={t('playground.systemPromptPlaceholder')}+ rows={4}+ className="max-h-64 min-h-[88px] w-full resize-y rounded-lg border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring/50"+ />+ </div>++ <div className="space-y-3">+ <div className="space-y-0.5">+ <span className="block text-xs font-medium">{t('playground.samplingHeading')}</span>+ <p className="text-[11px] leading-snug text-muted-foreground">+ {t('playground.samplingHelp')}+ </p>+ </div>+ {SAMPLING_FIELDS.map(field => (+ <SamplingControlRow+ key={field}+ field={field}+ settings={sampling}+ onChange={onSamplingChange}+ />+ ))}+ </div>+ </div>+ </div>+ )+}diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex 85df457a..06f1aaec 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -519,6 +519,16 @@"modelScopeClear": "ወሰን አጥፋ","modelScopeBadgeOne": "የተገደበ · 1 ሞዴል","modelScopeBadgeOther": "የተገደበ · {count} ሞዴሎች",+ "modelPicker": {+ "title": "ይህ ቁልፍ የትኞቹን ሞዴሎች ያገልግል?",+ "hint": "የ{provider} ቁልፍዎ ተጨምሯል እና በአሁኑ ጊዜ ከታች ያሉትን ሁሉንም ሞዴሎች ያገለግላል። ይህ ቁልፍ እንዲጠቀምባቸው ያልተፈቀደላቸውን ሞዴሎች ምልክት ያንሱ — ራውተሩ ለእነሱ ይህን ቁልፍ ያልፋል።",+ "count": "ከ{total} ውስጥ {selected} ተመርጠዋል",+ "allNote": "ሁሉም ተመርጠዋል — ምንም አይቀመጥም፣ እና ወደፊት ወደ ካታሎግ የሚጨመሩ ሞዴሎችም ይህን ቁልፍ ይጠቀማሉ።",+ "subsetNote": "ይህ ቁልፍ በተመረጡት ሞዴሎች ብቻ ይገደባል። ይህን በኋላ ከቁልፉ ረድፍ መቀየር ይችላሉ።",+ "skip": "አሁን አይደለም",+ "scopedOne": "ቁልፍ በ1 ሞዴል ተገድቧል",+ "scopedOther": "ቁልፍ በ{count} ሞዴሎች ተገድቧል"+ },"cpTitle": "የደንበኛ መገለጫዎች","cpDesc": "ለእያንዳንዱ ደንበኛ የተለየ የ API ቁልፍ፣ እያንዳንዱም አገልጋዩ ሁልጊዜ የሚተገብረው የስርዓት መመሪያ አለው።","cpEmpty": "እስካሁን የደንበኛ መገለጫ የለም።",@@ -650,6 +660,14 @@"errorPrefix": "ስህተት","systemPromptLabel": "የስርዓት ጥያቄ","systemPromptPlaceholder": "አማራጭ። ከውይይትዎ በፊት እንደ የስርዓት መልእክት ተልኳል።",+ "showSettings": "ማሰናጃዎችን አሳይ",+ "hideSettings": "ማሰናጃዎችን ደብቅ",+ "samplingHeading": "ናሙና አወሳሰድ",+ "samplingHelp": "ሲጠፋ የአቅራቢው ራሱ ነባር ዋጋ ተግባራዊ ይሆናል። የሚላኩት እርስዎ ያበሩዋቸው መቆጣጠሪያዎች ብቻ ናቸው።",+ "samplingDefault": "ነባር",+ "temperature": "ሙቀት",+ "topP": "Top P",+ "maxTokens": "ከፍተኛ ማስኬቶች","errorTitle": "ጥያቄ አልተሳካም","attach": "ፋይሎችን ያያይዙ","attachTooMany": "በአንድ መልእክት እስከ {count} ፋይሎች ማያያዝ ይችላሉ።",@@ -659,6 +677,24 @@"noVisionBadge": "ምስል የለም","visionWarning": "{model} ምስሎችን አይቀበልም። ምስል የሚቀበል ሞዴል ወይም ራስ-ሰር ይምረጡ።"},+ "playgroundSessions": {+ "heading": "ውይይቶች",+ "newConversation": "አዲስ ውይይት",+ "showSidebar": "ውይይቶችን አሳይ",+ "hideSidebar": "ውይይቶችን ደብቅ",+ "empty": "እስካሁን የተቀመጠ ውይይት የለም።",+ "untitled": "ርዕስ የሌለው ውይይት",+ "rename": "ስም ቀይር",+ "renamePlaceholder": "የውይይት ስም",+ "messageCount": "{count} መልእክቶች",+ "justNow": "አሁን",+ "minutesAgo": "ከ{count} ደቂቃ በፊት",+ "hoursAgo": "ከ{count} ሰዓት በፊት",+ "daysAgo": "ከ{count} ቀን በፊት",+ "loadFailed": "ያንን ውይይት መክፈት አልተቻለም።",+ "renameFailed": "ያንን ውይይት እንደገና መሰየም አልተቻለም።",+ "deleteFailed": "ያንን ውይይት መሰረዝ አልተቻለም።"+ },"embeddings": {"title": "ሞዴሎች","description": "መክተቶች በቤተሰብ ውስጥ ብቻ ይወድቃሉ በሌላ አቅራቢ የሚቀርበው ተመሳሳይ ሞዴል። ከተለያዩ ሞዴሎች የተውጣጡ ቬክተሮች ተኳሃኝ አይደሉም, ስለዚህ ራውተር ሞዴሎችን በአንተ ላይ ፈጽሞ አይለዋወጥም.",diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex a5f45046..5dadc643 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -519,6 +519,16 @@"modelScopeClear": "مسح النطاق","modelScopeBadgeOne": "مقيّد · نموذج واحد","modelScopeBadgeOther": "مقيّد · {count} نماذج",+ "modelPicker": {+ "title": "ما النماذج التي ينبغي أن يخدمها هذا المفتاح؟",+ "hint": "تمت إضافة مفتاح {provider} الخاص بك، وهو يخدم حاليًا كل نموذج أدناه. ألغِ تحديد أي نموذج لا يُسمح لهذا المفتاح باستخدامه — سيتخطاه الموجّه لتلك النماذج.",+ "count": "تم تحديد {selected} من {total}",+ "allNote": "كل النماذج محددة — لا يُحفظ أي نطاق، وستستخدم النماذج التي تُضاف إلى الكتالوج لاحقًا هذا المفتاح أيضًا.",+ "subsetNote": "سيقتصر هذا المفتاح على النماذج المحددة. يمكنك تغيير ذلك لاحقًا من صف المفتاح.",+ "skip": "ليس الآن",+ "scopedOne": "المفتاح مقيّد بنموذج واحد",+ "scopedOther": "المفتاح مقيّد بـ {count} نماذج"+ },"cpTitle": "ملفات تعريف العملاء","cpDesc": "مفاتيح API لكل عميل، لكل منها موجّه نظام يطبّقه الخادم دائمًا.","cpEmpty": "لا توجد ملفات تعريف عملاء بعد.",@@ -650,6 +660,14 @@"errorPrefix": "خطأ:","systemPromptLabel": "موجه النظام","systemPromptPlaceholder": "اختياري. يتم إرسالها كرسالة نظام قبل الدردشة.",+ "showSettings": "عرض الإعدادات",+ "hideSettings": "إخفاء الإعدادات",+ "samplingHeading": "أخذ العينات",+ "samplingHelp": "عند إيقافه، ينطبق الإعداد الافتراضي الخاص بالمزود نفسه. ولا تُرسل سوى عناصر التحكم التي تُفعّلها.",+ "samplingDefault": "الافتراضي",+ "temperature": "درجة الحرارة",+ "topP": "Top P",+ "maxTokens": "الحد الأقصى للرموز","errorTitle": "فشل الطلب","attach": "إرفاق الملفات","attachTooMany": "يمكنك إرفاق ما يصل إلى {count} ملفات لكل رسالة.",@@ -659,6 +677,24 @@"noVisionBadge": "بدون صور","visionWarning": "{model} لا يقبل الصور. اختر نموذج رؤية أو «تلقائي»."},+ "playgroundSessions": {+ "heading": "المحادثات",+ "newConversation": "محادثة جديدة",+ "showSidebar": "عرض المحادثات",+ "hideSidebar": "إخفاء المحادثات",+ "empty": "لا توجد محادثات محفوظة حتى الآن.",+ "untitled": "محادثة بلا عنوان",+ "rename": "إعادة تسمية",+ "renamePlaceholder": "اسم المحادثة",+ "messageCount": "{count} رسالة",+ "justNow": "الآن",+ "minutesAgo": "قبل {count} د",+ "hoursAgo": "قبل {count} س",+ "daysAgo": "قبل {count} ي",+ "loadFailed": "تعذّر فتح تلك المحادثة.",+ "renameFailed": "تعذّرت إعادة تسمية تلك المحادثة.",+ "deleteFailed": "تعذّر حذف تلك المحادثة."+ },"embeddings": {"title": "نماذج","description": "تفشل عمليات التضمين داخل العائلة فقط: نفس النموذج الذي يقدمه مزود آخر. المتجهات من نماذج مختلفة غير متوافقة، لذلك لا يقوم جهاز التوجيه بتبديل النماذج عليك أبدًا.",diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex 7ca2d4b8..44136838 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -519,6 +519,16 @@"modelScopeClear": "Əhatəni təmizlə","modelScopeBadgeOne": "məhdud · 1 model","modelScopeBadgeOther": "məhdud · {count} model",+ "modelPicker": {+ "title": "Bu açar hansı modellərə xidmət etsin?",+ "hint": "{provider} açarınız əlavə edildi və hazırda aşağıdakı bütün modellərə xidmət edir. Bu açarın istifadəsinə icazə verilməyən modellərin işarəsini götürün — router həmin modellər üçün bu açarı ötürəcək.",+ "count": "{total} modeldən {selected} seçilib",+ "allNote": "Hamısı seçilib — heç nə yadda saxlanmır və sonradan kataloqa əlavə olunan modellər də bu açardan istifadə edəcək.",+ "subsetNote": "Bu açar yalnız seçilmiş modellərlə məhdudlaşacaq. Bunu sonra açarın sətrindən dəyişə bilərsiniz.",+ "skip": "İndi yox",+ "scopedOne": "Açar 1 modellə məhdudlaşdırıldı",+ "scopedOther": "Açar {count} modellə məhdudlaşdırıldı"+ },"cpTitle": "Müştəri profilləri","cpDesc": "Hər müştəri üçün ayrıca API açarı; onun sistem promptunu server həmişə tətbiq edir.","cpEmpty": "Hələ müştəri profili yoxdur.",@@ -650,6 +660,14 @@"errorPrefix": "Səhv:","systemPromptLabel": "Sistem sorğusu","systemPromptPlaceholder": "İstəyə bağlıdır. Çatdan əvvəl sistem mesajı kimi göndərildi.",+ "showSettings": "Parametrləri göstər",+ "hideSettings": "Parametrləri gizlət",+ "samplingHeading": "Nümunələmə",+ "samplingHelp": "Söndürüldükdə təchizatçının öz defolt dəyəri tətbiq olunur. Yalnız yandırdığınız tənzimləyicilər göndərilir.",+ "samplingDefault": "Default",+ "temperature": "Temperatur",+ "topP": "Top P",+ "maxTokens": "Maksimum token","errorTitle": "Tələb uğursuz oldu","attach": "Fayl əlavə et","attachTooMany": "Hər mesaja ən çox {count} fayl əlavə edə bilərsiniz.",@@ -659,6 +677,24 @@"noVisionBadge": "Şəkilsiz","visionWarning": "{model} şəkilləri qəbul etmir. Şəkil dəstəkləyən model və ya Avtomatik seçin."},+ "playgroundSessions": {+ "heading": "Söhbətlər",+ "newConversation": "Yeni söhbət",+ "showSidebar": "Söhbətləri göstər",+ "hideSidebar": "Söhbətləri gizlət",+ "empty": "Hələ yadda saxlanmış söhbət yoxdur.",+ "untitled": "Adsız söhbət",+ "rename": "Adını dəyiş",+ "renamePlaceholder": "Söhbətin adı",+ "messageCount": "{count} mesaj",+ "justNow": "indicə",+ "minutesAgo": "{count} dəq əvvəl",+ "hoursAgo": "{count} saat əvvəl",+ "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ı."+ },"embeddings": {"title": "Modellər","description": "Embeddinglər yalnız bir ailə daxilində failover edir: başqa bir provayder tərəfindən xidmət göstərilən eyni model. Fərqli modellərin vektorları uyğun deyil, ona görə router heç vaxt modelləri dəyişmir.",diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex c9b5a385..9bd67d08 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -519,6 +519,16 @@"modelScopeClear": "Изчисти обхвата","modelScopeBadgeOne": "ограничен · 1 модел","modelScopeBadgeOther": "ограничен · {count} модела",+ "modelPicker": {+ "title": "Кои модели да обслужва този ключ?",+ "hint": "Вашият ключ {provider} беше добавен и в момента обслужва всички модели по-долу. Махнете отметката от тези, които този ключ няма право да използва — за тях рутерът ще го пропуска.",+ "count": "Избрани {selected} от {total}",+ "allNote": "Избрано е всичко — нищо не се запазва, а моделите, добавени в каталога по-късно, също ще използват този ключ.",+ "subsetNote": "Този ключ ще бъде ограничен до избраните модели. Можете да промените това по-късно от реда на ключа.",+ "skip": "Не сега",+ "scopedOne": "Ключът е ограничен до 1 модел",+ "scopedOther": "Ключът е ограничен до {count} модела"+ },"cpTitle": "Клиентски профили","cpDesc": "Отделни API ключове за всеки клиент, всеки със системен промпт, който сървърът винаги прилага.","cpEmpty": "Все още няма клиентски профили.",@@ -650,6 +660,14 @@"errorPrefix": "Грешка:","systemPromptLabel": "Системна подсказка","systemPromptPlaceholder": "По желание. Изпратено е като системно съобщение преди чата.",+ "showSettings": "Покажи настройките",+ "hideSettings": "Скрий настройките",+ "samplingHeading": "Семплиране",+ "samplingHelp": "При изключено се прилага стойността по подразбиране на самия доставчик. Изпращат се само контролите, които включите.",+ "samplingDefault": "По подразбиране",+ "temperature": "Температура",+ "topP": "Top P",+ "maxTokens": "Максимум токени","errorTitle": "Заявката беше провалена","attach": "Прикачване на файлове","attachTooMany": "Може да прикачите до {count} файла на съобщение.",@@ -659,6 +677,24 @@"noVisionBadge": "Без изображения","visionWarning": "{model} не приема изображения. Изберете модел с визия или Авто."},+ "playgroundSessions": {+ "heading": "Разговори",+ "newConversation": "Нов разговор",+ "showSidebar": "Покажи разговорите",+ "hideSidebar": "Скрий разговорите",+ "empty": "Все още няма запазени разговори.",+ "untitled": "Разговор без име",+ "rename": "Преименувай",+ "renamePlaceholder": "Име на разговора",+ "messageCount": "{count} съобщения",+ "justNow": "току-що",+ "minutesAgo": "преди {count} мин",+ "hoursAgo": "преди {count} ч",+ "daysAgo": "преди {count} д",+ "loadFailed": "Разговорът не можа да бъде отворен.",+ "renameFailed": "Разговорът не можа да бъде преименуван.",+ "deleteFailed": "Разговорът не можа да бъде изтрит."+ },"embeddings": {"title": "Модели","description": "Вгражданията се отказват само в рамките на едно семейство: същият модел, обслужван от друг доставчик. Векторите от различни модели са несъвместими, затова рутерът никога не сменя моделите на вас.",diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex 6b455099..cbe7e9fe 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -519,6 +519,16 @@"modelScopeClear": "পরিধি মুছুন","modelScopeBadgeOne": "সীমিত · 1টি মডেল","modelScopeBadgeOther": "সীমিত · {count}টি মডেল",+ "modelPicker": {+ "title": "এই কী কোন মডেলগুলির জন্য কাজ করবে?",+ "hint": "আপনার {provider} কী যোগ করা হয়েছে এবং এটি এখন নিচের প্রতিটি মডেলের জন্য কাজ করে। যেসব মডেলে এই কী ব্যবহার করা উচিত নয়, সেগুলির টিক তুলে দিন — রাউটার সেগুলির জন্য এই কী এড়িয়ে যাবে।",+ "count": "{total}টির মধ্যে {selected}টি নির্বাচিত",+ "allNote": "সবকিছু নির্বাচিত — কিছুই সংরক্ষণ করা হয় না, এবং পরে ক্যাটালগে যোগ হওয়া মডেলগুলিও এই কী ব্যবহার করবে।",+ "subsetNote": "এই কী শুধুমাত্র নির্বাচিত মডেলগুলিতে সীমাবদ্ধ থাকবে। আপনি পরে কী-এর সারি থেকে এটি পরিবর্তন করতে পারবেন।",+ "skip": "এখন নয়",+ "scopedOne": "কী 1টি মডেলে সীমাবদ্ধ",+ "scopedOther": "কী {count}টি মডেলে সীমাবদ্ধ"+ },"cpTitle": "ক্লায়েন্ট প্রোফাইল","cpDesc": "প্রতিটি ক্লায়েন্টের জন্য আলাদা API কী, যার সিস্টেম প্রম্পট সার্ভার সবসময় প্রয়োগ করে।","cpEmpty": "এখনও কোনো ক্লায়েন্ট প্রোফাইল নেই।",@@ -650,6 +660,14 @@"errorPrefix": "ত্রুটি:","systemPromptLabel": "সিস্টেম প্রম্পট","systemPromptPlaceholder": "ঐচ্ছিক। আপনার চ্যাটের আগে একটি সিস্টেম বার্তা হিসাবে পাঠানো হয়েছে৷",+ "showSettings": "সেটিংস দেখান",+ "hideSettings": "সেটিংস লুকান",+ "samplingHeading": "স্যাম্পলিং",+ "samplingHelp": "বন্ধ থাকলে প্রদানকারীর নিজস্ব ডিফল্ট প্রযোজ্য হয়। আপনি যেগুলি চালু করবেন কেবল সেই নিয়ন্ত্রণগুলিই পাঠানো হয়।",+ "samplingDefault": "ডিফল্ট",+ "temperature": "তাপমাত্রা",+ "topP": "Top P",+ "maxTokens": "সর্বোচ্চ টোকেন","errorTitle": "অনুরোধ ব্যর্থ হয়েছে","attach": "ফাইল সংযুক্ত করুন","attachTooMany": "আপনি প্রতি বার্তায় সর্বোচ্চ {count}টি ফাইল সংযুক্ত করতে পারেন।",@@ -659,6 +677,24 @@"noVisionBadge": "ছবি নেই","visionWarning": "{model} ছবি গ্রহণ করে না। একটি দৃষ্টি মডেল বা স্বয়ংক্রিয় নির্বাচন করুন।"},+ "playgroundSessions": {+ "heading": "কথোপকথন",+ "newConversation": "নতুন কথোপকথন",+ "showSidebar": "কথোপকথন দেখান",+ "hideSidebar": "কথোপকথন লুকান",+ "empty": "এখনো কোনো সংরক্ষিত কথোপকথন নেই।",+ "untitled": "শিরোনামহীন কথোপকথন",+ "rename": "নাম পরিবর্তন করুন",+ "renamePlaceholder": "কথোপকথনের নাম",+ "messageCount": "{count}টি বার্তা",+ "justNow": "এইমাত্র",+ "minutesAgo": "{count} মি. আগে",+ "hoursAgo": "{count} ঘ. আগে",+ "daysAgo": "{count} দিন আগে",+ "loadFailed": "সেই কথোপকথনটি খোলা গেল না।",+ "renameFailed": "সেই কথোপকথনের নাম পরিবর্তন করা গেল না।",+ "deleteFailed": "সেই কথোপকথনটি মুছে দেওয়া গেল না।"+ },"embeddings": {"title": "মডেল","description": "এম্বেডিংগুলি শুধুমাত্র একটি পরিবারের মধ্যে ব্যর্থ হয়: একই মডেল অন্য প্রদানকারী দ্বারা পরিবেশিত হয়। বিভিন্ন মডেলের ভেক্টরগুলি বেমানান, তাই রাউটার কখনই আপনার উপর মডেল অদলবদল করে না।",diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex 49e886cb..cf370753 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -519,6 +519,16 @@"modelScopeClear": "Vymazat rozsah","modelScopeBadgeOne": "omezený · 1 model","modelScopeBadgeOther": "omezený · {count} modelů",+ "modelPicker": {+ "title": "Které modely má tento klíč obsluhovat?",+ "hint": "Váš klíč {provider} byl přidán a nyní obsluhuje všechny modely níže. Odškrtněte ty, které tento klíč nesmí používat — router jej pro ně přeskočí.",+ "count": "Vybráno {selected} z {total}",+ "allNote": "Vybráno vše — nic se neukládá a modely přidané do katalogu později budou tento klíč používat také.",+ "subsetNote": "Tento klíč bude omezen na vybrané modely. Změnit to můžete později v řádku klíče.",+ "skip": "Teď ne",+ "scopedOne": "Klíč omezen na 1 model",+ "scopedOther": "Klíč omezen na {count} modelů"+ },"cpTitle": "Profily klientů","cpDesc": "Samostatné API klíče pro každého klienta, každý se systémovým promptem, který server vždy použije.","cpEmpty": "Zatím žádné profily klientů.",@@ -650,6 +660,14 @@"errorPrefix": "Chyba:","systemPromptLabel": "Systémový prompt","systemPromptPlaceholder": "Volitelné. Odesláno jako systémová zpráva před vaším chatem.",+ "showSettings": "Zobrazit nastavení",+ "hideSettings": "Skrýt nastavení",+ "samplingHeading": "Vzorkování",+ "samplingHelp": "Když je vypnuté, použije se výchozí hodnota samotného poskytovatele. Odesílají se jen ovládací prvky, které zapnete.",+ "samplingDefault": "Výchozí",+ "temperature": "Teplota",+ "topP": "Top P",+ "maxTokens": "Max. tokenů","errorTitle": "Žádost neúspěšná","attach": "Připojit soubory","attachTooMany": "Ke zprávě můžete připojit až {count} souborů.",@@ -659,6 +677,24 @@"noVisionBadge": "Bez obrázků","visionWarning": "{model} nepřijímá obrázky. Zvolte model podporující obrázky nebo Auto."},+ "playgroundSessions": {+ "heading": "Konverzace",+ "newConversation": "Nová konverzace",+ "showSidebar": "Zobrazit konverzace",+ "hideSidebar": "Skrýt konverzace",+ "empty": "Zatím žádné uložené konverzace.",+ "untitled": "Konverzace bez názvu",+ "rename": "Přejmenovat",+ "renamePlaceholder": "Název konverzace",+ "messageCount": "{count} zpráv",+ "justNow": "právě teď",+ "minutesAgo": "před {count} min",+ "hoursAgo": "před {count} h",+ "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."+ },"embeddings": {"title": "Modely","description": "Embeddingy se přenášejí pouze v rámci rodiny: stejný model obsluhovaný jiným poskytovatelem. Vektory z různých modelů jsou nekompatibilní, takže router vám nikdy nevymění modely.",diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex d1c559e6..242a482b 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -519,6 +519,16 @@"modelScopeClear": "Ryd omfang","modelScopeBadgeOne": "begrænset · 1 model","modelScopeBadgeOther": "begrænset · {count} modeller",+ "modelPicker": {+ "title": "Hvilke modeller skal denne nøgle betjene?",+ "hint": "Din {provider}-nøgle er tilføjet og betjener i øjeblikket alle modeller nedenfor. Fjern fluebenet ved de modeller, nøglen ikke må bruges til — routeren springer den så over for dem.",+ "count": "{selected} af {total} valgt",+ "allNote": "Alt er valgt — der gemmes ikke noget, og modeller, der senere føjes til kataloget, vil også bruge denne nøgle.",+ "subsetNote": "Nøglen begrænses til de valgte modeller. Du kan ændre det senere fra nøglens række.",+ "skip": "Ikke nu",+ "scopedOne": "Nøgle begrænset til 1 model",+ "scopedOther": "Nøgle begrænset til {count} modeller"+ },"cpTitle": "Klientprofiler","cpDesc": "API-nøgler pr. klient, hver med en systemprompt som serveren altid anvender.","cpEmpty": "Ingen klientprofiler endnu.",@@ -650,6 +660,14 @@"errorPrefix": "Fejl:","systemPromptLabel": "Systemprompt","systemPromptPlaceholder": "Valgfrit. Sendt som en systembesked før din chat.",+ "showSettings": "Vis indstillinger",+ "hideSettings": "Skjul indstillinger",+ "samplingHeading": "Sampling",+ "samplingHelp": "Når den er slået fra, gælder udbyderens egen standard. Kun de kontroller, du slår til, sendes med.",+ "samplingDefault": "Default",+ "temperature": "Temperatur",+ "topP": "Top P",+ "maxTokens": "Maks. tokens","errorTitle": "Anmodningen mislykkedes","attach": "Vedhæft filer","attachTooMany": "Du kan vedhæfte op til {count} filer pr. besked.",@@ -659,6 +677,24 @@"noVisionBadge": "Ingen billeder","visionWarning": "{model} accepterer ikke billeder. Vælg en model med billedinput eller Auto."},+ "playgroundSessions": {+ "heading": "Samtaler",+ "newConversation": "Ny samtale",+ "showSidebar": "Vis samtaler",+ "hideSidebar": "Skjul samtaler",+ "empty": "Ingen gemte samtaler endnu.",+ "untitled": "Unavngivet samtale",+ "rename": "Omdøb",+ "renamePlaceholder": "Samtalens navn",+ "messageCount": "{count} beskeder",+ "justNow": "lige nu",+ "minutesAgo": "for {count} min. siden",+ "hoursAgo": "for {count} t. siden",+ "daysAgo": "for {count} d. siden",+ "loadFailed": "Kunne ikke åbne den samtale.",+ "renameFailed": "Kunne ikke omdøbe den samtale.",+ "deleteFailed": "Kunne ikke slette den samtale."+ },"embeddings": {"title": "Modeller","description": "Embeddings failover kun inden for en familie: samme model som en anden udbyder. Vektorer fra forskellige modeller er inkompatible, så routeren skifter aldrig model på dig.",diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex 63af7196..9eefa2fc 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -519,6 +519,16 @@"modelScopeClear": "Bereich löschen","modelScopeBadgeOne": "begrenzt · 1 Modell","modelScopeBadgeOther": "begrenzt · {count} Modelle",+ "modelPicker": {+ "title": "Welche Modelle soll dieser Schlüssel bedienen?",+ "hint": "Ihr {provider}-Schlüssel wurde hinzugefügt und bedient derzeit alle Modelle unten. Deaktivieren Sie alle Modelle, für die dieser Schlüssel nicht verwendet werden darf — der Router überspringt ihn dann für diese.",+ "count": "{selected} von {total} ausgewählt",+ "allNote": "Alles ausgewählt — es wird nichts gespeichert, und später zum Katalog hinzugefügte Modelle verwenden diesen Schlüssel ebenfalls.",+ "subsetNote": "Dieser Schlüssel wird auf die ausgewählten Modelle beschränkt. Sie können dies später in der Zeile des Schlüssels ändern.",+ "skip": "Jetzt nicht",+ "scopedOne": "Schlüssel auf 1 Modell begrenzt",+ "scopedOther": "Schlüssel auf {count} Modelle begrenzt"+ },"cpTitle": "Client-Profile","cpDesc": "API-Schlüssel pro Client, jeweils mit einem System-Prompt, den der Server immer anwendet.","cpEmpty": "Noch keine Client-Profile.",@@ -650,6 +660,14 @@"errorPrefix": "Fehler:","systemPromptLabel": "Systemaufforderung","systemPromptPlaceholder": "Optional. Wird als Systemnachricht vor Ihrem Chat gesendet.",+ "showSettings": "Einstellungen anzeigen",+ "hideSettings": "Einstellungen ausblenden",+ "samplingHeading": "Sampling",+ "samplingHelp": "Ausgeschaltet gilt der Standardwert des Anbieters selbst. Es werden nur die Regler gesendet, die Sie einschalten.",+ "samplingDefault": "Standard",+ "temperature": "Temperatur",+ "topP": "Top P",+ "maxTokens": "Max. Tokens","errorTitle": "Die Anfrage ist fehlgeschlagen","attach": "Dateien anhängen","attachTooMany": "Sie können bis zu {count} Dateien pro Nachricht anhängen.",@@ -659,6 +677,24 @@"noVisionBadge": "Keine Bilder","visionWarning": "{model} akzeptiert keine Bilder. Wählen Sie ein Vision-Modell oder Auto."},+ "playgroundSessions": {+ "heading": "Unterhaltungen",+ "newConversation": "Neue Unterhaltung",+ "showSidebar": "Unterhaltungen anzeigen",+ "hideSidebar": "Unterhaltungen ausblenden",+ "empty": "Noch keine gespeicherten Unterhaltungen.",+ "untitled": "Unbenannte Unterhaltung",+ "rename": "Umbenennen",+ "renamePlaceholder": "Name der Unterhaltung",+ "messageCount": "{count} Nachrichten",+ "justNow": "gerade eben",+ "minutesAgo": "vor {count} Min.",+ "hoursAgo": "vor {count} Std.",+ "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."+ },"embeddings": {"title": "Modelle","description": "Bei Einbettungen erfolgt ein Failover nur innerhalb einer Familie: dasselbe Modell, das von einem anderen Anbieter bereitgestellt wird. Vektoren verschiedener Modelle sind nicht kompatibel, daher tauscht der Router bei Ihnen nie die Modelle aus.",diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex f1698ac8..f9f86130 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -519,6 +519,16 @@"modelScopeClear": "Καθαρισμός εύρους","modelScopeBadgeOne": "περιορισμένο · 1 μοντέλο","modelScopeBadgeOther": "περιορισμένο · {count} μοντέλα",+ "modelPicker": {+ "title": "Ποια μοντέλα να εξυπηρετεί αυτό το κλειδί;",+ "hint": "Το κλειδί σας για {provider} προστέθηκε και αυτή τη στιγμή εξυπηρετεί όλα τα παρακάτω μοντέλα. Αποεπιλέξτε όσα δεν επιτρέπεται να χρησιμοποιεί αυτό το κλειδί — ο δρομολογητής θα το παρακάμπτει για αυτά.",+ "count": "{selected} από {total} επιλεγμένα",+ "allNote": "Όλα επιλεγμένα — δεν αποθηκεύεται τίποτα και τα μοντέλα που θα προστεθούν αργότερα στον κατάλογο θα χρησιμοποιούν και αυτά το ίδιο κλειδί.",+ "subsetNote": "Αυτό το κλειδί θα περιοριστεί στα επιλεγμένα μοντέλα. Μπορείτε να το αλλάξετε αργότερα από τη γραμμή του κλειδιού.",+ "skip": "Όχι τώρα",+ "scopedOne": "Το κλειδί περιορίζεται σε 1 μοντέλο",+ "scopedOther": "Το κλειδί περιορίζεται σε {count} μοντέλα"+ },"cpTitle": "Προφίλ πελατών","cpDesc": "Κλειδιά API ανά πελάτη, καθένα με ένα system prompt που ο διακομιστής εφαρμόζει πάντα.","cpEmpty": "Δεν υπάρχουν ακόμη προφίλ πελατών.",@@ -650,6 +660,14 @@"errorPrefix": "Σφάλμα:","systemPromptLabel": "Προτροπή συστήματος","systemPromptPlaceholder": "Προαιρετικός. Στάλθηκε ως μήνυμα συστήματος πριν από τη συνομιλία σας.",+ "showSettings": "Εμφάνιση ρυθμίσεων",+ "hideSettings": "Απόκρυψη ρυθμίσεων",+ "samplingHeading": "Δειγματοληψία",+ "samplingHelp": "Όταν είναι απενεργοποιημένο, ισχύει η προεπιλογή του ίδιου του παρόχου. Αποστέλλονται μόνο τα στοιχεία ελέγχου που ενεργοποιείτε.",+ "samplingDefault": "Προεπιλογή",+ "temperature": "Θερμοκρασία",+ "topP": "Top P",+ "maxTokens": "Μέγιστα διακριτικά","errorTitle": "Το αίτημα απέτυχε","attach": "Επισύναψη αρχείων","attachTooMany": "Μπορείτε να επισυνάψετε έως {count} αρχεία ανά μήνυμα.",@@ -659,6 +677,24 @@"noVisionBadge": "Χωρίς εικόνες","visionWarning": "Το {model} δεν δέχεται εικόνες. Επιλέξτε μοντέλο με υποστήριξη εικόνας ή Αυτόματο."},+ "playgroundSessions": {+ "heading": "Συνομιλίες",+ "newConversation": "Νέα συνομιλία",+ "showSidebar": "Προβολή συνομιλιών",+ "hideSidebar": "Απόκρυψη συνομιλιών",+ "empty": "Δεν υπάρχουν ακόμη αποθηκευμένες συνομιλίες.",+ "untitled": "Συνομιλία χωρίς τίτλο",+ "rename": "Μετονομασία",+ "renamePlaceholder": "Όνομα συνομιλίας",+ "messageCount": "{count} μηνύματα",+ "justNow": "μόλις τώρα",+ "minutesAgo": "πριν {count} λ.",+ "hoursAgo": "πριν {count} ώ.",+ "daysAgo": "πριν {count} ημ.",+ "loadFailed": "Δεν ήταν δυνατό το άνοιγμα αυτής της συνομιλίας.",+ "renameFailed": "Δεν ήταν δυνατή η μετονομασία αυτής της συνομιλίας.",+ "deleteFailed": "Δεν ήταν δυνατή η διαγραφή αυτής της συνομιλίας."+ },"embeddings": {"title": "Μοντέλα","description": "Οι ενσωματώσεις αποτυγχάνουν μόνο σε μια οικογένεια: το ίδιο μοντέλο που εξυπηρετείται από άλλο πάροχο. Τα διανύσματα από διαφορετικά μοντέλα δεν είναι συμβατά, επομένως ο δρομολογητής δεν αλλάζει ποτέ μοντέλα πάνω σας.",diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex f8edca3a..5d8428c4 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -523,6 +523,16 @@"modelScopeClear": "Clear scope","modelScopeBadgeOne": "scoped · 1 model","modelScopeBadgeOther": "scoped · {count} models",+ "modelPicker": {+ "title": "Which models should this key serve?",+ "hint": "Your {provider} key was added and currently serves every model below. Untick any this key isn't allowed to use — the router will skip it for those.",+ "count": "{selected} of {total} selected",+ "allNote": "Everything selected — nothing is saved, and models added to the catalog later will use this key too.",+ "subsetNote": "This key will be limited to the selected models. You can change this later from the key's row.",+ "skip": "Not now",+ "scopedOne": "Key limited to 1 model",+ "scopedOther": "Key limited to {count} models"+ },"cpTitle": "Client profiles","cpDesc": "Per-client API keys, each with a system prompt the server always applies.","cpEmpty": "No client profiles yet.",@@ -666,6 +676,14 @@"errorPrefix": "Error:","systemPromptLabel": "System prompt","systemPromptPlaceholder": "Optional. Sent as a system message before your chat.",+ "showSettings": "Show settings",+ "hideSettings": "Hide settings",+ "samplingHeading": "Sampling",+ "samplingHelp": "Switched off, the provider's own default applies. Only the controls you switch on are sent.",+ "samplingDefault": "Default",+ "temperature": "Temperature",+ "topP": "Top P",+ "maxTokens": "Max tokens","errorTitle": "Request failed","attach": "Attach files","attachTooMany": "You can attach up to {count} files per message.",@@ -675,6 +693,24 @@"noVisionBadge": "No images","visionWarning": "{model} does not accept images. Choose a vision model or Auto."},+ "playgroundSessions": {+ "heading": "Conversations",+ "newConversation": "New conversation",+ "showSidebar": "Show conversations",+ "hideSidebar": "Hide conversations",+ "empty": "No saved conversations yet.",+ "untitled": "Untitled conversation",+ "rename": "Rename",+ "renamePlaceholder": "Conversation name",+ "messageCount": "{count} messages",+ "justNow": "just now",+ "minutesAgo": "{count}m ago",+ "hoursAgo": "{count}h ago",+ "daysAgo": "{count}d ago",+ "loadFailed": "Couldn't open that conversation.",+ "renameFailed": "Couldn't rename that conversation.",+ "deleteFailed": "Couldn't delete that conversation."+ },"embeddings": {"title": "Models","description": "Embeddings fail over within a family only: the same model served by another provider. Vectors from different models are incompatible, so the router never swaps models on you.",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex 0a6caf96..7e501805 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -519,6 +519,16 @@"modelScopeClear": "Borrar alcance","modelScopeBadgeOne": "limitada · 1 modelo","modelScopeBadgeOther": "limitada · {count} modelos",+ "modelPicker": {+ "title": "¿Qué modelos debe atender esta clave?",+ "hint": "Se añadió tu clave de {provider} y ahora mismo atiende todos los modelos de abajo. Desmarca los que esta clave no tenga permiso para usar — el enrutador la omitirá para ellos.",+ "count": "{selected} de {total} seleccionados",+ "allNote": "Todo seleccionado — no se guarda nada y los modelos que se añadan al catálogo más adelante también usarán esta clave.",+ "subsetNote": "Esta clave se limitará a los modelos seleccionados. Puedes cambiarlo más adelante desde la fila de la clave.",+ "skip": "Ahora no",+ "scopedOne": "Clave limitada a 1 modelo",+ "scopedOther": "Clave limitada a {count} modelos"+ },"cpTitle": "Perfiles de cliente","cpDesc": "Claves API por cliente, cada una con un prompt de sistema que el servidor aplica siempre.","cpEmpty": "Aún no hay perfiles de cliente.",@@ -650,6 +660,14 @@"errorPrefix": "Error:","systemPromptLabel": "Prompt del sistema","systemPromptPlaceholder": "Opcional. Se envía como mensaje del sistema antes de tu chat.",+ "showSettings": "Mostrar configuración",+ "hideSettings": "Ocultar configuración",+ "samplingHeading": "Muestreo",+ "samplingHelp": "Si están desactivados, se aplica el valor predeterminado del propio proveedor. Solo se envían los controles que actives.",+ "samplingDefault": "Predeterminado",+ "temperature": "Temperatura",+ "topP": "Top P",+ "maxTokens": "Tokens máximos","errorTitle": "La solicitud falló","attach": "Adjuntar archivos","attachTooMany": "Puedes adjuntar hasta {count} archivos por mensaje.",@@ -659,6 +677,24 @@"noVisionBadge": "Sin imágenes","visionWarning": "{model} no acepta imágenes. Elige un modelo de visión o Auto."},+ "playgroundSessions": {+ "heading": "Conversaciones",+ "newConversation": "Nueva conversación",+ "showSidebar": "Mostrar conversaciones",+ "hideSidebar": "Ocultar conversaciones",+ "empty": "Aún no hay conversaciones guardadas.",+ "untitled": "Conversación sin título",+ "rename": "Cambiar nombre",+ "renamePlaceholder": "Nombre de la conversación",+ "messageCount": "{count} mensajes",+ "justNow": "ahora mismo",+ "minutesAgo": "hace {count} min",+ "hoursAgo": "hace {count} h",+ "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."+ },"embeddings": {"title": "Modelos","description": "Los embeddings solo conmutan dentro de una misma familia: el mismo modelo servido por otro proveedor. Los vectores de modelos distintos son incompatibles, por lo que el enrutador nunca cambia de modelo a tus espaldas.",diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex dc28f213..f93eff50 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -519,6 +519,16 @@"modelScopeClear": "پاک کردن محدوده","modelScopeBadgeOne": "محدود · 1 مدل","modelScopeBadgeOther": "محدود · {count} مدل",+ "modelPicker": {+ "title": "این کلید به کدام مدلها سرویس بدهد؟",+ "hint": "کلید {provider} شما اضافه شد و در حال حاضر به همه مدلهای زیر سرویس میدهد. تیک هر مدلی را که این کلید اجازه استفاده از آن را ندارد بردارید — مسیریاب برای آن مدلها از این کلید صرفنظر میکند.",+ "count": "{selected} از {total} انتخاب شد",+ "allNote": "همه انتخاب شدهاند — چیزی ذخیره نمیشود و مدلهایی که بعداً به کاتالوگ اضافه شوند نیز از این کلید استفاده میکنند.",+ "subsetNote": "این کلید فقط به مدلهای انتخابشده محدود میشود. بعداً میتوانید این را از ردیف کلید تغییر دهید.",+ "skip": "الان نه",+ "scopedOne": "کلید به 1 مدل محدود شد",+ "scopedOther": "کلید به {count} مدل محدود شد"+ },"cpTitle": "پروفایلهای کلاینت","cpDesc": "کلیدهای API جداگانه برای هر کلاینت، هرکدام با یک پرامپت سیستمی که سرور همیشه اعمال میکند.","cpEmpty": "هنوز پروفایل کلاینتی وجود ندارد.",@@ -650,6 +660,14 @@"errorPrefix": "خطا:","systemPromptLabel": "اعلان سیستم","systemPromptPlaceholder": "اختیاری. قبل از چت شما به عنوان یک پیام سیستمی ارسال می شود.",+ "showSettings": "نمایش تنظیمات",+ "hideSettings": "پنهان کردن تنظیمات",+ "samplingHeading": "نمونه برداری",+ "samplingHelp": "در حالت خاموش، پیش فرض خود ارائه دهنده اعمال می شود. فقط کنترل هایی که روشن می کنید ارسال می شوند.",+ "samplingDefault": "پیش فرض",+ "temperature": "دما",+ "topP": "Top P",+ "maxTokens": "حداکثر توکن ها","errorTitle": "درخواست ناموفق بود","attach": "پیوست فایلها","attachTooMany": "در هر پیام حداکثر میتوانید {count} فایل پیوست کنید.",@@ -659,6 +677,24 @@"noVisionBadge": "بدون تصویر","visionWarning": "{model} تصویر نمیپذیرد. یک مدل با ورودی تصویر یا خودکار را انتخاب کنید."},+ "playgroundSessions": {+ "heading": "گفتگوها",+ "newConversation": "گفتگوی جدید",+ "showSidebar": "نمایش گفتگوها",+ "hideSidebar": "پنهان کردن گفتگوها",+ "empty": "هنوز گفتگوی ذخیرهشدهای وجود ندارد.",+ "untitled": "گفتگوی بدون عنوان",+ "rename": "تغییر نام",+ "renamePlaceholder": "نام گفتگو",+ "messageCount": "{count} پیام",+ "justNow": "همین حالا",+ "minutesAgo": "{count} دقیقه پیش",+ "hoursAgo": "{count} ساعت پیش",+ "daysAgo": "{count} روز پیش",+ "loadFailed": "باز کردن آن گفتگو انجام نشد.",+ "renameFailed": "تغییر نام آن گفتگو انجام نشد.",+ "deleteFailed": "حذف آن گفتگو انجام نشد."+ },"embeddings": {"title": "مدل ها","description": "جاسازیها فقط در یک خانواده شکست میخورند: همان مدلی که توسط ارائهدهنده دیگری ارائه میشود. بردارهای مدلهای مختلف ناسازگار هستند، بنابراین روتر هرگز مدلها را روی شما تعویض نمیکند.",diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex da10b38e..2765a837 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -519,6 +519,16 @@"modelScopeClear": "Tyhjennä rajaus","modelScopeBadgeOne": "rajattu · 1 malli","modelScopeBadgeOther": "rajattu · {count} mallia",+ "modelPicker": {+ "title": "Mitä malleja tämän avaimen tulisi palvella?",+ "hint": "{provider}-avaimesi lisättiin, ja se palvelee tällä hetkellä kaikkia alla olevia malleja. Poista valinta niistä malleista, joihin avainta ei saa käyttää — reititin ohittaa avaimen niiden kohdalla.",+ "count": "{selected}/{total} valittu",+ "allNote": "Kaikki on valittu — mitään ei tallenneta, ja myös myöhemmin luetteloon lisättävät mallit käyttävät tätä avainta.",+ "subsetNote": "Avain rajataan valittuihin malleihin. Voit muuttaa tätä myöhemmin avaimen riviltä.",+ "skip": "Ei nyt",+ "scopedOne": "Avain rajattu 1 malliin",+ "scopedOther": "Avain rajattu {count} malliin"+ },"cpTitle": "Asiakasprofiilit","cpDesc": "API-avaimet asiakaskohtaisesti, kullakin järjestelmäkehote, jonka palvelin lisää aina.","cpEmpty": "Ei vielä asiakasprofiileja.",@@ -650,6 +660,14 @@"errorPrefix": "Virhe:","systemPromptLabel": "Järjestelmäkehote","systemPromptPlaceholder": "Valinnainen. Lähetetty järjestelmäviestinä ennen keskusteluasi.",+ "showSettings": "Näytä asetukset",+ "hideSettings": "Piilota asetukset",+ "samplingHeading": "Näytteenotto",+ "samplingHelp": "Kun säädin on pois päältä, käytetään tarjoajan omaa oletusarvoa. Vain käyttöön ottamasi säätimet lähetetään.",+ "samplingDefault": "Oletus",+ "temperature": "Lämpötila",+ "topP": "Top P",+ "maxTokens": "Tokenien enimmäismäärä","errorTitle": "Pyyntö epäonnistui","attach": "Liitä tiedostoja","attachTooMany": "Voit liittää enintään {count} tiedostoa viestiä kohden.",@@ -659,6 +677,24 @@"noVisionBadge": "Ei kuvia","visionWarning": "{model} ei hyväksy kuvia. Valitse kuvasyötteen hyväksyvä malli tai Auto."},+ "playgroundSessions": {+ "heading": "Keskustelut",+ "newConversation": "Uusi keskustelu",+ "showSidebar": "Näytä keskustelut",+ "hideSidebar": "Piilota keskustelut",+ "empty": "Ei vielä tallennettuja keskusteluja.",+ "untitled": "Nimetön keskustelu",+ "rename": "Nimeä uudelleen",+ "renamePlaceholder": "Keskustelun nimi",+ "messageCount": "{count} viestiä",+ "justNow": "juuri nyt",+ "minutesAgo": "{count} min sitten",+ "hoursAgo": "{count} t sitten",+ "daysAgo": "{count} pv sitten",+ "loadFailed": "Keskustelua ei voitu avata.",+ "renameFailed": "Keskustelua ei voitu nimetä uudelleen.",+ "deleteFailed": "Keskustelua ei voitu poistaa."+ },"embeddings": {"title": "Mallit","description": "Upotukset siirtyvät vain perheen sisällä: sama malli, jota toinen palveluntarjoaja palvelee. Eri mallien vektorit eivät sovi yhteen, joten reititin ei koskaan vaihda malleja kanssasi.",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex de045e0c..013f6496 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -519,6 +519,16 @@"modelScopeClear": "Effacer la portée","modelScopeBadgeOne": "limitée · 1 modèle","modelScopeBadgeOther": "limitée · {count} modèles",+ "modelPicker": {+ "title": "Quels modèles cette clé doit-elle servir ?",+ "hint": "Votre clé {provider} a été ajoutée et sert actuellement tous les modèles ci-dessous. Décochez ceux que cette clé n'est pas autorisée à utiliser — le routeur l'ignorera pour ceux-là.",+ "count": "{selected} sur {total} sélectionnés",+ "allNote": "Tout est sélectionné — rien n'est enregistré, et les modèles ajoutés au catalogue par la suite utiliseront eux aussi cette clé.",+ "subsetNote": "Cette clé sera limitée aux modèles sélectionnés. Vous pourrez modifier cela plus tard depuis la ligne de la clé.",+ "skip": "Pas maintenant",+ "scopedOne": "Clé limitée à 1 modèle",+ "scopedOther": "Clé limitée à {count} modèles"+ },"cpTitle": "Profils client","cpDesc": "Des clés API par client, chacune avec un prompt système que le serveur applique toujours.","cpEmpty": "Aucun profil client pour le moment.",@@ -650,6 +660,14 @@"errorPrefix": "Erreur :","systemPromptLabel": "Prompt système","systemPromptPlaceholder": "Facultatif. Envoyé comme message système avant votre conversation.",+ "showSettings": "Afficher les paramètres",+ "hideSettings": "Masquer les paramètres",+ "samplingHeading": "Échantillonnage",+ "samplingHelp": "Désactivés, c'est la valeur par défaut du fournisseur qui s'applique. Seuls les contrôles que vous activez sont envoyés.",+ "samplingDefault": "Par défaut",+ "temperature": "Température",+ "topP": "Top P",+ "maxTokens": "Tokens max","errorTitle": "La requête a échoué","attach": "Joindre des fichiers","attachTooMany": "Vous pouvez joindre jusqu'à {count} fichiers par message.",@@ -659,6 +677,24 @@"noVisionBadge": "Sans images","visionWarning": "{model} n'accepte pas les images. Choisissez un modèle vision ou Auto."},+ "playgroundSessions": {+ "heading": "Conversations",+ "newConversation": "Nouvelle conversation",+ "showSidebar": "Afficher les conversations",+ "hideSidebar": "Masquer les conversations",+ "empty": "Aucune conversation enregistrée pour l'instant.",+ "untitled": "Conversation sans titre",+ "rename": "Renommer",+ "renamePlaceholder": "Nom de la conversation",+ "messageCount": "{count} messages",+ "justNow": "à l'instant",+ "minutesAgo": "il y a {count} min",+ "hoursAgo": "il y a {count} h",+ "daysAgo": "il y a {count} j",+ "loadFailed": "Impossible d'ouvrir cette conversation.",+ "renameFailed": "Impossible de renommer cette conversation.",+ "deleteFailed": "Impossible de supprimer cette conversation."+ },"embeddings": {"title": "Modèles","description": "Les embeddings basculent uniquement au sein d'une même famille : le même modèle servi par un autre fournisseur. Les vecteurs de modèles différents sont incompatibles, le routeur ne change donc jamais de modèle à votre insu.",diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 043f390f..cdf413bf 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -519,6 +519,16 @@"modelScopeClear": "વ્યાપ દૂર કરો","modelScopeBadgeOne": "મર્યાદિત · 1 મૉડલ","modelScopeBadgeOther": "મર્યાદિત · {count} મૉડલ",+ "modelPicker": {+ "title": "આ કી કયા મૉડલ માટે કામ કરવી જોઈએ?",+ "hint": "તમારી {provider} કી ઉમેરાઈ ગઈ છે અને હાલમાં તે નીચેના દરેક મૉડલ માટે કામ કરે છે. જે મૉડલ માટે આ કીનો ઉપયોગ ન થવો જોઈએ તેની ટિક હટાવો — રાઉટર તેમના માટે આ કીને છોડી દેશે.",+ "count": "{total} માંથી {selected} પસંદ કરેલા",+ "allNote": "બધું પસંદ કરેલું છે — કંઈ સાચવવામાં આવતું નથી, અને પછીથી કૅટલૉગમાં ઉમેરાતા મૉડલ પણ આ કીનો ઉપયોગ કરશે.",+ "subsetNote": "આ કી ફક્ત પસંદ કરેલા મૉડલ પૂરતી મર્યાદિત રહેશે. તમે આ પછીથી કીની હરોળમાંથી બદલી શકો છો.",+ "skip": "હમણાં નહીં",+ "scopedOne": "કી 1 મૉડલ પૂરતી મર્યાદિત",+ "scopedOther": "કી {count} મૉડલ પૂરતી મર્યાદિત"+ },"cpTitle": "ક્લાયન્ટ પ્રોફાઇલ","cpDesc": "દરેક ક્લાયન્ટ માટે અલગ API કી, જેનો સિસ્ટમ પ્રોમ્પ્ટ સર્વર હંમેશાં લાગુ કરે છે.","cpEmpty": "હજી કોઈ ક્લાયન્ટ પ્રોફાઇલ નથી.",@@ -650,6 +660,14 @@"errorPrefix": "ભૂલ:","systemPromptLabel": "સિસ્ટમ પ્રોમ્પ્ટ","systemPromptPlaceholder": "વૈકલ્પિક. તમારી ચેટ પહેલા સિસ્ટમ સંદેશ તરીકે મોકલવામાં આવે છે.",+ "showSettings": "સેટિંગ્સ બતાવો",+ "hideSettings": "સેટિંગ્સ છુપાવો",+ "samplingHeading": "સેમ્પલિંગ",+ "samplingHelp": "બંધ હોય ત્યારે પ્રદાતાનું પોતાનું ડિફૉલ્ટ લાગુ પડે છે. તમે જે નિયંત્રણો ચાલુ કરો છો તે જ મોકલવામાં આવે છે.",+ "samplingDefault": "ડિફૉલ્ટ",+ "temperature": "તાપમાન",+ "topP": "Top P",+ "maxTokens": "મહત્તમ ટોકન્સ","errorTitle": "વિનંતી નિષ્ફળ","attach": "ફાઇલો જોડો","attachTooMany": "તમે સંદેશ દીઠ વધુમાં વધુ {count} ફાઇલો જોડી શકો છો.",@@ -659,6 +677,24 @@"noVisionBadge": "છબીઓ નહીં","visionWarning": "{model} છબીઓ સ્વીકારતું નથી. ઇમેજ ઇનપુટ સ્વીકારતું મોડેલ અથવા ઓટો પસંદ કરો."},+ "playgroundSessions": {+ "heading": "વાતચીત",+ "newConversation": "નવી વાતચીત",+ "showSidebar": "વાતચીત બતાવો",+ "hideSidebar": "વાતચીત છુપાવો",+ "empty": "હજુ સુધી કોઈ સાચવેલી વાતચીત નથી.",+ "untitled": "શીર્ષક વિનાની વાતચીત",+ "rename": "નામ બદલો",+ "renamePlaceholder": "વાતચીતનું નામ",+ "messageCount": "{count} સંદેશા",+ "justNow": "હમણાં જ",+ "minutesAgo": "{count} મિ. પહેલાં",+ "hoursAgo": "{count} ક. પહેલાં",+ "daysAgo": "{count} દિ. પહેલાં",+ "loadFailed": "તે વાતચીત ખોલી શકાઈ નહીં.",+ "renameFailed": "તે વાતચીતનું નામ બદલી શકાયું નહીં.",+ "deleteFailed": "તે વાતચીત કાઢી શકાઈ નહીં."+ },"embeddings": {"title": "મોડલ્સ","description": "એમ્બેડિંગ્સ ફક્ત કુટુંબમાં જ નિષ્ફળ જાય છે: તે જ મોડેલ જે અન્ય પ્રદાતા દ્વારા સેવા આપવામાં આવે છે. વિવિધ મોડલ્સના વેક્ટર અસંગત હોય છે, તેથી રાઉટર ક્યારેય તમારા પર મોડલ્સ સ્વેપ કરતું નથી.",diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex 572607bd..5e33957b 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -519,6 +519,16 @@"modelScopeClear": "Share iyaka","modelScopeBadgeOne": "iyakantacce · samfuri 1","modelScopeBadgeOther": "iyakantacce · samfura {count}",+ "modelPicker": {+ "title": "Waɗanne samfura wannan maɓalli zai yi wa hidima?",+ "hint": "An ƙara maɓallin {provider} naka kuma a yanzu yana yi wa duk samfuran da ke ƙasa hidima. Cire alamar duk samfurin da ba a yarda wannan maɓalli ya yi amfani da shi ba — router zai tsallake shi ga waɗannan.",+ "count": "An zaɓi {selected} daga cikin {total}",+ "allNote": "An zaɓi kome — ba a ajiye komai, kuma samfuran da za a ƙara a kasida nan gaba su ma za su yi amfani da wannan maɓalli.",+ "subsetNote": "Wannan maɓalli zai iyakantu ga samfuran da aka zaɓa. Za ka iya canja wannan daga baya a jerin maɓallin.",+ "skip": "Ba yanzu ba",+ "scopedOne": "An iyakance maɓalli ga samfuri 1",+ "scopedOther": "An iyakance maɓalli ga samfura {count}"+ },"cpTitle": "Bayanan martabar abokan ciniki","cpDesc": "Maɓallan API na kowane abokin ciniki, kowanne da umarnin tsarin da sabar ke amfani da shi koyaushe.","cpEmpty": "Babu bayanan martabar abokan ciniki tukuna.",@@ -650,6 +660,14 @@"errorPrefix": "Kuskure:","systemPromptLabel": "Tsarin tsari","systemPromptPlaceholder": "Na zaɓi. An aika azaman saƙon tsarin kafin tattaunawar ku.",+ "showSettings": "Nuna saituna",+ "hideSettings": "Ɓoye saituna",+ "samplingHeading": "Sampling",+ "samplingHelp": "Idan an kashe, ƙimar da mai bayarwa ya saita ce ke aiki. Sai kawai abubuwan da ka kunna ake aikawa.",+ "samplingDefault": "Default",+ "temperature": "Temperature",+ "topP": "Top P",+ "maxTokens": "Iyakar alamomi","errorTitle": "Buƙatar ta kasa","attach": "Haɗa fayiloli","attachTooMany": "Za ka iya haɗa har fayiloli {count} a kowane saƙo.",@@ -659,6 +677,24 @@"noVisionBadge": "Babu hotuna","visionWarning": "{model} ba ya karɓar hotuna. Zaɓi samfurin da ke karɓar hotuna ko Auto."},+ "playgroundSessions": {+ "heading": "Tattaunawa",+ "newConversation": "Sabuwar tattaunawa",+ "showSidebar": "Nuna tattaunawa",+ "hideSidebar": "Ɓoye tattaunawa",+ "empty": "Babu tattaunawar da aka ajiye tukuna.",+ "untitled": "Tattaunawa marar suna",+ "rename": "Sauya suna",+ "renamePlaceholder": "Sunan tattaunawa",+ "messageCount": "Saƙonni {count}",+ "justNow": "yanzu yanzu",+ "minutesAgo": "minti {count} da suka wuce",+ "hoursAgo": "awa {count} da suka wuce",+ "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."+ },"embeddings": {"title": "Samfura","description": "Abubuwan haɗawa sun ƙare a cikin dangi kawai: samfurin iri ɗaya wanda wani mai bada yayi aiki. Vectors daga nau'ikan nau'ikan daban-daban ba su dace ba, don haka na'ura mai ba da hanya tsakanin hanyoyin sadarwa ba ta musanya muku samfura.",diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex e61cc49a..6f652757 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -519,6 +519,16 @@"modelScopeClear": "נקה טווח","modelScopeBadgeOne": "מוגבל · מודל 1","modelScopeBadgeOther": "מוגבל · {count} מודלים",+ "modelPicker": {+ "title": "לאילו מודלים ישמש המפתח הזה?",+ "hint": "מפתח ה-{provider} שלך נוסף וכרגע הוא משמש את כל המודלים שלמטה. בטל את הסימון של כל מודל שהמפתח הזה אינו רשאי להשתמש בו — הנתב ידלג עליו עבור אותם מודלים.",+ "count": "{selected} מתוך {total} נבחרו",+ "allNote": "הכול נבחר — דבר לא נשמר, ומודלים שיתווספו לקטלוג בהמשך ישתמשו גם הם במפתח הזה.",+ "subsetNote": "המפתח הזה יוגבל למודלים שנבחרו. אפשר לשנות זאת בהמשך משורת המפתח.",+ "skip": "לא עכשיו",+ "scopedOne": "המפתח מוגבל למודל אחד",+ "scopedOther": "המפתח מוגבל ל-{count} מודלים"+ },"cpTitle": "פרופילי לקוח","cpDesc": "מפתחות API לכל לקוח, לכל אחד הנחיית מערכת שהשרת מחיל תמיד.","cpEmpty": "אין עדיין פרופילי לקוח.",@@ -650,6 +660,14 @@"errorPrefix": "שגיאה:","systemPromptLabel": "הנחיית המערכת","systemPromptPlaceholder": "אופציונלי. נשלח כהודעה מערכתית לפני הצ'אט שלך.",+ "showSettings": "הצגת הגדרות",+ "hideSettings": "הסתרת הגדרות",+ "samplingHeading": "דגימה",+ "samplingHelp": "כשהאפשרות כבויה, חלה ברירת המחדל של הספק עצמו. נשלחים רק הפקדים שתפעיל.",+ "samplingDefault": "ברירת מחדל",+ "temperature": "טמפרטורה",+ "topP": "Top P",+ "maxTokens": "מקסימום טוקנים","errorTitle": "הבקשה נכשלה","attach": "צירוף קבצים","attachTooMany": "אפשר לצרף עד {count} קבצים בכל הודעה.",@@ -659,6 +677,24 @@"noVisionBadge": "ללא תמונות","visionWarning": "{model} אינו מקבל תמונות. בחר מודל חזון או אוטו."},+ "playgroundSessions": {+ "heading": "שיחות",+ "newConversation": "שיחה חדשה",+ "showSidebar": "הצגת שיחות",+ "hideSidebar": "הסתרת שיחות",+ "empty": "אין עדיין שיחות שמורות.",+ "untitled": "שיחה ללא שם",+ "rename": "שינוי שם",+ "renamePlaceholder": "שם השיחה",+ "messageCount": "{count} הודעות",+ "justNow": "ממש עכשיו",+ "minutesAgo": "לפני {count} דק׳",+ "hoursAgo": "לפני {count} שע׳",+ "daysAgo": "לפני {count} ימים",+ "loadFailed": "לא ניתן לפתוח את השיחה.",+ "renameFailed": "לא ניתן לשנות את שם השיחה.",+ "deleteFailed": "לא ניתן למחוק את השיחה."+ },"embeddings": {"title": "דגמים","description": "הטמעות, נכשלות רק בתוך משפחה: אותו מודל שמופעל על ידי ספק אחר. וקטורים מדגמים שונים לא תואמים, אז הנתב אף פעם לא מחליף דגמים אצלך.",diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex 6af87d58..2f200d7f 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -519,6 +519,16 @@"modelScopeClear": "दायरा हटाएँ","modelScopeBadgeOne": "सीमित · 1 मॉडल","modelScopeBadgeOther": "सीमित · {count} मॉडल",+ "modelPicker": {+ "title": "यह कुंजी कौन-से मॉडल के लिए काम करेगी?",+ "hint": "आपकी {provider} कुंजी जोड़ दी गई है और अभी यह नीचे दिए गए हर मॉडल के लिए काम करती है। जिन मॉडलों के लिए इस कुंजी का उपयोग नहीं होना चाहिए, उनका चयन हटा दें — राउटर उनके लिए इसे छोड़ देगा।",+ "count": "{total} में से {selected} चुने गए",+ "allNote": "सब कुछ चुना गया है — कुछ भी सहेजा नहीं जाता, और बाद में कैटलॉग में जुड़ने वाले मॉडल भी इसी कुंजी का उपयोग करेंगे।",+ "subsetNote": "यह कुंजी केवल चुने गए मॉडलों तक सीमित रहेगी। आप इसे बाद में कुंजी की पंक्ति से बदल सकते हैं।",+ "skip": "अभी नहीं",+ "scopedOne": "कुंजी 1 मॉडल तक सीमित",+ "scopedOther": "कुंजी {count} मॉडलों तक सीमित"+ },"cpTitle": "क्लाइंट प्रोफ़ाइल","cpDesc": "हर क्लाइंट के लिए अलग API कुंजी, जिसके सिस्टम प्रॉम्प्ट को सर्वर हमेशा लागू करता है।","cpEmpty": "अभी कोई क्लाइंट प्रोफ़ाइल नहीं है।",@@ -650,6 +660,14 @@"errorPrefix": "त्रुटि:","systemPromptLabel": "सिस्टम प्रॉम्प्ट","systemPromptPlaceholder": "वैकल्पिक. आपकी चैट से पहले एक सिस्टम संदेश के रूप में भेजा गया।",+ "showSettings": "सेटिंग्स दिखाएँ",+ "hideSettings": "सेटिंग्स छिपाएँ",+ "samplingHeading": "सैंपलिंग",+ "samplingHelp": "बंद होने पर प्रदाता का अपना डिफ़ॉल्ट लागू होता है। केवल वही नियंत्रण भेजे जाते हैं जिन्हें आप चालू करते हैं।",+ "samplingDefault": "डिफ़ॉल्ट",+ "temperature": "तापमान",+ "topP": "Top P",+ "maxTokens": "अधिकतम टोकन","errorTitle": "अनुरोध विफल","attach": "फ़ाइलें संलग्न करें","attachTooMany": "आप प्रति संदेश अधिकतम {count} फ़ाइलें संलग्न कर सकते हैं।",@@ -659,6 +677,24 @@"noVisionBadge": "छवि नहीं","visionWarning": "{model} छवियाँ स्वीकार नहीं करता। कोई दृष्टि मॉडल या ऑटो चुनें।"},+ "playgroundSessions": {+ "heading": "बातचीत",+ "newConversation": "नई बातचीत",+ "showSidebar": "बातचीत दिखाएँ",+ "hideSidebar": "बातचीत छिपाएँ",+ "empty": "अभी तक कोई सहेजी गई बातचीत नहीं।",+ "untitled": "बिना शीर्षक बातचीत",+ "rename": "नाम बदलें",+ "renamePlaceholder": "बातचीत का नाम",+ "messageCount": "{count} संदेश",+ "justNow": "अभी अभी",+ "minutesAgo": "{count} मि पहले",+ "hoursAgo": "{count} घं पहले",+ "daysAgo": "{count} दि पहले",+ "loadFailed": "वह बातचीत नहीं खोली जा सकी।",+ "renameFailed": "उस बातचीत का नाम नहीं बदला जा सका।",+ "deleteFailed": "वह बातचीत हटाई नहीं जा सकी।"+ },"embeddings": {"title": "मॉडल","description": "एंबेडिंग केवल एक परिवार के भीतर ही विफल हो जाती है: वही मॉडल जो किसी अन्य प्रदाता द्वारा परोसा जाता है। विभिन्न मॉडलों के वेक्टर असंगत हैं, इसलिए राउटर कभी भी आप पर मॉडल स्वैप नहीं करता है।",diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex eac97a1a..4f7ea3e6 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -519,6 +519,16 @@"modelScopeClear": "Očisti opseg","modelScopeBadgeOne": "ograničen · 1 model","modelScopeBadgeOther": "ograničen · {count} modela",+ "modelPicker": {+ "title": "Za koje se modele koristi ovaj ključ?",+ "hint": "Vaš {provider} ključ je dodan i trenutačno poslužuje sve modele u nastavku. Odznačite one koje ovaj ključ ne smije koristiti — router će ga za njih preskočiti.",+ "count": "Odabrano {selected} od {total}",+ "allNote": "Odabrano je sve — ništa se ne sprema, a modeli koji se kasnije dodaju u katalog također će koristiti ovaj ključ.",+ "subsetNote": "Ovaj će ključ biti ograničen na odabrane modele. To možete promijeniti kasnije u retku ključa.",+ "skip": "Ne sada",+ "scopedOne": "Ključ je ograničen na 1 model",+ "scopedOther": "Ključ je ograničen na {count} modela"+ },"cpTitle": "Profili klijenata","cpDesc": "API ključevi po klijentu, svaki sa sistemskim promptom koji poslužitelj uvijek primjenjuje.","cpEmpty": "Još nema profila klijenata.",@@ -650,6 +660,14 @@"errorPrefix": "Pogreška:","systemPromptLabel": "Sistemski upit","systemPromptPlaceholder": "Opcionalno. Poslana kao sistemska poruka prije vašeg chata.",+ "showSettings": "Prikaži postavke",+ "hideSettings": "Sakrij postavke",+ "samplingHeading": "Uzorkovanje",+ "samplingHelp": "Kada je isključeno, primjenjuje se zadana vrijednost samog pružatelja. Šalju se samo kontrole koje uključite.",+ "samplingDefault": "Zadano",+ "temperature": "Temperatura",+ "topP": "Top P",+ "maxTokens": "Maks. tokena","errorTitle": "Zahtjev nije uspio","attach": "Priloži datoteke","attachTooMany": "Po poruci možete priložiti najviše {count} datoteka.",@@ -659,6 +677,24 @@"noVisionBadge": "Bez slika","visionWarning": "Model {model} ne prihvaća slike. Odaberite model s vizijom ili Auto."},+ "playgroundSessions": {+ "heading": "Razgovori",+ "newConversation": "Novi razgovor",+ "showSidebar": "Prikaži razgovore",+ "hideSidebar": "Sakrij razgovore",+ "empty": "Još nema spremljenih razgovora.",+ "untitled": "Razgovor bez naziva",+ "rename": "Preimenuj",+ "renamePlaceholder": "Naziv razgovora",+ "messageCount": "{count} poruka",+ "justNow": "upravo sada",+ "minutesAgo": "prije {count} min",+ "hoursAgo": "prije {count} h",+ "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."+ },"embeddings": {"title": "Modeli","description": "Ugrađeni sustavi se failover mogu prebaciti samo unutar obitelji: isti model koji pruža drugi pružatelj. Vektori iz različitih modela su nekompatibilni, pa router nikada ne mijenja modele na vama.",diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex 45f438f8..d437e4c0 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -519,6 +519,16 @@"modelScopeClear": "Kör törlése","modelScopeBadgeOne": "korlátozva · 1 modell","modelScopeBadgeOther": "korlátozva · {count} modell",+ "modelPicker": {+ "title": "Mely modelleket szolgálja ki ez a kulcs?",+ "hint": "A(z) {provider} kulcs hozzáadva, és jelenleg az alábbi összes modellt kiszolgálja. Vegye ki a pipát azoknál, amelyeket ez a kulcs nem használhat — ezeknél a router kihagyja.",+ "count": "{selected} / {total} kijelölve",+ "allNote": "Minden ki van jelölve — semmi sem kerül mentésre, és a katalógusba később felvett modellek is használni fogják ezt a kulcsot.",+ "subsetNote": "Ez a kulcs a kijelölt modellekre lesz korlátozva. Ezt később a kulcs sorában módosíthatja.",+ "skip": "Most nem",+ "scopedOne": "A kulcs 1 modellre korlátozva",+ "scopedOther": "A kulcs {count} modellre korlátozva"+ },"cpTitle": "Kliensprofilok","cpDesc": "Kliensenkénti API-kulcsok, mindegyikhez saját rendszerprompt, amelyet a szerver mindig alkalmaz.","cpEmpty": "Még nincsenek kliensprofilok.",@@ -650,6 +660,14 @@"errorPrefix": "Hiba:","systemPromptLabel": "Rendszerprompt","systemPromptPlaceholder": "Opcionális. Rendszerüzenetként küldték el a csevegés előtt.",+ "showSettings": "Beállítások megjelenítése",+ "hideSettings": "Beállítások elrejtése",+ "samplingHeading": "Mintavételezés",+ "samplingHelp": "Kikapcsolt állapotban a szolgáltató saját alapértelmezése érvényes. Csak a bekapcsolt vezérlők kerülnek elküldésre.",+ "samplingDefault": "Alapértelmezés",+ "temperature": "Hőmérséklet",+ "topP": "Top P",+ "maxTokens": "Max. tokenszám","errorTitle": "Kérés meghiúsult","attach": "Fájlok csatolása","attachTooMany": "Üzenetenként legfeljebb {count} fájlt csatolhatsz.",@@ -659,6 +677,24 @@"noVisionBadge": "Nincs kép","visionWarning": "A(z) {model} nem fogad képeket. Válassz képfeldolgozó modellt vagy az Automatikus lehetőséget."},+ "playgroundSessions": {+ "heading": "Beszélgetések",+ "newConversation": "Új beszélgetés",+ "showSidebar": "Beszélgetések megjelenítése",+ "hideSidebar": "Beszélgetések elrejtése",+ "empty": "Még nincsenek mentett beszélgetések.",+ "untitled": "Névtelen beszélgetés",+ "rename": "Átnevezés",+ "renamePlaceholder": "Beszélgetés neve",+ "messageCount": "{count} üzenet",+ "justNow": "az imént",+ "minutesAgo": "{count} perce",+ "hoursAgo": "{count} órája",+ "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."+ },"embeddings": {"title": "Modellek","description": "Az embeddingek csak egy családon belül failover-olnak: ugyanazt a modellt, amelyet egy másik szolgáltató szolgál. A különböző modellek vektorai nem kompatibilisek, így a router soha nem cserél modelleket veled.",diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex fe8d2661..f781a48f 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -519,6 +519,16 @@"modelScopeClear": "Hapus cakupan","modelScopeBadgeOne": "dibatasi · 1 model","modelScopeBadgeOther": "dibatasi · {count} model",+ "modelPicker": {+ "title": "Model mana saja yang boleh dilayani kunci ini?",+ "hint": "Kunci {provider} Anda telah ditambahkan dan saat ini melayani semua model di bawah. Hapus centang pada model yang tidak boleh dipakai kunci ini — router akan melewatinya untuk model tersebut.",+ "count": "{selected} dari {total} dipilih",+ "allNote": "Semua dipilih — tidak ada yang disimpan, dan model yang ditambahkan ke katalog nanti juga akan memakai kunci ini.",+ "subsetNote": "Kunci ini akan dibatasi pada model yang dipilih. Anda dapat mengubahnya nanti dari baris kunci tersebut.",+ "skip": "Nanti saja",+ "scopedOne": "Kunci dibatasi ke 1 model",+ "scopedOther": "Kunci dibatasi ke {count} model"+ },"cpTitle": "Profil klien","cpDesc": "Kunci API per klien, masing-masing dengan prompt sistem yang selalu diterapkan server.","cpEmpty": "Belum ada profil klien.",@@ -650,6 +660,14 @@"errorPrefix": "Kesalahan:","systemPromptLabel": "Perintah sistem","systemPromptPlaceholder": "Opsional. Dikirim sebagai pesan sistem sebelum obrolan Anda.",+ "showSettings": "Tampilkan pengaturan",+ "hideSettings": "Sembunyikan pengaturan",+ "samplingHeading": "Sampling",+ "samplingHelp": "Saat dimatikan, nilai bawaan penyedia sendiri yang berlaku. Hanya kontrol yang Anda aktifkan yang dikirim.",+ "samplingDefault": "Bawaan",+ "temperature": "Temperatur",+ "topP": "Top P",+ "maxTokens": "Token maksimum","errorTitle": "Permintaan gagal","attach": "Lampirkan file","attachTooMany": "Anda dapat melampirkan hingga {count} file per pesan.",@@ -659,6 +677,24 @@"noVisionBadge": "Tanpa gambar","visionWarning": "{model} tidak menerima gambar. Pilih model visi atau Otomatis."},+ "playgroundSessions": {+ "heading": "Percakapan",+ "newConversation": "Percakapan baru",+ "showSidebar": "Tampilkan percakapan",+ "hideSidebar": "Sembunyikan percakapan",+ "empty": "Belum ada percakapan yang tersimpan.",+ "untitled": "Percakapan tanpa judul",+ "rename": "Ganti nama",+ "renamePlaceholder": "Nama percakapan",+ "messageCount": "{count} pesan",+ "justNow": "baru saja",+ "minutesAgo": "{count} mnt lalu",+ "hoursAgo": "{count} jam lalu",+ "daysAgo": "{count} hari lalu",+ "loadFailed": "Tidak dapat membuka percakapan itu.",+ "renameFailed": "Tidak dapat mengganti nama percakapan itu.",+ "deleteFailed": "Tidak dapat menghapus percakapan itu."+ },"embeddings": {"title": "Model","description": "Penyematan gagal hanya dalam satu kelompok: model yang sama dilayani oleh penyedia lain. Vektor dari model yang berbeda tidak kompatibel, sehingga router tidak pernah menukar model Anda.",diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex 9ef67df1..f4b7aac0 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -519,6 +519,16 @@"modelScopeClear": "Hichapụ oke","modelScopeBadgeOne": "oke · model 1","modelScopeBadgeOther": "oke · model {count}",+ "modelPicker": {+ "title": "Kedu ụdị ndị igodo a kwesịrị iweta?",+ "hint": "Etinyela igodo {provider} gị, ọ na-ewetakwa ụdị niile dị n'okpuru ugbu a. Wepụ akara na nke ọ bụla igodo a na-enweghị ikike iji — rawụta ga-agafe ya maka ndị ahụ.",+ "count": "Ahọrọla {selected} n'ime {total}",+ "allNote": "Ahọrọla ihe niile — ọ dịghị ihe a na-echekwa, ụdị ndị a ga-agbakwụnye na katalọgụ mgbe e mesịrị ga-ejikwa igodo a.",+ "subsetNote": "A ga-ejedebe igodo a naanị na ụdị ndị ahọpụtara. Ị nwere ike ịgbanwe nke a mgbe e mesịrị site n'ahịrị igodo ahụ.",+ "skip": "Ọ bụghị ugbu a",+ "scopedOne": "Igodo ejedebere na model 1",+ "scopedOther": "Igodo ejedebere na model {count}"+ },"cpTitle": "Profaịlụ ndị ahịa","cpDesc": "Igodo API maka onye ahịa ọ bụla, nke ọ bụla nwere ntụziaka sistemu nke sava na-etinye mgbe niile.","cpEmpty": "Enwebeghị profaịlụ onye ahịa.",@@ -650,6 +660,14 @@"errorPrefix": "Njehie:","systemPromptLabel": "Ngwa ngwa sistemụ","systemPromptPlaceholder": "Nhọrọ. Ezitere dị ka ozi sistemụ tupu nkata gị.",+ "showSettings": "Gosi ntọala",+ "hideSettings": "Zoo ntọala",+ "samplingHeading": "Sampling",+ "samplingHelp": "Ọ bụrụ na agbanyụọ ya, ọdabara nke onye na-enye ya na-arụ ọrụ. Naanị njikwa ndị ị gbanyere ka a na-eziga.",+ "samplingDefault": "Ọdabara",+ "temperature": "Temperature",+ "topP": "Top P",+ "maxTokens": "Akara kachasị","errorTitle": "Arịrịọ agaghị","attach": "Tinye faịlụ","attachTooMany": "Ị nwere ike itinye ihe ruru faịlụ {count} n'ozi ọ bụla.",@@ -659,6 +677,24 @@"noVisionBadge": "Enweghị onyonyo","visionWarning": "{model} anaghị anabata onyonyo. Họrọ ụdị na-anabata onyonyo ma ọ bụ Akpaaka."},+ "playgroundSessions": {+ "heading": "Mkparịta ụka",+ "newConversation": "Mkparịta ụka ọhụrụ",+ "showSidebar": "Gosi mkparịta ụka",+ "hideSidebar": "Zoo mkparịta ụka",+ "empty": "Enweghị mkparịta ụka echekwara ruo ugbu a.",+ "untitled": "Mkparịta ụka enweghị aha",+ "rename": "Nyegharịa aha",+ "renamePlaceholder": "Aha mkparịta ụka",+ "messageCount": "Ozi {count}",+ "justNow": "ugbu a",+ "minutesAgo": "nkeji {count} gara aga",+ "hoursAgo": "awa {count} gara aga",+ "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ụ."+ },"embeddings": {"title": "Ụdị","description": "Ntinye na-ada n'ime naanị ezinụlọ: otu ụdị nke onye na-eweta ọzọ na-enye. Vectors sitere na ụdị dị iche iche adabaghị, yabụ na rawụta anaghị agbanwe gị ụdị.",diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 56241ea8..d3a6e139 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -519,6 +519,16 @@"modelScopeClear": "Cancella ambito","modelScopeBadgeOne": "limitata · 1 modello","modelScopeBadgeOther": "limitata · {count} modelli",+ "modelPicker": {+ "title": "Quali modelli deve servire questa chiave?",+ "hint": "La tua chiave {provider} è stata aggiunta e al momento serve tutti i modelli qui sotto. Deseleziona quelli che questa chiave non può usare — il router la salterà per quei modelli.",+ "count": "{selected} di {total} selezionati",+ "allNote": "Tutto selezionato — non viene salvato nulla e anche i modelli aggiunti al catalogo in seguito useranno questa chiave.",+ "subsetNote": "Questa chiave sarà limitata ai modelli selezionati. Puoi cambiarlo in seguito dalla riga della chiave.",+ "skip": "Non ora",+ "scopedOne": "Chiave limitata a 1 modello",+ "scopedOther": "Chiave limitata a {count} modelli"+ },"cpTitle": "Profili client","cpDesc": "Chiavi API per singolo client, ognuna con un prompt di sistema che il server applica sempre.","cpEmpty": "Nessun profilo client per ora.",@@ -650,6 +660,14 @@"errorPrefix": "Errore:","systemPromptLabel": "Prompt di sistema","systemPromptPlaceholder": "Facoltativo. Inviato come messaggio di sistema prima della chat.",+ "showSettings": "Mostra impostazioni",+ "hideSettings": "Nascondi impostazioni",+ "samplingHeading": "Campionamento",+ "samplingHelp": "Se disattivati, si applica il valore predefinito del provider stesso. Vengono inviati solo i controlli che attivi.",+ "samplingDefault": "Default",+ "temperature": "Temperatura",+ "topP": "Top P",+ "maxTokens": "Token massimi","errorTitle": "Richiesta non riuscita","attach": "Allega file","attachTooMany": "Puoi allegare fino a {count} file per messaggio.",@@ -659,6 +677,24 @@"noVisionBadge": "No immagini","visionWarning": "{model} non accetta immagini. Scegli un modello con visione o Auto."},+ "playgroundSessions": {+ "heading": "Conversazioni",+ "newConversation": "Nuova conversazione",+ "showSidebar": "Mostra conversazioni",+ "hideSidebar": "Nascondi conversazioni",+ "empty": "Ancora nessuna conversazione salvata.",+ "untitled": "Conversazione senza titolo",+ "rename": "Rinomina",+ "renamePlaceholder": "Nome della conversazione",+ "messageCount": "{count} messaggi",+ "justNow": "proprio ora",+ "minutesAgo": "{count} min fa",+ "hoursAgo": "{count} h fa",+ "daysAgo": "{count} g fa",+ "loadFailed": "Impossibile aprire quella conversazione.",+ "renameFailed": "Impossibile rinominare quella conversazione.",+ "deleteFailed": "Impossibile eliminare quella conversazione."+ },"embeddings": {"title": "Modelli","description": "Gli embedding fanno fallback solo all'interno di una famiglia: lo stesso modello servito da un altro fornitore. I vettori di modelli diversi sono incompatibili, quindi il router non scambia mai i modelli.",diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex 580e8bf4..088c10c8 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -519,6 +519,16 @@"modelScopeClear": "スコープを解除","modelScopeBadgeOne": "限定 · 1 モデル","modelScopeBadgeOther": "限定 · {count} モデル",+ "modelPicker": {+ "title": "このキーをどのモデルで使用しますか?",+ "hint": "{provider} のキーを追加しました。現在は以下のすべてのモデルで使用されます。このキーを使用できないモデルはチェックを外してください。それらのモデルではルーターがこのキーをスキップします。",+ "count": "{total} 件中 {selected} 件を選択",+ "allNote": "すべて選択されています。この場合は何も保存されず、今後カタログに追加されるモデルでもこのキーが使用されます。",+ "subsetNote": "このキーは選択したモデルに限定されます。この設定は後からキーの行で変更できます。",+ "skip": "今はしない",+ "scopedOne": "キーを 1 モデルに限定しました",+ "scopedOther": "キーを {count} モデルに限定しました"+ },"cpTitle": "クライアントプロファイル","cpDesc": "クライアントごとの API キー。それぞれのシステムプロンプトをサーバーが常に適用します。","cpEmpty": "クライアントプロファイルはまだありません。",@@ -650,6 +660,14 @@"errorPrefix": "エラー:","systemPromptLabel": "システムプロンプト","systemPromptPlaceholder": "オプション。チャットの前にシステム メッセージとして送信されます。",+ "showSettings": "設定を表示",+ "hideSettings": "設定を非表示",+ "samplingHeading": "サンプリング",+ "samplingHelp": "オフの場合はプロバイダー独自のデフォルトが適用されます。オンにしたコントロールのみが送信されます。",+ "samplingDefault": "デフォルト",+ "temperature": "温度",+ "topP": "Top P",+ "maxTokens": "最大トークン数","errorTitle": "リクエストが失敗しました","attach": "ファイルを添付","attachTooMany": "1 件のメッセージに添付できるファイルは最大 {count} 件です。",@@ -659,6 +677,24 @@"noVisionBadge": "画像不可","visionWarning": "{model} は画像を受け付けません。ビジョン モデルまたは「自動」を選択してください。"},+ "playgroundSessions": {+ "heading": "会話",+ "newConversation": "新しい会話",+ "showSidebar": "会話を表示",+ "hideSidebar": "会話を非表示",+ "empty": "保存された会話はまだありません。",+ "untitled": "無題の会話",+ "rename": "名前を変更",+ "renamePlaceholder": "会話名",+ "messageCount": "{count} 件のメッセージ",+ "justNow": "たった今",+ "minutesAgo": "{count}分前",+ "hoursAgo": "{count}時間前",+ "daysAgo": "{count}日前",+ "loadFailed": "この会話を開けませんでした。",+ "renameFailed": "この会話の名前を変更できませんでした。",+ "deleteFailed": "この会話を削除できませんでした。"+ },"embeddings": {"title": "モデル","description": "埋め込みはファミリー内のみでフェイルオーバーします。つまり、別のプロバイダーが提供する同じモデルです。異なるモデルのベクトルには互換性がないため、ルーターがモデルを交換することはありません。",diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex af952605..73b820b4 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -519,6 +519,16 @@"modelScopeClear": "ფარგლების გასუფთავება","modelScopeBadgeOne": "შეზღუდული · 1 მოდელი","modelScopeBadgeOther": "შეზღუდული · {count} მოდელი",+ "modelPicker": {+ "title": "რომელ მოდელებს უნდა ემსახუროს ეს გასაღები?",+ "hint": "თქვენი {provider}-ის გასაღები დაემატა და ამჟამად ემსახურება ქვემოთ ჩამოთვლილ ყველა მოდელს. მოხსენით მონიშვნა იმ მოდელებს, რომლებზეც ამ გასაღების გამოყენება ნებადართული არ არის — რაუტერი მათთვის ამ გასაღებს გამოტოვებს.",+ "count": "არჩეულია {total}-დან {selected}",+ "allNote": "ყველაფერი მონიშნულია — არაფერი ინახება და კატალოგში მოგვიანებით დამატებული მოდელებიც ამ გასაღებს გამოიყენებენ.",+ "subsetNote": "ეს გასაღები შეიზღუდება მონიშნული მოდელებით. ამის შეცვლა მოგვიანებით გასაღების სტრიქონიდან შეგიძლიათ.",+ "skip": "ახლა არა",+ "scopedOne": "გასაღები შეზღუდულია 1 მოდელით",+ "scopedOther": "გასაღები შეზღუდულია {count} მოდელით"+ },"cpTitle": "კლიენტის პროფილები","cpDesc": "ცალკე API გასაღები თითოეული კლიენტისთვის, თითოეულს აქვს სისტემური პრომპტი, რომელსაც სერვერი ყოველთვის იყენებს.","cpEmpty": "კლიენტის პროფილები ჯერ არ არის.",@@ -650,6 +660,14 @@"errorPrefix": "შეცდომა:","systemPromptLabel": "სისტემის მოთხოვნა","systemPromptPlaceholder": "სურვილისამებრ. გაიგზავნა სისტემური შეტყობინების სახით თქვენი ჩატის წინ.",+ "showSettings": "პარამეტრების ჩვენება",+ "hideSettings": "პარამეტრების დამალვა",+ "samplingHeading": "შერჩევა",+ "samplingHelp": "გამორთვისას მოქმედებს პროვაიდერის საკუთარი ნაგულისხმევი მნიშვნელობა. იგზავნება მხოლოდ ის პარამეტრები, რომლებსაც ჩართავთ.",+ "samplingDefault": "ნაგულისხმევი",+ "temperature": "ტემპერატურა",+ "topP": "Top P",+ "maxTokens": "მაქს. ტოკენები","errorTitle": "მოთხოვნა ვერ მოხერხდა","attach": "ფაილების მიმაგრება","attachTooMany": "ერთ შეტყობინებაზე შეგიძლიათ მაქსიმუმ {count} ფაილის მიმაგრება.",@@ -659,6 +677,24 @@"noVisionBadge": "სურათების გარეშე","visionWarning": "{model} არ იღებს სურათებს. აირჩიეთ ხედვის მოდელი ან ავტომატური."},+ "playgroundSessions": {+ "heading": "საუბრები",+ "newConversation": "ახალი საუბარი",+ "showSidebar": "საუბრების ჩვენება",+ "hideSidebar": "საუბრების დამალვა",+ "empty": "შენახული საუბრები ჯერ არ არის.",+ "untitled": "უსათაურო საუბარი",+ "rename": "გადარქმევა",+ "renamePlaceholder": "საუბრის სახელი",+ "messageCount": "{count} შეტყობინება",+ "justNow": "ახლახან",+ "minutesAgo": "{count} წთ წინ",+ "hoursAgo": "{count} სთ წინ",+ "daysAgo": "{count} დღის წინ",+ "loadFailed": "ამ საუბრის გახსნა ვერ მოხერხდა.",+ "renameFailed": "ამ საუბრის გადარქმევა ვერ მოხერხდა.",+ "deleteFailed": "ამ საუბრის წაშლა ვერ მოხერხდა."+ },"embeddings": {"title": "მოდელები","description": "ჩაშენებები ვერ ხერხდება მხოლოდ ოჯახში: იგივე მოდელი, რომელსაც სხვა პროვაიდერი ემსახურება. სხვადასხვა მოდელის ვექტორები შეუთავსებელია, ამიტომ როუტერი არასოდეს ცვლის მოდელებს თქვენზე.",diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 814ea650..634b4434 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -519,6 +519,16 @@"modelScopeClear": "លុបវិសាលភាព","modelScopeBadgeOne": "កំណត់ · ម៉ូដែល 1","modelScopeBadgeOther": "កំណត់ · ម៉ូដែល {count}",+ "modelPicker": {+ "title": "តើកូនសោនេះគួរបម្រើម៉ូដែលណាខ្លះ?",+ "hint": "កូនសោ {provider} របស់អ្នកត្រូវបានបន្ថែម ហើយបច្ចុប្បន្នវាបម្រើម៉ូដែលទាំងអស់ខាងក្រោម។ សូមដកសញ្ញាធីកចេញពីម៉ូដែលណាដែលកូនសោនេះមិនត្រូវបានអនុញ្ញាតឱ្យប្រើ — រ៉ោតទ័រនឹងរំលងវាសម្រាប់ម៉ូដែលទាំងនោះ។",+ "count": "បានជ្រើសរើស {selected} ក្នុងចំណោម {total}",+ "allNote": "បានជ្រើសរើសទាំងអស់ — គ្មានអ្វីត្រូវបានរក្សាទុកទេ ហើយម៉ូដែលដែលបានបន្ថែមទៅក្នុងកាតាឡុកនៅពេលក្រោយ ក៏នឹងប្រើកូនសោនេះដែរ។",+ "subsetNote": "កូនសោនេះនឹងត្រូវកំណត់ត្រឹមម៉ូដែលដែលបានជ្រើសរើស។ អ្នកអាចផ្លាស់ប្តូរវានៅពេលក្រោយពីជួរដេករបស់កូនសោ។",+ "skip": "មិនមែនឥឡូវទេ",+ "scopedOne": "កូនសោកំណត់ត្រឹមម៉ូដែល 1",+ "scopedOther": "កូនសោកំណត់ត្រឹមម៉ូដែល {count}"+ },"cpTitle": "ប្រវត្តិរូបអតិថិជន","cpDesc": "សោ API សម្រាប់អតិថិជននីមួយៗ ដែលមាន system prompt ដែលម៉ាស៊ីនមេអនុវត្តជានិច្ច។","cpEmpty": "មិនទាន់មានប្រវត្តិរូបអតិថិជនទេ។",@@ -650,6 +660,14 @@"errorPrefix": "កំហុស៖","systemPromptLabel": "ការជូនដំណឹងប្រព័ន្ធ","systemPromptPlaceholder": "ជាជម្រើស។ បានផ្ញើជាសារប្រព័ន្ធមុនពេលជជែករបស់អ្នក។",+ "showSettings": "បង្ហាញការកំណត់",+ "hideSettings": "លាក់ការកំណត់",+ "samplingHeading": "ការយកគំរូ",+ "samplingHelp": "នៅពេលបិទ លំនាំដើមរបស់អ្នកផ្តល់សេវាផ្ទាល់ត្រូវបានអនុវត្ត។ មានតែការគ្រប់គ្រងដែលអ្នកបើកប៉ុណ្ណោះដែលត្រូវបានផ្ញើ។",+ "samplingDefault": "លំនាំដើម",+ "temperature": "សីតុណ្ហភាព",+ "topP": "Top P",+ "maxTokens": "សញ្ញាអតិបរមា","errorTitle": "សំណើបរាជ័យ","attach": "ភ្ជាប់ឯកសារ","attachTooMany": "អ្នកអាចភ្ជាប់ឯកសារបានរហូតដល់ {count} ក្នុងមួយសារ។",@@ -659,6 +677,24 @@"noVisionBadge": "គ្មានរូបភាព","visionWarning": "{model} មិនទទួលយករូបភាពទេ។ សូមជ្រើសរើសម៉ូដែលដែលទទួលរូបភាព ឬ Auto។"},+ "playgroundSessions": {+ "heading": "ការសន្ទនា",+ "newConversation": "ការសន្ទនាថ្មី",+ "showSidebar": "បង្ហាញការសន្ទនា",+ "hideSidebar": "លាក់ការសន្ទនា",+ "empty": "មិនទាន់មានការសន្ទនាដែលបានរក្សាទុកនៅឡើយទេ។",+ "untitled": "ការសន្ទនាគ្មានចំណងជើង",+ "rename": "ប្តូរឈ្មោះ",+ "renamePlaceholder": "ឈ្មោះការសន្ទនា",+ "messageCount": "សារ {count}",+ "justNow": "អម្បាញ់មិញ",+ "minutesAgo": "{count} នាទីមុន",+ "hoursAgo": "{count} ម៉ោងមុន",+ "daysAgo": "{count} ថ្ងៃមុន",+ "loadFailed": "មិនអាចបើកការសន្ទនានោះបានទេ។",+ "renameFailed": "មិនអាចប្តូរឈ្មោះការសន្ទនានោះបានទេ។",+ "deleteFailed": "មិនអាចលុបការសន្ទនានោះបានទេ។"+ },"embeddings": {"title": "ម៉ូដែល","description": "Embeddings ត្រូវបានផ្ទេរទៅក្នុងគ្រួសារតែប៉ុណ្ណោះ៖ ម៉ូដែលដដែលដែលបម្រើដោយអ្នកផ្គត់ផ្គង់ផ្សេងទៀត។ វ៉ិចទ័រពីម៉ូដែលផ្សេងៗមិនអាចប្រើរួមគ្នាបានទេ ដូច្នេះរ៉ោតធឺមិនដែលប្ដូរម៉ូដែលលើអ្នកទេ។",diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 3b4a0163..285f92d3 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -519,6 +519,16 @@"modelScopeClear": "ವ್ಯಾಪ್ತಿ ತೆಗೆದುಹಾಕಿ","modelScopeBadgeOne": "ಸೀಮಿತ · 1 ಮಾಡೆಲ್","modelScopeBadgeOther": "ಸೀಮಿತ · {count} ಮಾಡೆಲ್ಗಳು",+ "modelPicker": {+ "title": "ಈ ಕೀ ಯಾವ ಮಾಡೆಲ್ಗಳಿಗೆ ಸೇವೆ ಸಲ್ಲಿಸಬೇಕು?",+ "hint": "ನಿಮ್ಮ {provider} ಕೀ ಸೇರಿಸಲಾಗಿದೆ ಮತ್ತು ಸದ್ಯಕ್ಕೆ ಅದು ಕೆಳಗಿನ ಪ್ರತಿಯೊಂದು ಮಾಡೆಲ್ಗೂ ಸೇವೆ ಸಲ್ಲಿಸುತ್ತದೆ. ಈ ಕೀ ಬಳಸಬಾರದ ಮಾಡೆಲ್ಗಳ ಆಯ್ಕೆಯನ್ನು ತೆಗೆದುಹಾಕಿ — ಅವುಗಳಿಗೆ ರೂಟರ್ ಇದನ್ನು ಬಿಟ್ಟುಬಿಡುತ್ತದೆ.",+ "count": "{total} ರಲ್ಲಿ {selected} ಆಯ್ಕೆಯಾಗಿವೆ",+ "allNote": "ಎಲ್ಲವನ್ನೂ ಆಯ್ಕೆ ಮಾಡಲಾಗಿದೆ — ಏನನ್ನೂ ಉಳಿಸಲಾಗುವುದಿಲ್ಲ, ಮತ್ತು ನಂತರ ಕ್ಯಾಟಲಾಗ್ಗೆ ಸೇರುವ ಮಾಡೆಲ್ಗಳೂ ಇದೇ ಕೀ ಬಳಸುತ್ತವೆ.",+ "subsetNote": "ಈ ಕೀ ಆಯ್ಕೆ ಮಾಡಿದ ಮಾಡೆಲ್ಗಳಿಗೆ ಮಾತ್ರ ಸೀಮಿತವಾಗಿರುತ್ತದೆ. ಇದನ್ನು ನೀವು ನಂತರ ಕೀಯ ಸಾಲಿನಿಂದ ಬದಲಾಯಿಸಬಹುದು.",+ "skip": "ಈಗ ಬೇಡ",+ "scopedOne": "ಕೀ 1 ಮಾಡೆಲ್ಗೆ ಸೀಮಿತ",+ "scopedOther": "ಕೀ {count} ಮಾಡೆಲ್ಗಳಿಗೆ ಸೀಮಿತ"+ },"cpTitle": "ಕ್ಲೈಂಟ್ ಪ್ರೊಫೈಲ್ಗಳು","cpDesc": "ಪ್ರತಿ ಕ್ಲೈಂಟ್ಗೆ ಪ್ರತ್ಯೇಕ API ಕೀ; ಅದರ ಸಿಸ್ಟಂ ಪ್ರಾಂಪ್ಟ್ ಅನ್ನು ಸರ್ವರ್ ಯಾವಾಗಲೂ ಅನ್ವಯಿಸುತ್ತದೆ.","cpEmpty": "ಇನ್ನೂ ಯಾವುದೇ ಕ್ಲೈಂಟ್ ಪ್ರೊಫೈಲ್ಗಳಿಲ್ಲ.",@@ -650,6 +660,14 @@"errorPrefix": "ದೋಷ:","systemPromptLabel": "ಸಿಸ್ಟಮ್ ಪ್ರಾಂಪ್ಟ್","systemPromptPlaceholder": "ಐಚ್ಛಿಕ. ನಿಮ್ಮ ಚಾಟ್ಗೆ ಮೊದಲು ಸಿಸ್ಟಮ್ ಸಂದೇಶವಾಗಿ ಕಳುಹಿಸಲಾಗಿದೆ.",+ "showSettings": "ಸೆಟ್ಟಿಂಗ್ಗಳನ್ನು ತೋರಿಸಿ",+ "hideSettings": "ಸೆಟ್ಟಿಂಗ್ಗಳನ್ನು ಮರೆಮಾಡಿ",+ "samplingHeading": "ಸ್ಯಾಂಪ್ಲಿಂಗ್",+ "samplingHelp": "ಆಫ್ ಆಗಿದ್ದಾಗ ಒದಗಿಸುವವರ ಸ್ವಂತ ಡೀಫಾಲ್ಟ್ ಅನ್ವಯವಾಗುತ್ತದೆ. ನೀವು ಆನ್ ಮಾಡಿದ ನಿಯಂತ್ರಣಗಳನ್ನು ಮಾತ್ರ ಕಳುಹಿಸಲಾಗುತ್ತದೆ.",+ "samplingDefault": "ಡೀಫಾಲ್ಟ್",+ "temperature": "ತಾಪಮಾನ",+ "topP": "Top P",+ "maxTokens": "ಗರಿಷ್ಠ ಟೋಕನ್ಗಳು","errorTitle": "ವಿನಂತಿ ವಿಫಲವಾಗಿದೆ","attach": "ಫೈಲ್ಗಳನ್ನು ಲಗತ್ತಿಸಿ","attachTooMany": "ಪ್ರತಿ ಸಂದೇಶಕ್ಕೆ ನೀವು ಗರಿಷ್ಠ {count} ಫೈಲ್ಗಳನ್ನು ಲಗತ್ತಿಸಬಹುದು.",@@ -659,6 +677,24 @@"noVisionBadge": "ಚಿತ್ರಗಳಿಲ್ಲ","visionWarning": "{model} ಚಿತ್ರಗಳನ್ನು ಸ್ವೀಕರಿಸುವುದಿಲ್ಲ. ಚಿತ್ರದ ಇನ್ಪುಟ್ ಸ್ವೀಕರಿಸುವ ಮಾದರಿ ಅಥವಾ ಸ್ವಯಂ ಆಯ್ಕೆಮಾಡಿ."},+ "playgroundSessions": {+ "heading": "ಸಂಭಾಷಣೆಗಳು",+ "newConversation": "ಹೊಸ ಸಂಭಾಷಣೆ",+ "showSidebar": "ಸಂಭಾಷಣೆಗಳನ್ನು ತೋರಿಸಿ",+ "hideSidebar": "ಸಂಭಾಷಣೆಗಳನ್ನು ಮರೆಮಾಡಿ",+ "empty": "ಇನ್ನೂ ಯಾವುದೇ ಉಳಿಸಿದ ಸಂಭಾಷಣೆಗಳಿಲ್ಲ.",+ "untitled": "ಶೀರ್ಷಿಕೆ ಇಲ್ಲದ ಸಂಭಾಷಣೆ",+ "rename": "ಮರುಹೆಸರಿಸಿ",+ "renamePlaceholder": "ಸಂಭಾಷಣೆಯ ಹೆಸರು",+ "messageCount": "{count} ಸಂದೇಶಗಳು",+ "justNow": "ಈಗಷ್ಟೇ",+ "minutesAgo": "{count} ನಿಮಿ. ಹಿಂದೆ",+ "hoursAgo": "{count} ಗಂ. ಹಿಂದೆ",+ "daysAgo": "{count} ದಿನ ಹಿಂದೆ",+ "loadFailed": "ಆ ಸಂಭಾಷಣೆಯನ್ನು ತೆರೆಯಲಾಗಲಿಲ್ಲ.",+ "renameFailed": "ಆ ಸಂಭಾಷಣೆಯನ್ನು ಮರುಹೆಸರಿಸಲಾಗಲಿಲ್ಲ.",+ "deleteFailed": "ಆ ಸಂಭಾಷಣೆಯನ್ನು ಅಳಿಸಲಾಗಲಿಲ್ಲ."+ },"embeddings": {"title": "ಮಾದರಿಗಳು","description": "ಎಂಬೆಡಿಂಗ್ಗಳು ಕುಟುಂಬದೊಳಗೆ ಮಾತ್ರ ವಿಫಲಗೊಳ್ಳುತ್ತವೆ: ಅದೇ ಮಾದರಿಯನ್ನು ಇನ್ನೊಬ್ಬ ಪೂರೈಕೆದಾರರು ಒದಗಿಸುತ್ತಾರೆ. ವಿಭಿನ್ನ ಮಾದರಿಗಳಿಂದ ವೆಕ್ಟರ್ಗಳು ಹೊಂದಿಕೆಯಾಗುವುದಿಲ್ಲ, ಆದ್ದರಿಂದ ರೂಟರ್ ಎಂದಿಗೂ ನಿಮ್ಮ ಮೇಲೆ ಮಾದರಿಗಳನ್ನು ಬದಲಾಯಿಸುವುದಿಲ್ಲ.",diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex b3857905..8f61f48f 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -519,6 +519,16 @@"modelScopeClear": "범위 지우기","modelScopeBadgeOne": "제한됨 · 모델 1개","modelScopeBadgeOther": "제한됨 · 모델 {count}개",+ "modelPicker": {+ "title": "이 키로 어떤 모델을 제공할까요?",+ "hint": "{provider} 키가 추가되었으며 현재 아래의 모든 모델에 사용됩니다. 이 키를 사용할 수 없는 모델은 체크를 해제하세요. 해당 모델에는 라우터가 이 키를 건너뜁니다.",+ "count": "{total}개 중 {selected}개 선택됨",+ "allNote": "전체가 선택되었습니다. 아무것도 저장되지 않으며, 나중에 카탈로그에 추가되는 모델에도 이 키가 사용됩니다.",+ "subsetNote": "이 키는 선택한 모델로 제한됩니다. 나중에 키 행에서 변경할 수 있습니다.",+ "skip": "나중에",+ "scopedOne": "키가 모델 1개로 제한됨",+ "scopedOther": "키가 모델 {count}개로 제한됨"+ },"cpTitle": "클라이언트 프로필","cpDesc": "클라이언트별 API 키로, 각 키의 시스템 프롬프트를 서버가 항상 적용합니다.","cpEmpty": "아직 클라이언트 프로필이 없습니다.",@@ -650,6 +660,14 @@"errorPrefix": "오류:","systemPromptLabel": "시스템 프롬프트","systemPromptPlaceholder": "선택사항. 채팅 전 시스템 메시지로 전송됩니다.",+ "showSettings": "설정 표시",+ "hideSettings": "설정 숨기기",+ "samplingHeading": "샘플링",+ "samplingHelp": "꺼져 있으면 공급자의 기본값이 적용됩니다. 켜 둔 컨트롤만 전송됩니다.",+ "samplingDefault": "기본값",+ "temperature": "온도",+ "topP": "Top P",+ "maxTokens": "최대 토큰","errorTitle": "요청 실패","attach": "파일 첨부","attachTooMany": "메시지당 최대 {count}개의 파일을 첨부할 수 있습니다.",@@ -659,6 +677,24 @@"noVisionBadge": "이미지 불가","visionWarning": "{model}은(는) 이미지를 지원하지 않습니다. 이미지 입력이 가능한 모델 또는 자동을 선택하세요."},+ "playgroundSessions": {+ "heading": "대화",+ "newConversation": "새 대화",+ "showSidebar": "대화 표시",+ "hideSidebar": "대화 숨기기",+ "empty": "저장된 대화가 아직 없습니다.",+ "untitled": "제목 없는 대화",+ "rename": "이름 변경",+ "renamePlaceholder": "대화 이름",+ "messageCount": "메시지 {count}개",+ "justNow": "방금",+ "minutesAgo": "{count}분 전",+ "hoursAgo": "{count}시간 전",+ "daysAgo": "{count}일 전",+ "loadFailed": "해당 대화를 열지 못했습니다.",+ "renameFailed": "해당 대화의 이름을 변경하지 못했습니다.",+ "deleteFailed": "해당 대화를 삭제하지 못했습니다."+ },"embeddings": {"title": "모델","description": "임베딩은 제품군 내에서만 장애 조치됩니다. 동일한 모델은 다른 공급자가 제공합니다. 다른 모델의 벡터는 호환되지 않으므로 라우터는 사용자의 모델을 절대 교체하지 않습니다.",diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex 3a56985a..0fba4109 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -519,6 +519,16 @@"modelScopeClear": "Išvalyti aprėptį","modelScopeBadgeOne": "apribotas · 1 modelis","modelScopeBadgeOther": "apribotas · {count} modeliai",+ "modelPicker": {+ "title": "Kuriuos modelius turėtų aptarnauti šis raktas?",+ "hint": "Jūsų {provider} raktas pridėtas ir šiuo metu aptarnauja visus toliau pateiktus modelius. Atžymėkite tuos, kurių šiam raktui naudoti negalima — maršrutizatorius jį jiems praleis.",+ "count": "Pasirinkta {selected} iš {total}",+ "allNote": "Pasirinkta viskas — niekas neįrašoma, o vėliau į katalogą įtraukti modeliai taip pat naudos šį raktą.",+ "subsetNote": "Šis raktas bus apribotas pasirinktais modeliais. Tai galėsite pakeisti vėliau rakto eilutėje.",+ "skip": "Ne dabar",+ "scopedOne": "Raktas apribotas 1 modeliu",+ "scopedOther": "Raktas apribotas iki {count} modelių"+ },"cpTitle": "Klientų profiliai","cpDesc": "Atskiri API raktai kiekvienam klientui, kiekvienas su sisteminiu promptu, kurį serveris visada taiko.","cpEmpty": "Klientų profilių kol kas nėra.",@@ -650,6 +660,14 @@"errorPrefix": "Klaida:","systemPromptLabel": "Sistemos užklausa","systemPromptPlaceholder": "Pasirinktinai. Siunčiama kaip sistemos žinutė prieš jūsų pokalbį.",+ "showSettings": "Rodyti nustatymus",+ "hideSettings": "Slėpti nustatymus",+ "samplingHeading": "Atranka",+ "samplingHelp": "Kai išjungta, taikoma paties tiekėjo numatytoji reikšmė. Siunčiami tik tie valdikliai, kuriuos įjungiate.",+ "samplingDefault": "Numatytasis",+ "temperature": "Temperatūra",+ "topP": "Top P",+ "maxTokens": "Daugiausia žetonų","errorTitle": "Užklausa atmesta","attach": "Pridėti failus","attachTooMany": "Prie vienos žinutės galite pridėti iki {count} failų.",@@ -659,6 +677,24 @@"noVisionBadge": "Be vaizdų","visionWarning": "Modelis {model} nepriima vaizdų. Pasirinkite vaizdo įvestį palaikantį modelį arba Auto."},+ "playgroundSessions": {+ "heading": "Pokalbiai",+ "newConversation": "Naujas pokalbis",+ "showSidebar": "Rodyti pokalbius",+ "hideSidebar": "Slėpti pokalbius",+ "empty": "Išsaugotų pokalbių dar nėra.",+ "untitled": "Pokalbis be pavadinimo",+ "rename": "Pervadinti",+ "renamePlaceholder": "Pokalbio pavadinimas",+ "messageCount": "{count} žinučių",+ "justNow": "ką tik",+ "minutesAgo": "prieš {count} min.",+ "hoursAgo": "prieš {count} val.",+ "daysAgo": "prieš {count} d.",+ "loadFailed": "Nepavyko atidaryti šio pokalbio.",+ "renameFailed": "Nepavyko pervadinti šio pokalbio.",+ "deleteFailed": "Nepavyko ištrinti šio pokalbio."+ },"embeddings": {"title": "Modeliai","description": "Įterpimai perduodami tik šeimoje: tas pats modelis, kurį teikia kitas paslaugų teikėjas. Vektoriai iš skirtingų modelių yra nesuderinami, todėl maršrutizatorius niekada nekeičia modelių.",diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex 8c70279b..e0aa321f 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -519,6 +519,16 @@"modelScopeClear": "പരിധി നീക്കം ചെയ്യുക","modelScopeBadgeOne": "പരിമിതം · 1 മോഡൽ","modelScopeBadgeOther": "പരിമിതം · {count} മോഡലുകൾ",+ "modelPicker": {+ "title": "ഈ കീ ഏതൊക്കെ മോഡലുകൾക്കായി പ്രവർത്തിക്കണം?",+ "hint": "നിങ്ങളുടെ {provider} കീ ചേർത്തു, ഇപ്പോൾ അത് താഴെയുള്ള എല്ലാ മോഡലുകൾക്കും സേവനം നൽകുന്നു. ഈ കീ ഉപയോഗിക്കാൻ പാടില്ലാത്ത മോഡലുകളുടെ ടിക് ഒഴിവാക്കുക — അവയ്ക്കായി റൂട്ടർ ഇത് ഒഴിവാക്കും.",+ "count": "{total}-ൽ {selected} തിരഞ്ഞെടുത്തു",+ "allNote": "എല്ലാം തിരഞ്ഞെടുത്തിരിക്കുന്നു — ഒന്നും സംരക്ഷിക്കുന്നില്ല, പിന്നീട് കാറ്റലോഗിൽ ചേർക്കുന്ന മോഡലുകളും ഈ കീ ഉപയോഗിക്കും.",+ "subsetNote": "ഈ കീ തിരഞ്ഞെടുത്ത മോഡലുകളിലേക്ക് മാത്രം പരിമിതപ്പെടും. ഇത് പിന്നീട് കീയുടെ വരിയിൽ നിന്ന് മാറ്റാം.",+ "skip": "ഇപ്പോൾ വേണ്ട",+ "scopedOne": "കീ 1 മോഡലിലേക്ക് പരിമിതം",+ "scopedOther": "കീ {count} മോഡലുകളിലേക്ക് പരിമിതം"+ },"cpTitle": "ക്ലയന്റ് പ്രൊഫൈലുകൾ","cpDesc": "ഓരോ ക്ലയന്റിനും പ്രത്യേക API കീ; അതിന്റെ സിസ്റ്റം പ്രോംപ്റ്റ് സെർവർ എപ്പോഴും പ്രയോഗിക്കുന്നു.","cpEmpty": "ഇതുവരെ ക്ലയന്റ് പ്രൊഫൈലുകളില്ല.",@@ -650,6 +660,14 @@"errorPrefix": "പിശക്:","systemPromptLabel": "സിസ്റ്റം പ്രോംപ്റ്റ്","systemPromptPlaceholder": "ഓപ്ഷണൽ. നിങ്ങളുടെ ചാറ്റിന് മുമ്പ് ഒരു സിസ്റ്റം സന്ദേശമായി അയച്ചു.",+ "showSettings": "ക്രമീകരണങ്ങൾ കാണിക്കുക",+ "hideSettings": "ക്രമീകരണങ്ങൾ മറയ്ക്കുക",+ "samplingHeading": "സാമ്പ്ലിംഗ്",+ "samplingHelp": "ഓഫാക്കിയാൽ ദാതാവിന്റെ സ്വന്തം സ്ഥിരസ്ഥിതി ബാധകമാകും. നിങ്ങൾ ഓണാക്കുന്ന നിയന്ത്രണങ്ങൾ മാത്രമേ അയയ്ക്കൂ.",+ "samplingDefault": "സ്ഥിരസ്ഥിതി",+ "temperature": "താപനില",+ "topP": "Top P",+ "maxTokens": "പരമാവധി ടോക്കണുകൾ","errorTitle": "അഭ്യർത്ഥന പരാജയപ്പെട്ടു","attach": "ഫയലുകൾ അറ്റാച്ചുചെയ്യുക","attachTooMany": "ഓരോ സന്ദേശത്തിലും പരമാവധി {count} ഫയലുകൾ വരെ അറ്റാച്ചുചെയ്യാം.",@@ -659,6 +677,24 @@"noVisionBadge": "ചിത്രങ്ങളില്ല","visionWarning": "{model} ചിത്രങ്ങൾ സ്വീകരിക്കുന്നില്ല. ഇമേജ് ഇൻപുട്ട് സ്വീകരിക്കുന്ന മോഡൽ അല്ലെങ്കിൽ ഓട്ടോ തിരഞ്ഞെടുക്കുക."},+ "playgroundSessions": {+ "heading": "സംഭാഷണങ്ങൾ",+ "newConversation": "പുതിയ സംഭാഷണം",+ "showSidebar": "സംഭാഷണങ്ങൾ കാണിക്കുക",+ "hideSidebar": "സംഭാഷണങ്ങൾ മറയ്ക്കുക",+ "empty": "സംരക്ഷിച്ച സംഭാഷണങ്ങളൊന്നും ഇതുവരെയില്ല.",+ "untitled": "പേരില്ലാത്ത സംഭാഷണം",+ "rename": "പേരു മാറ്റുക",+ "renamePlaceholder": "സംഭാഷണത്തിന്റെ പേര്",+ "messageCount": "{count} സന്ദേശങ്ങൾ",+ "justNow": "ഇപ്പോൾ",+ "minutesAgo": "{count} മി. മുമ്പ്",+ "hoursAgo": "{count} മ. മുമ്പ്",+ "daysAgo": "{count} ദി. മുമ്പ്",+ "loadFailed": "ആ സംഭാഷണം തുറക്കാനായില്ല.",+ "renameFailed": "ആ സംഭാഷണത്തിന്റെ പേര് മാറ്റാനായില്ല.",+ "deleteFailed": "ആ സംഭാഷണം ഇല്ലാതാക്കാനായില്ല."+ },"embeddings": {"title": "മോഡലുകൾ","description": "ഉൾച്ചേർക്കലുകൾ പരാജയപ്പെടുന്നത് ഒരു കുടുംബത്തിനുള്ളിൽ മാത്രം: മറ്റൊരു ദാതാവ് നൽകുന്ന അതേ മാതൃക. വ്യത്യസ്ത മോഡലുകളിൽ നിന്നുള്ള വെക്ടറുകൾ പൊരുത്തപ്പെടുന്നില്ല, അതിനാൽ റൂട്ടർ ഒരിക്കലും നിങ്ങളിലേക്ക് മോഡലുകൾ സ്വാപ്പ് ചെയ്യുന്നില്ല.",diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex 144ba4d6..6036a9e8 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -519,6 +519,16 @@"modelScopeClear": "व्याप्ती काढा","modelScopeBadgeOne": "मर्यादित · 1 मॉडेल","modelScopeBadgeOther": "मर्यादित · {count} मॉडेल",+ "modelPicker": {+ "title": "ही की कोणत्या मॉडेल्ससाठी वापरली जावी?",+ "hint": "तुमची {provider} की जोडली गेली आहे आणि सध्या ती खालील प्रत्येक मॉडेलसाठी वापरली जाते. ज्या मॉडेल्ससाठी ही की वापरता येणार नाही त्यांची निवड काढून टाका — राउटर त्यांच्यासाठी ती वगळेल.",+ "count": "{total} पैकी {selected} निवडले",+ "allNote": "सर्व काही निवडले आहे — काहीही जतन केले जात नाही, आणि नंतर कॅटलॉगमध्ये जोडली जाणारी मॉडेल्सही हीच की वापरतील.",+ "subsetNote": "ही की फक्त निवडलेल्या मॉडेल्सपुरती मर्यादित राहील. तुम्ही हे नंतर कीच्या ओळीतून बदलू शकता.",+ "skip": "आत्ता नको",+ "scopedOne": "की 1 मॉडेलपुरती मर्यादित",+ "scopedOther": "की {count} मॉडेल्सपुरती मर्यादित"+ },"cpTitle": "क्लायंट प्रोफाइल","cpDesc": "प्रत्येक क्लायंटसाठी वेगळी API की, जिचा सिस्टम प्रॉम्प्ट सर्व्हर नेहमी लागू करतो.","cpEmpty": "अद्याप कोणतेही क्लायंट प्रोफाइल नाहीत.",@@ -650,6 +660,14 @@"errorPrefix": "त्रुटी:","systemPromptLabel": "सिस्टम प्रॉम्प्ट","systemPromptPlaceholder": "ऐच्छिक. तुमच्या चॅटपूर्वी सिस्टम मेसेज म्हणून पाठवले.",+ "showSettings": "सेटिंग्ज दाखवा",+ "hideSettings": "सेटिंग्ज लपवा",+ "samplingHeading": "सॅम्पलिंग",+ "samplingHelp": "बंद असल्यास प्रदात्याचे स्वतःचे डीफॉल्ट लागू होते. तुम्ही चालू करता तीच नियंत्रणे पाठवली जातात.",+ "samplingDefault": "डीफॉल्ट",+ "temperature": "तापमान",+ "topP": "Top P",+ "maxTokens": "कमाल टोकन","errorTitle": "विनंती अयशस्वी","attach": "फाइल्स संलग्न करा","attachTooMany": "तुम्ही प्रति संदेश जास्तीत जास्त {count} फाइल्स संलग्न करू शकता.",@@ -659,6 +677,24 @@"noVisionBadge": "प्रतिमा नाही","visionWarning": "{model} प्रतिमा स्वीकारत नाही. दृष्टी मॉडेल किंवा ऑटो निवडा."},+ "playgroundSessions": {+ "heading": "संभाषणे",+ "newConversation": "नवीन संभाषण",+ "showSidebar": "संभाषणे दाखवा",+ "hideSidebar": "संभाषणे लपवा",+ "empty": "अद्याप कोणतीही जतन केलेली संभाषणे नाहीत.",+ "untitled": "शीर्षक नसलेले संभाषण",+ "rename": "नाव बदला",+ "renamePlaceholder": "संभाषणाचे नाव",+ "messageCount": "{count} संदेश",+ "justNow": "आत्ताच",+ "minutesAgo": "{count} मिनि. पूर्वी",+ "hoursAgo": "{count} ता. पूर्वी",+ "daysAgo": "{count} दि. पूर्वी",+ "loadFailed": "ते संभाषण उघडता आले नाही.",+ "renameFailed": "त्या संभाषणाचे नाव बदलता आले नाही.",+ "deleteFailed": "ते संभाषण हटवता आले नाही."+ },"embeddings": {"title": "मॉडेल्स","description": "एम्बेडिंग केवळ कुटुंबातच अयशस्वी होते: तेच मॉडेल दुसऱ्या प्रदात्याद्वारे दिले जाते. वेगवेगळ्या मॉडेल्समधील व्हेक्टर विसंगत असतात, त्यामुळे राउटर कधीही तुमच्यावर मॉडेल्स बदलत नाही.",diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex 76afa36e..0056cd1a 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -519,6 +519,16 @@"modelScopeClear": "Kosongkan skop","modelScopeBadgeOne": "terhad · 1 model","modelScopeBadgeOther": "terhad · {count} model",+ "modelPicker": {+ "title": "Model manakah yang patut dilayan oleh kunci ini?",+ "hint": "Kunci {provider} anda telah ditambah dan kini melayani setiap model di bawah. Nyahtanda mana-mana model yang kunci ini tidak dibenarkan guna — penghala akan melangkaunya untuk model tersebut.",+ "count": "{selected} daripada {total} dipilih",+ "allNote": "Semua dipilih — tiada apa-apa disimpan, dan model yang ditambah ke katalog kemudian juga akan menggunakan kunci ini.",+ "subsetNote": "Kunci ini akan dihadkan kepada model yang dipilih. Anda boleh mengubahnya kemudian daripada baris kunci itu.",+ "skip": "Bukan sekarang",+ "scopedOne": "Kunci terhad kepada 1 model",+ "scopedOther": "Kunci terhad kepada {count} model"+ },"cpTitle": "Profil klien","cpDesc": "Kunci API bagi setiap klien, masing-masing dengan prompt sistem yang sentiasa digunakan oleh pelayan.","cpEmpty": "Belum ada profil klien.",@@ -650,6 +660,14 @@"errorPrefix": "Ralat:","systemPromptLabel": "Arahan sistem","systemPromptPlaceholder": "Pilihan. Dihantar sebagai mesej sistem sebelum sembang anda.",+ "showSettings": "Tunjukkan tetapan",+ "hideSettings": "Sembunyikan tetapan",+ "samplingHeading": "Pensampelan",+ "samplingHelp": "Apabila dimatikan, nilai lalai penyedia sendiri digunakan. Hanya kawalan yang anda hidupkan akan dihantar.",+ "samplingDefault": "Lalai",+ "temperature": "Suhu",+ "topP": "Top P",+ "maxTokens": "Token maksimum","errorTitle": "Permintaan gagal","attach": "Lampirkan fail","attachTooMany": "Anda boleh melampirkan sehingga {count} fail bagi setiap mesej.",@@ -659,6 +677,24 @@"noVisionBadge": "Tiada imej","visionWarning": "{model} tidak menerima imej. Pilih model yang menyokong imej atau Auto."},+ "playgroundSessions": {+ "heading": "Perbualan",+ "newConversation": "Perbualan baharu",+ "showSidebar": "Tunjukkan perbualan",+ "hideSidebar": "Sembunyikan perbualan",+ "empty": "Belum ada perbualan yang disimpan.",+ "untitled": "Perbualan tanpa tajuk",+ "rename": "Tukar nama",+ "renamePlaceholder": "Nama perbualan",+ "messageCount": "{count} mesej",+ "justNow": "sebentar tadi",+ "minutesAgo": "{count} min lalu",+ "hoursAgo": "{count} jam lalu",+ "daysAgo": "{count} hari lalu",+ "loadFailed": "Tidak dapat membuka perbualan itu.",+ "renameFailed": "Tidak dapat menukar nama perbualan itu.",+ "deleteFailed": "Tidak dapat memadam perbualan itu."+ },"embeddings": {"title": "Model","description": "Embedding gagal dalam satu keluarga sahaja: model yang sama dilayan oleh penyedia lain. Vektor dari model yang berbeza tidak serasi, jadi router tidak pernah menukar model pada anda.",diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 0bdfdb77..745418f3 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -519,6 +519,16 @@"modelScopeClear": "အတိုင်းအတာ ဖယ်ရှားရန်","modelScopeBadgeOne": "ကန့်သတ် · မော်ဒယ် 1 ခု","modelScopeBadgeOther": "ကန့်သတ် · မော်ဒယ် {count} ခု",+ "modelPicker": {+ "title": "ဤကီးသည် မည်သည့်မော်ဒယ်များကို ဝန်ဆောင်ပေးသင့်သလဲ?",+ "hint": "သင်၏ {provider} ကီးကို ထည့်ပြီးပါပြီ၊ လက်ရှိတွင် အောက်ပါ မော်ဒယ်အားလုံးကို ဝန်ဆောင်ပေးနေပါသည်။ ဤကီးကို အသုံးပြုခွင့်မရှိသည့် မော်ဒယ်များ၏ အမှန်ခြစ်ကို ဖြုတ်ပါ — router သည် ထိုမော်ဒယ်များအတွက် ၎င်းကို ကျော်သွားပါမည်။",+ "count": "{total} အနက် {selected} ခု ရွေးထားသည်",+ "allNote": "အားလုံး ရွေးထားသည် — မည်သည့်အရာမှ သိမ်းဆည်းမည်မဟုတ်ဘဲ၊ နောင်တွင် ကတ်တလောက်ထဲသို့ ထပ်ထည့်သော မော်ဒယ်များကလည်း ဤကီးကို အသုံးပြုပါမည်။",+ "subsetNote": "ဤကီးကို ရွေးထားသော မော်ဒယ်များအတွက်သာ ကန့်သတ်ပါမည်။ ၎င်းကို နောက်မှ ကီး၏ အတန်းမှ ပြောင်းလဲနိုင်ပါသည်။",+ "skip": "ယခုမလုပ်ပါ",+ "scopedOne": "ကီးကို မော်ဒယ် 1 ခုသာ ကန့်သတ်ထား",+ "scopedOther": "ကီးကို မော်ဒယ် {count} ခုသာ ကန့်သတ်ထား"+ },"cpTitle": "ကလိုင်းယင့် ပရိုဖိုင်များ","cpDesc": "ကလိုင်းယင့်တစ်ခုချင်းစီအတွက် သီးခြား API ကီးများ၊ တစ်ခုစီတွင် ဆာဗာက အမြဲအသုံးပြုသည့် စနစ် prompt ပါရှိသည်။","cpEmpty": "ကလိုင်းယင့် ပရိုဖိုင် မရှိသေးပါ။",@@ -650,6 +660,14 @@"errorPrefix": "အမှား:","systemPromptLabel": "System prompt","systemPromptPlaceholder": "ရွေးချယ်နိုင်ပါတယ်။ သင့်စကားပြောမှုမတိုင်မီ စနစ်မက်ဆေ့ခ်ျအဖြစ် ပို့သည်။",+ "showSettings": "ဆက်တင်များ ပြပါ",+ "hideSettings": "ဆက်တင်များ ဖုံးကွယ်ပါ",+ "samplingHeading": "နမူနာယူခြင်း",+ "samplingHelp": "ပိတ်ထားပါက ပံ့ပိုးသူ၏ မူလတန်ဖိုးကို အသုံးပြုပါသည်။ သင်ဖွင့်ထားသော ထိန်းချုပ်မှုများကိုသာ ပေးပို့ပါသည်။",+ "samplingDefault": "မူလအခြေအနေ",+ "temperature": "အပူချိန်",+ "topP": "Top P",+ "maxTokens": "အများဆုံး token များ","errorTitle": "တောင်းဆိုမှု မအောင်မြင်ပါ","attach": "ဖိုင်များ ပူးတွဲပါ","attachTooMany": "မက်ဆေ့ခ်ျတစ်ခုလျှင် ဖိုင် {count} ခုအထိ ပူးတွဲနိုင်ပါသည်။",@@ -659,6 +677,24 @@"noVisionBadge": "ပုံမရ","visionWarning": "{model} သည် ပုံများကို လက်မခံပါ။ ပုံရိပ်ထည့်သွင်းမှုကို လက်ခံသော မော်ဒယ် သို့မဟုတ် အော်တို ကို ရွေးပါ။"},+ "playgroundSessions": {+ "heading": "စကားဝိုင်းများ",+ "newConversation": "စကားဝိုင်းအသစ်",+ "showSidebar": "စကားဝိုင်းများ ပြပါ",+ "hideSidebar": "စကားဝိုင်းများ ဖုံးကွယ်ပါ",+ "empty": "သိမ်းဆည်းထားသော စကားဝိုင်း မရှိသေးပါ။",+ "untitled": "ခေါင်းစဉ်မဲ့ စကားဝိုင်း",+ "rename": "အမည်ပြောင်းပါ",+ "renamePlaceholder": "စကားဝိုင်း အမည်",+ "messageCount": "မက်ဆေ့ခ်ျ {count} ခု",+ "justNow": "ယခုလေးတင်",+ "minutesAgo": "{count} မိနစ်က",+ "hoursAgo": "{count} နာရီက",+ "daysAgo": "{count} ရက်က",+ "loadFailed": "ထိုစကားဝိုင်းကို ဖွင့်၍မရပါ။",+ "renameFailed": "ထိုစကားဝိုင်း၏ အမည်ကို ပြောင်း၍မရပါ။",+ "deleteFailed": "ထိုစကားဝိုင်းကို ဖျက်၍မရပါ။"+ },"embeddings": {"title": "မော်ဒယ်များ","description": "Embedding များသည် မိသားစုအတွင်းသာ failover ပြုလုပ်သည်။ အခြားပံ့ပိုးသူတစ်ဦးက ဝန်ဆောင်မှုပေးသော မော်ဒယ်တူညီသည်။ မော်ဒယ်အမျိုးမျိုးက ဗက်တာတွေက မကိုက်ညီဘူး၊ ဒါကြောင့် router က မော်ဒယ်တွေကို မပြောင်းဘူး။",diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex f1be2a31..08278160 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -519,6 +519,16 @@"modelScopeClear": "दायरा हटाउनुहोस्","modelScopeBadgeOne": "सीमित · 1 मोडेल","modelScopeBadgeOther": "सीमित · {count} मोडेल",+ "modelPicker": {+ "title": "यो कुञ्जीले कुन मोडेलहरूलाई सेवा दिनुपर्छ?",+ "hint": "तपाईंको {provider} कुञ्जी थपियो र यसले हाल तलका सबै मोडेललाई सेवा दिन्छ। यो कुञ्जीले प्रयोग गर्न नहुने कुनै पनि मोडेलको चिन्ह हटाउनुहोस् — राउटरले ती मोडेलका लागि यो कुञ्जी छोड्नेछ।",+ "count": "{total} मध्ये {selected} छानिएको",+ "allNote": "सबै छानिएका छन् — केही पनि सुरक्षित गरिँदैन, र पछि क्याटलगमा थपिने मोडेलहरूले पनि यही कुञ्जी प्रयोग गर्नेछन्।",+ "subsetNote": "यो कुञ्जी छानिएका मोडेलहरूमा मात्र सीमित हुनेछ। तपाईं यसलाई पछि कुञ्जीको पङ्क्तिबाट परिवर्तन गर्न सक्नुहुन्छ।",+ "skip": "अहिले होइन",+ "scopedOne": "कुञ्जी 1 मोडेलमा सीमित",+ "scopedOther": "कुञ्जी {count} मोडेलमा सीमित"+ },"cpTitle": "क्लाइन्ट प्रोफाइलहरू","cpDesc": "प्रत्येक क्लाइन्टका लागि छुट्टै API कुञ्जी, जसको सिस्टम प्रम्प्ट सर्भरले सधैँ लागू गर्छ।","cpEmpty": "अहिलेसम्म कुनै क्लाइन्ट प्रोफाइल छैन।",@@ -650,6 +660,14 @@"errorPrefix": "त्रुटि:","systemPromptLabel": "प्रणाली प्रवर्धन","systemPromptPlaceholder": "वैकल्पिक छ । तपाईँको कुराकानी भन्दा पहिले प्रणाली सन्देशको रूपमा पठाइयो ।",+ "showSettings": "सेटिङ देखाउनुहोस्",+ "hideSettings": "सेटिङ लुकाउनुहोस्",+ "samplingHeading": "स्याम्पलिङ",+ "samplingHelp": "बन्द हुँदा प्रदायकको आफ्नै पूर्वनिर्धारित मान लागू हुन्छ। तपाईंले खोल्नुभएका नियन्त्रणहरू मात्र पठाइन्छ।",+ "samplingDefault": "पूर्वनिर्धारित",+ "temperature": "तापक्रम",+ "topP": "Top P",+ "maxTokens": "अधिकतम टोकन","errorTitle": "अनुरोध असफल भयो","attach": "फाइलहरू संलग्न गर्नुहोस्","attachTooMany": "तपाईं प्रति सन्देश {count} वटासम्म फाइल संलग्न गर्न सक्नुहुन्छ।",@@ -659,6 +677,24 @@"noVisionBadge": "छवि छैन","visionWarning": "{model} ले छवि स्वीकार गर्दैन। छवि स्वीकार गर्ने मोडेल वा स्वत: छान्नुहोस्।"},+ "playgroundSessions": {+ "heading": "कुराकानीहरू",+ "newConversation": "नयाँ कुराकानी",+ "showSidebar": "कुराकानीहरू देखाउनुहोस्",+ "hideSidebar": "कुराकानीहरू लुकाउनुहोस्",+ "empty": "अहिलेसम्म कुनै सुरक्षित कुराकानी छैन।",+ "untitled": "शीर्षकविहीन कुराकानी",+ "rename": "नाम बदल्नुहोस्",+ "renamePlaceholder": "कुराकानीको नाम",+ "messageCount": "{count} सन्देश",+ "justNow": "भर्खरै",+ "minutesAgo": "{count} मि. अघि",+ "hoursAgo": "{count} घ. अघि",+ "daysAgo": "{count} दि. अघि",+ "loadFailed": "त्यो कुराकानी खोल्न सकिएन।",+ "renameFailed": "त्यो कुराकानीको नाम बदल्न सकिएन।",+ "deleteFailed": "त्यो कुराकानी मेट्न सकिएन।"+ },"embeddings": {"title": "नमूनाहरू","description": "एम्बेडिंग केवल एक परिवार भित्र असफल हुन्छ: अर्को प्रदायक द्वारा सेवा गरिएको उही मोडेल। विभिन्न मोडेलहरूबाट भेक्टरहरू असंगत छन्, त्यसैले राउटरले तपाईंमा मोडेलहरू कहिल्यै स्वाप गर्दैन।",diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex a2110744..ac5c87b9 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -519,6 +519,16 @@"modelScopeClear": "Bereik wissen","modelScopeBadgeOne": "beperkt · 1 model","modelScopeBadgeOther": "beperkt · {count} modellen",+ "modelPicker": {+ "title": "Welke modellen moet deze sleutel bedienen?",+ "hint": "Je {provider}-sleutel is toegevoegd en bedient op dit moment alle modellen hieronder. Vink de modellen uit waarvoor deze sleutel niet gebruikt mag worden — de router slaat de sleutel daarvoor over.",+ "count": "{selected} van {total} geselecteerd",+ "allNote": "Alles is geselecteerd — er wordt niets opgeslagen, en modellen die later aan de catalogus worden toegevoegd, gebruiken deze sleutel ook.",+ "subsetNote": "Deze sleutel wordt beperkt tot de geselecteerde modellen. Je kunt dit later wijzigen via de rij van de sleutel.",+ "skip": "Niet nu",+ "scopedOne": "Sleutel beperkt tot 1 model",+ "scopedOther": "Sleutel beperkt tot {count} modellen"+ },"cpTitle": "Clientprofielen","cpDesc": "API-sleutels per client, elk met een systeemprompt die de server altijd toepast.","cpEmpty": "Nog geen clientprofielen.",@@ -650,6 +660,14 @@"errorPrefix": "Fout:","systemPromptLabel": "Systeemprompt","systemPromptPlaceholder": "Optioneel. Verzonden als een systeembericht vóór je chat.",+ "showSettings": "Instellingen tonen",+ "hideSettings": "Instellingen verbergen",+ "samplingHeading": "Sampling",+ "samplingHelp": "Uitgeschakeld geldt de eigen standaard van de aanbieder. Alleen de instellingen die je aanzet worden meegestuurd.",+ "samplingDefault": "Standaard",+ "temperature": "Temperatuur",+ "topP": "Top P",+ "maxTokens": "Max. tokens","errorTitle": "Verzoek afgewezen","attach": "Bestanden bijvoegen","attachTooMany": "Je kunt maximaal {count} bestanden per bericht bijvoegen.",@@ -659,6 +677,24 @@"noVisionBadge": "Geen afbeeldingen","visionWarning": "{model} accepteert geen afbeeldingen. Kies een model met beeldinvoer of Auto."},+ "playgroundSessions": {+ "heading": "Gesprekken",+ "newConversation": "Nieuw gesprek",+ "showSidebar": "Gesprekken tonen",+ "hideSidebar": "Gesprekken verbergen",+ "empty": "Nog geen opgeslagen gesprekken.",+ "untitled": "Naamloos gesprek",+ "rename": "Naam wijzigen",+ "renamePlaceholder": "Naam van gesprek",+ "messageCount": "{count} berichten",+ "justNow": "zojuist",+ "minutesAgo": "{count} min geleden",+ "hoursAgo": "{count} u geleden",+ "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."+ },"embeddings": {"title": "Modellen","description": "Embeddings fail-over alleen binnen een gezin: hetzelfde model dat door een andere aanbieder wordt bediend. Vectors van verschillende modellen zijn niet compatibel, dus de router wisselt nooit van model bij jou.",diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex 84625a25..7f28c992 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -519,6 +519,16 @@"modelScopeClear": "Fjern avgrensning","modelScopeBadgeOne": "begrenset · 1 modell","modelScopeBadgeOther": "begrenset · {count} modeller",+ "modelPicker": {+ "title": "Hvilke modeller skal denne nøkkelen betjene?",+ "hint": "{provider}-nøkkelen din er lagt til og betjener for øyeblikket alle modellene nedenfor. Fjern haken ved modellene nøkkelen ikke får brukes til — ruteren hopper da over den for disse.",+ "count": "{selected} av {total} valgt",+ "allNote": "Alt er valgt — ingenting lagres, og modeller som legges til i katalogen senere, vil også bruke denne nøkkelen.",+ "subsetNote": "Nøkkelen begrenses til de valgte modellene. Du kan endre dette senere fra nøkkelens rad.",+ "skip": "Ikke nå",+ "scopedOne": "Nøkkel begrenset til 1 modell",+ "scopedOther": "Nøkkel begrenset til {count} modeller"+ },"cpTitle": "Klientprofiler","cpDesc": "API-nøkler per klient, hver med en systemprompt som serveren alltid bruker.","cpEmpty": "Ingen klientprofiler ennå.",@@ -650,6 +660,14 @@"errorPrefix": "Feil:","systemPromptLabel": "Systemprompt","systemPromptPlaceholder": "Valgfritt. Sendt som en systemmelding før chatten din.",+ "showSettings": "Vis innstillinger",+ "hideSettings": "Skjul innstillinger",+ "samplingHeading": "Sampling",+ "samplingHelp": "Når den er av, gjelder leverandørens egen standard. Bare kontrollene du slår på, sendes med.",+ "samplingDefault": "Default",+ "temperature": "Temperatur",+ "topP": "Top P",+ "maxTokens": "Maks. tokens","errorTitle": "Forespørselen ble avvist","attach": "Legg ved filer","attachTooMany": "Du kan legge ved opptil {count} filer per melding.",@@ -659,6 +677,24 @@"noVisionBadge": "Ingen bilder","visionWarning": "{model} godtar ikke bilder. Velg en modell med bildeinput eller Auto."},+ "playgroundSessions": {+ "heading": "Samtaler",+ "newConversation": "Ny samtale",+ "showSidebar": "Vis samtaler",+ "hideSidebar": "Skjul samtaler",+ "empty": "Ingen lagrede samtaler ennå.",+ "untitled": "Samtale uten navn",+ "rename": "Gi nytt navn",+ "renamePlaceholder": "Samtalens navn",+ "messageCount": "{count} meldinger",+ "justNow": "akkurat nå",+ "minutesAgo": "for {count} min siden",+ "hoursAgo": "for {count} t siden",+ "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."+ },"embeddings": {"title": "Modeller","description": "Embeddinger failover kun innenfor en familie: samme modell som leveres av en annen leverandør. Vektorer fra forskjellige modeller er inkompatible, så ruteren bytter aldri modell på deg.",diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex 88efd5cf..3f7ac224 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -519,6 +519,16 @@"modelScopeClear": "ପରିସର ହଟାନ୍ତୁ","modelScopeBadgeOne": "ସୀମିତ · 1 ମଡେଲ","modelScopeBadgeOther": "ସୀମିତ · {count} ମଡେଲ",+ "modelPicker": {+ "title": "ଏହି କୀ କେଉଁ ମଡେଲଗୁଡିକ ପାଇଁ କାମ କରିବ?",+ "hint": "ଆପଣଙ୍କ {provider} କୀ ଯୋଡାଗଲା ଏବଂ ବର୍ତ୍ତମାନ ଏହା ତଳେ ଥିବା ପ୍ରତ୍ୟେକ ମଡେଲ ପାଇଁ କାମ କରୁଛି। ଯେଉଁ ମଡେଲଗୁଡିକ ପାଇଁ ଏହି କୀ ବ୍ୟବହାର ହେବା ଉଚିତ ନୁହେଁ, ସେଗୁଡିକର ଚୟନ ହଟାଇଦିଅନ୍ତୁ — ରାଉଟର ସେଗୁଡିକ ପାଇଁ ଏହାକୁ ଛାଡ଼ିଦେବ।",+ "count": "{total} ମଧ୍ୟରୁ {selected} ଚୟନ କରାଯାଇଛି",+ "allNote": "ସବୁ ଚୟନ କରାଯାଇଛି — କିଛି ସଞ୍ଚୟ କରାଯାଏ ନାହିଁ, ଏବଂ ପରେ କାଟାଲଗରେ ଯୋଡାଯିବା ମଡେଲଗୁଡିକ ମଧ୍ୟ ଏହି କୀ ବ୍ୟବହାର କରିବେ।",+ "subsetNote": "ଏହି କୀ କେବଳ ଚୟନ କରାଯାଇଥିବା ମଡେଲଗୁଡିକରେ ସୀମିତ ରହିବ। ଆପଣ ଏହାକୁ ପରେ କୀର ଧାଡ଼ିରୁ ବଦଳାଇପାରିବେ।",+ "skip": "ବର୍ତ୍ତମାନ ନୁହେଁ",+ "scopedOne": "କୀ 1 ମଡେଲରେ ସୀମିତ",+ "scopedOther": "କୀ {count} ମଡେଲରେ ସୀମିତ"+ },"cpTitle": "କ୍ଲାଏଣ୍ଟ ପ୍ରୋଫାଇଲ୍","cpDesc": "ପ୍ରତ୍ୟେକ କ୍ଲାଏଣ୍ଟ ପାଇଁ ଅଲଗା API କି; ଏହାର ସିଷ୍ଟମ୍ ପ୍ରମ୍ପ୍ଟକୁ ସର୍ଭର ସର୍ବଦା ପ୍ରୟୋଗ କରେ।","cpEmpty": "ଏପର୍ଯ୍ୟନ୍ତ କୌଣସି କ୍ଲାଏଣ୍ଟ ପ୍ରୋଫାଇଲ୍ ନାହିଁ।",@@ -650,6 +660,14 @@"errorPrefix": "ତ୍ରୁଟି:","systemPromptLabel": "ସିଷ୍ଟମ୍ ପ୍ରମ୍ପ୍ଟ","systemPromptPlaceholder": "ଇଚ୍ଛାଧୀନ । ଆପଣଙ୍କ ଚାଟ୍ ପୂର୍ବରୁ ଏକ ସିଷ୍ଟମ୍ ସନ୍ଦେଶ ଭାବେ ପ୍ରେରିତ ହୋଇଛି।",+ "showSettings": "ସେଟିଂସ୍ ଦେଖାନ୍ତୁ",+ "hideSettings": "ସେଟିଂସ୍ ଲୁଚାନ୍ତୁ",+ "samplingHeading": "ସାମ୍ପଲିଂ",+ "samplingHelp": "ବନ୍ଦ ଥିଲେ ପ୍ରଦାନକାରୀଙ୍କ ନିଜସ୍ୱ ଡିଫଲ୍ଟ ଲାଗୁ ହୁଏ। ଆପଣ ଚାଲୁ କରିଥିବା ନିୟନ୍ତ୍ରଣ କେବଳ ପଠାଯାଏ।",+ "samplingDefault": "ଡିଫଲ୍ଟ",+ "temperature": "ତାପମାତ୍ରା",+ "topP": "Top P",+ "maxTokens": "ସର୍ବାଧିକ ଟୋକେନ୍","errorTitle": "ଅନୁରୋଧ ବିଫଳ ହୋଇଛି","attach": "ଫାଇଲଗୁଡିକ ସଂଲଗ୍ନ କରନ୍ତୁ","attachTooMany": "ପ୍ରତି ସନ୍ଦେଶରେ ଆପଣ ସର୍ବାଧିକ {count} ଫାଇଲ୍ ସଂଲଗ୍ନ କରିପାରିବେ।",@@ -659,6 +677,24 @@"noVisionBadge": "ଚିତ୍ର ନାହିଁ","visionWarning": "{model} ଚିତ୍ର ଗ୍ରହଣ କରେ ନାହିଁ। ଫଟୋ ଇନପୁଟ୍ ସ୍ଵୀକାର କରୁଥିବା ମଡେଲ୍ କିମ୍ୱା ସ୍ଵତଃ ଚୟନ କରନ୍ତୁ।"},+ "playgroundSessions": {+ "heading": "ବାର୍ତ୍ତାଳାପ",+ "newConversation": "ନୂଆ ବାର୍ତ୍ତାଳାପ",+ "showSidebar": "ବାର୍ତ୍ତାଳାପ ଦେଖାନ୍ତୁ",+ "hideSidebar": "ବାର୍ତ୍ତାଳାପ ଲୁଚାନ୍ତୁ",+ "empty": "ଏପର୍ଯ୍ୟନ୍ତ କୌଣସି ସଞ୍ଚିତ ବାର୍ତ୍ତାଳାପ ନାହିଁ।",+ "untitled": "ଶୀର୍ଷକହୀନ ବାର୍ତ୍ତାଳାପ",+ "rename": "ନାମ ବଦଳାନ୍ତୁ",+ "renamePlaceholder": "ବାର୍ତ୍ତାଳାପର ନାମ",+ "messageCount": "{count}ଟି ବାର୍ତ୍ତା",+ "justNow": "ଏହିକ୍ଷଣି",+ "minutesAgo": "{count} ମି. ପୂର୍ବେ",+ "hoursAgo": "{count} ଘ. ପୂର୍ବେ",+ "daysAgo": "{count} ଦିନ ପୂର୍ବେ",+ "loadFailed": "ସେହି ବାର୍ତ୍ତାଳାପ ଖୋଲାଯାଇପାରିଲା ନାହିଁ।",+ "renameFailed": "ସେହି ବାର୍ତ୍ତାଳାପର ନାମ ବଦଳାଯାଇପାରିଲା ନାହିଁ।",+ "deleteFailed": "ସେହି ବାର୍ତ୍ତାଳାପ ବିଲୋପ କରାଯାଇପାରିଲା ନାହିଁ।"+ },"embeddings": {"title": "ମଡେଲଗୁଡିକ","description": "ଏମ୍ବେଡିଂ କେବଳ ଏକ ପରିବାର ମଧ୍ୟରେ ବିଫଳ ହୁଏ: ଅନ୍ୟ ଏକ ପ୍ରଦାନକାରୀଙ୍କ ଦ୍ୱାରା ପରିବେଷଣ କରାଯାଉଥିବା ସମାନ ମଡେଲ୍ । ବିଭିନ୍ନ ମଡେଲରୁ ଭେକ୍ଟରଗୁଡିକ ଅସଙ୍ଗତ, ତେଣୁ ରାଉଟର କଦାପି ଆପଣଙ୍କ ଉପରେ ମଡେଲଗୁଡିକ ଅଦଳବଦଳ କରେ ନାହିଁ ।",diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex 2c54b22a..33f9e086 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -519,6 +519,16 @@"modelScopeClear": "ਦਾਇਰਾ ਹਟਾਓ","modelScopeBadgeOne": "ਸੀਮਤ · 1 ਮਾਡਲ","modelScopeBadgeOther": "ਸੀਮਤ · {count} ਮਾਡਲ",+ "modelPicker": {+ "title": "ਇਹ ਕੁੰਜੀ ਕਿਹੜੇ ਮਾਡਲਾਂ ਲਈ ਕੰਮ ਕਰੇ?",+ "hint": "ਤੁਹਾਡੀ {provider} ਕੁੰਜੀ ਸ਼ਾਮਲ ਕਰ ਦਿੱਤੀ ਗਈ ਹੈ ਅਤੇ ਇਸ ਵੇਲੇ ਇਹ ਹੇਠਾਂ ਦਿੱਤੇ ਹਰ ਮਾਡਲ ਲਈ ਕੰਮ ਕਰਦੀ ਹੈ। ਜਿਨ੍ਹਾਂ ਮਾਡਲਾਂ ਲਈ ਇਹ ਕੁੰਜੀ ਨਹੀਂ ਵਰਤੀ ਜਾਣੀ ਚਾਹੀਦੀ, ਉਹਨਾਂ ਦੀ ਚੋਣ ਹਟਾ ਦਿਓ — ਰਾਊਟਰ ਉਹਨਾਂ ਲਈ ਇਸਨੂੰ ਛੱਡ ਦੇਵੇਗਾ।",+ "count": "{total} ਵਿੱਚੋਂ {selected} ਚੁਣੇ ਗਏ",+ "allNote": "ਸਭ ਕੁਝ ਚੁਣਿਆ ਗਿਆ ਹੈ — ਕੁਝ ਵੀ ਸੇਵ ਨਹੀਂ ਹੁੰਦਾ, ਅਤੇ ਬਾਅਦ ਵਿੱਚ ਕੈਟਾਲਾਗ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਣ ਵਾਲੇ ਮਾਡਲ ਵੀ ਇਹੀ ਕੁੰਜੀ ਵਰਤਣਗੇ।",+ "subsetNote": "ਇਹ ਕੁੰਜੀ ਸਿਰਫ਼ ਚੁਣੇ ਗਏ ਮਾਡਲਾਂ ਤੱਕ ਸੀਮਤ ਰਹੇਗੀ। ਤੁਸੀਂ ਇਸਨੂੰ ਬਾਅਦ ਵਿੱਚ ਕੁੰਜੀ ਦੀ ਕਤਾਰ ਤੋਂ ਬਦਲ ਸਕਦੇ ਹੋ।",+ "skip": "ਹੁਣੇ ਨਹੀਂ",+ "scopedOne": "ਕੁੰਜੀ 1 ਮਾਡਲ ਤੱਕ ਸੀਮਤ",+ "scopedOther": "ਕੁੰਜੀ {count} ਮਾਡਲਾਂ ਤੱਕ ਸੀਮਤ"+ },"cpTitle": "ਕਲਾਇੰਟ ਪ੍ਰੋਫਾਈਲ","cpDesc": "ਹਰ ਕਲਾਇੰਟ ਲਈ ਵੱਖਰੀ API ਕੁੰਜੀ, ਜਿਸਦਾ ਸਿਸਟਮ ਪ੍ਰੋਂਪਟ ਸਰਵਰ ਹਮੇਸ਼ਾ ਲਾਗੂ ਕਰਦਾ ਹੈ।","cpEmpty": "ਹਾਲੇ ਕੋਈ ਕਲਾਇੰਟ ਪ੍ਰੋਫਾਈਲ ਨਹੀਂ ਹੈ।",@@ -650,6 +660,14 @@"errorPrefix": "ਗਲਤੀ:","systemPromptLabel": "ਸਿਸਟਮ ਪ੍ਰੋਂਪਟ","systemPromptPlaceholder": "ਵਿਕਲਪਿਕ। ਤੁਹਾਡੀ ਗੱਲਬਾਤ ਤੋਂ ਪਹਿਲਾਂ ਇੱਕ ਸਿਸਟਮ ਸੁਨੇਹੇ ਵਜੋਂ ਭੇਜਿਆ ਗਿਆ।",+ "showSettings": "ਸੈਟਿੰਗਾਂ ਦਿਖਾਓ",+ "hideSettings": "ਸੈਟਿੰਗਾਂ ਲੁਕਾਓ",+ "samplingHeading": "ਸੈਂਪਲਿੰਗ",+ "samplingHelp": "ਬੰਦ ਹੋਣ 'ਤੇ ਪ੍ਰਦਾਤਾ ਦਾ ਆਪਣਾ ਡਿਫਾਲਟ ਲਾਗੂ ਹੁੰਦਾ ਹੈ। ਸਿਰਫ਼ ਉਹੀ ਕੰਟਰੋਲ ਭੇਜੇ ਜਾਂਦੇ ਹਨ ਜੋ ਤੁਸੀਂ ਚਾਲੂ ਕਰਦੇ ਹੋ।",+ "samplingDefault": "ਡਿਫਾਲਟ",+ "temperature": "ਤਾਪਮਾਨ",+ "topP": "Top P",+ "maxTokens": "ਵੱਧ ਤੋਂ ਵੱਧ ਟੋਕਨ","errorTitle": "ਬੇਨਤੀ ਅਸਫਲ ਰਹੀ","attach": "ਫਾਈਲਾਂ ਨੱਥੀ ਕਰੋ","attachTooMany": "ਤੁਸੀਂ ਪ੍ਰਤੀ ਸੁਨੇਹਾ ਵੱਧ ਤੋਂ ਵੱਧ {count} ਫਾਈਲਾਂ ਨੱਥੀ ਕਰ ਸਕਦੇ ਹੋ।",@@ -659,6 +677,24 @@"noVisionBadge": "ਚਿੱਤਰ ਨਹੀਂ","visionWarning": "{model} ਚਿੱਤਰ ਸਵੀਕਾਰ ਨਹੀਂ ਕਰਦਾ। ਚਿੱਤਰ ਇੰਪੁੱਟ ਸਵੀਕਾਰ ਕਰਨ ਵਾਲਾ ਮਾਡਲ ਜਾਂ ਆਟੋ ਚੁਣੋ।"},+ "playgroundSessions": {+ "heading": "ਗੱਲਬਾਤ",+ "newConversation": "ਨਵੀਂ ਗੱਲਬਾਤ",+ "showSidebar": "ਗੱਲਬਾਤ ਦਿਖਾਓ",+ "hideSidebar": "ਗੱਲਬਾਤ ਲੁਕਾਓ",+ "empty": "ਅਜੇ ਤੱਕ ਕੋਈ ਸੰਭਾਲੀ ਗਈ ਗੱਲਬਾਤ ਨਹੀਂ ਹੈ।",+ "untitled": "ਬਿਨਾਂ ਸਿਰਲੇਖ ਗੱਲਬਾਤ",+ "rename": "ਨਾਂ ਬਦਲੋ",+ "renamePlaceholder": "ਗੱਲਬਾਤ ਦਾ ਨਾਂ",+ "messageCount": "{count} ਸੁਨੇਹੇ",+ "justNow": "ਹੁਣੇ ਹੀ",+ "minutesAgo": "{count} ਮਿੰ ਪਹਿਲਾਂ",+ "hoursAgo": "{count} ਘੰ ਪਹਿਲਾਂ",+ "daysAgo": "{count} ਦਿਨ ਪਹਿਲਾਂ",+ "loadFailed": "ਉਹ ਗੱਲਬਾਤ ਨਹੀਂ ਖੋਲ੍ਹੀ ਜਾ ਸਕੀ।",+ "renameFailed": "ਉਸ ਗੱਲਬਾਤ ਦਾ ਨਾਂ ਨਹੀਂ ਬਦਲਿਆ ਜਾ ਸਕਿਆ।",+ "deleteFailed": "ਉਹ ਗੱਲਬਾਤ ਮਿਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ।"+ },"embeddings": {"title": "ਮਾਡਲ","description": "ਏਮਬੈਡਿੰਗ ਸਿਰਫ਼ ਇੱਕ ਪਰਿਵਾਰ ਵਿੱਚ ਹੀ ਅਸਫਲ ਹੋ ਜਾਂਦੀ ਹੈ: ਉਹੀ ਮਾਡਲ ਜੋ ਕਿਸੇ ਹੋਰ ਪ੍ਰਦਾਤਾ ਦੁਆਰਾ ਦਿੱਤਾ ਜਾਂਦਾ ਹੈ। ਵੱਖ-ਵੱਖ ਮਾਡਲਾਂ ਦੇ ਵੈਕਟਰ ਅਸੰਗਤ ਹਨ, ਇਸਲਈ ਰਾਊਟਰ ਕਦੇ ਵੀ ਤੁਹਾਡੇ 'ਤੇ ਮਾਡਲਾਂ ਨੂੰ ਸਵੈਪ ਨਹੀਂ ਕਰਦਾ ਹੈ।",diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex e1093ff1..11ebfdc5 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -519,6 +519,16 @@"modelScopeClear": "Wyczyść zakres","modelScopeBadgeOne": "ograniczony · 1 model","modelScopeBadgeOther": "ograniczony · {count} modeli",+ "modelPicker": {+ "title": "Które modele ma obsługiwać ten klucz?",+ "hint": "Twój klucz {provider} został dodany i obsługuje obecnie wszystkie modele poniżej. Odznacz te, których ten klucz nie może używać — router pominie go dla nich.",+ "count": "Wybrano {selected} z {total}",+ "allNote": "Wybrano wszystko — nic nie zostanie zapisane, a modele dodane później do katalogu też będą korzystać z tego klucza.",+ "subsetNote": "Ten klucz zostanie ograniczony do wybranych modeli. Możesz to zmienić później w wierszu klucza.",+ "skip": "Nie teraz",+ "scopedOne": "Klucz ograniczony do 1 modelu",+ "scopedOther": "Klucz ograniczony do {count} modeli"+ },"cpTitle": "Profile klientów","cpDesc": "Osobne klucze API dla każdego klienta, każdy z promptem systemowym, który serwer zawsze stosuje.","cpEmpty": "Nie ma jeszcze profili klientów.",@@ -650,6 +660,14 @@"errorPrefix": "Błąd:","systemPromptLabel": "Monit systemowy","systemPromptPlaceholder": "Opcjonalne. Wysłane jako wiadomość systemowa przed rozmową.",+ "showSettings": "Pokaż ustawienia",+ "hideSettings": "Ukryj ustawienia",+ "samplingHeading": "Próbkowanie",+ "samplingHelp": "Po wyłączeniu obowiązuje domyślna wartość samego dostawcy. Wysyłane są tylko te ustawienia, które włączysz.",+ "samplingDefault": "Domyślne",+ "temperature": "Temperatura",+ "topP": "Top P",+ "maxTokens": "Maks. tokenów","errorTitle": "Żądanie nie powiodło się","attach": "Załącz pliki","attachTooMany": "W jednej wiadomości możesz załączyć maksymalnie {count} plików.",@@ -659,6 +677,24 @@"noVisionBadge": "Bez obrazów","visionWarning": "{model} nie przyjmuje obrazów. Wybierz model obsługujący obrazy lub Auto."},+ "playgroundSessions": {+ "heading": "Rozmowy",+ "newConversation": "Nowa rozmowa",+ "showSidebar": "Pokaż rozmowy",+ "hideSidebar": "Ukryj rozmowy",+ "empty": "Nie ma jeszcze zapisanych rozmów.",+ "untitled": "Rozmowa bez nazwy",+ "rename": "Zmień nazwę",+ "renamePlaceholder": "Nazwa rozmowy",+ "messageCount": "{count} wiadomości",+ "justNow": "przed chwilą",+ "minutesAgo": "{count} min temu",+ "hoursAgo": "{count} godz. temu",+ "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."+ },"embeddings": {"title": "Modele","description": "Osadzanie przełączane awaryjnie tylko w ramach rodziny: ten sam model obsługiwany przez innego dostawcę. Wektory z różnych modeli są niekompatybilne, więc router nigdy nie zamienia modeli.",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex 11d318d9..fbf1be2a 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -519,6 +519,16 @@"modelScopeClear": "Limpar escopo","modelScopeBadgeOne": "restrita · 1 modelo","modelScopeBadgeOther": "restrita · {count} modelos",+ "modelPicker": {+ "title": "Quais modelos esta chave deve atender?",+ "hint": "Sua chave da {provider} foi adicionada e no momento atende todos os modelos abaixo. Desmarque os que esta chave não pode usar — o roteador vai ignorá-la para esses modelos.",+ "count": "{selected} de {total} selecionados",+ "allNote": "Tudo selecionado — nada é salvo, e os modelos adicionados ao catálogo depois também vão usar esta chave.",+ "subsetNote": "Esta chave ficará limitada aos modelos selecionados. Você pode alterar isso depois na linha da chave.",+ "skip": "Agora não",+ "scopedOne": "Chave limitada a 1 modelo",+ "scopedOther": "Chave limitada a {count} modelos"+ },"cpTitle": "Perfis de cliente","cpDesc": "Chaves de API por cliente, cada uma com um prompt de sistema que o servidor sempre aplica.","cpEmpty": "Ainda não há perfis de cliente.",@@ -650,6 +660,14 @@"errorPrefix": "Erro:","systemPromptLabel": "Prompt do sistema","systemPromptPlaceholder": "Opcional. Enviado como uma mensagem de sistema antes do seu chat.",+ "showSettings": "Mostrar configurações",+ "hideSettings": "Ocultar configurações",+ "samplingHeading": "Amostragem",+ "samplingHelp": "Desativado, vale o padrão do próprio provedor. Só são enviados os controles que você ativar.",+ "samplingDefault": "Padrão",+ "temperature": "Temperatura",+ "topP": "Top P",+ "maxTokens": "Máximo de tokens","errorTitle": "A solicitação falhou","attach": "Anexar arquivos","attachTooMany": "Você pode anexar até {count} arquivos por mensagem.",@@ -659,6 +677,24 @@"noVisionBadge": "Sem imagens","visionWarning": "{model} não aceita imagens. Escolha um modelo de visão ou Auto."},+ "playgroundSessions": {+ "heading": "Conversas",+ "newConversation": "Nova conversa",+ "showSidebar": "Mostrar conversas",+ "hideSidebar": "Ocultar conversas",+ "empty": "Ainda não há conversas salvas.",+ "untitled": "Conversa sem título",+ "rename": "Renomear",+ "renamePlaceholder": "Nome da conversa",+ "messageCount": "{count} mensagens",+ "justNow": "agora mesmo",+ "minutesAgo": "há {count} min",+ "hoursAgo": "há {count} h",+ "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."+ },"embeddings": {"title": "Modelos","description": "Os embeddings fazem failover apenas dentro de uma mesma família: o mesmo modelo servido por outro provedor. Vetores de modelos diferentes são incompatíveis, então o roteador nunca troca de modelo sem você saber.",diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 76273d76..4d22d0e1 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -519,6 +519,16 @@"modelScopeClear": "Limpar âmbito","modelScopeBadgeOne": "restrita · 1 modelo","modelScopeBadgeOther": "restrita · {count} modelos",+ "modelPicker": {+ "title": "Que modelos deve esta chave servir?",+ "hint": "A sua chave {provider} foi adicionada e serve atualmente todos os modelos abaixo. Desmarque os que esta chave não pode utilizar — o router ignora-a para esses modelos.",+ "count": "{selected} de {total} selecionados",+ "allNote": "Tudo selecionado — nada é guardado e os modelos acrescentados ao catálogo mais tarde também vão utilizar esta chave.",+ "subsetNote": "Esta chave fica limitada aos modelos selecionados. Pode alterar isto mais tarde na linha da chave.",+ "skip": "Agora não",+ "scopedOne": "Chave limitada a 1 modelo",+ "scopedOther": "Chave limitada a {count} modelos"+ },"cpTitle": "Perfis de cliente","cpDesc": "Chaves de API por cliente, cada uma com um prompt de sistema que o servidor aplica sempre.","cpEmpty": "Ainda não existem perfis de cliente.",@@ -650,6 +660,14 @@"errorPrefix": "Erro:","systemPromptLabel": "Prompt do sistema","systemPromptPlaceholder": "Opcional. Enviado como mensagem do sistema antes do teu chat.",+ "showSettings": "Mostrar definições",+ "hideSettings": "Ocultar definições",+ "samplingHeading": "Amostragem",+ "samplingHelp": "Desativado, aplica-se a predefinição do próprio fornecedor. Só são enviados os controlos que ativar.",+ "samplingDefault": "Padrão",+ "temperature": "Temperatura",+ "topP": "Top P",+ "maxTokens": "Máximo de tokens","errorTitle": "Pedido falhado","attach": "Anexar ficheiros","attachTooMany": "Pode anexar até {count} ficheiros por mensagem.",@@ -659,6 +677,24 @@"noVisionBadge": "Sem imagens","visionWarning": "{model} não aceita imagens. Escolha um modelo de visão ou Auto."},+ "playgroundSessions": {+ "heading": "Conversas",+ "newConversation": "Nova conversa",+ "showSidebar": "Mostrar conversas",+ "hideSidebar": "Ocultar conversas",+ "empty": "Ainda não existem conversas guardadas.",+ "untitled": "Conversa sem título",+ "rename": "Mudar o nome",+ "renamePlaceholder": "Nome da conversa",+ "messageCount": "{count} mensagens",+ "justNow": "agora mesmo",+ "minutesAgo": "há {count} min",+ "hoursAgo": "há {count} h",+ "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."+ },"embeddings": {"title": "Modelos","description": "Os embeddings falham apenas dentro de uma família: o mesmo modelo servido por outro fornecedor. Vetores de diferentes modelos são incompatíveis, por isso o router nunca troca os modelos contigo.",diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex 0c15109d..4f46b07c 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -519,6 +519,16 @@"modelScopeClear": "Șterge domeniul","modelScopeBadgeOne": "limitată · 1 model","modelScopeBadgeOther": "limitată · {count} modele",+ "modelPicker": {+ "title": "Ce modele ar trebui să deservească această cheie?",+ "hint": "Cheia ta {provider} a fost adăugată și deservește momentan toate modelele de mai jos. Debifează-le pe cele pe care această cheie nu are voie să le folosească — routerul o va sări pentru ele.",+ "count": "{selected} din {total} selectate",+ "allNote": "Totul este selectat — nu se salvează nimic, iar modelele adăugate ulterior în catalog vor folosi și ele această cheie.",+ "subsetNote": "Această cheie va fi limitată la modelele selectate. Poți schimba asta mai târziu din rândul cheii.",+ "skip": "Nu acum",+ "scopedOne": "Cheie limitată la 1 model",+ "scopedOther": "Cheie limitată la {count} modele"+ },"cpTitle": "Profiluri de client","cpDesc": "Chei API per client, fiecare cu un prompt de sistem pe care serverul îl aplică întotdeauna.","cpEmpty": "Încă nu există profiluri de client.",@@ -650,6 +660,14 @@"errorPrefix": "Eroare:","systemPromptLabel": "Prompt de sistem","systemPromptPlaceholder": "Opțional. Trimis ca mesaj de sistem înainte de chat.",+ "showSettings": "Arată setările",+ "hideSettings": "Ascunde setările",+ "samplingHeading": "Eșantionare",+ "samplingHelp": "Când sunt dezactivate, se aplică valoarea implicită a furnizorului. Se trimit doar controalele pe care le activezi.",+ "samplingDefault": "Implicit",+ "temperature": "Temperatură",+ "topP": "Top P",+ "maxTokens": "Jetoane maxime","errorTitle": "Cerere eșuată","attach": "Atașează fișiere","attachTooMany": "Poți atașa cel mult {count} fișiere per mesaj.",@@ -659,6 +677,24 @@"noVisionBadge": "Fără imagini","visionWarning": "{model} nu acceptă imagini. Alege un model cu suport pentru imagini sau Auto."},+ "playgroundSessions": {+ "heading": "Conversații",+ "newConversation": "Conversație nouă",+ "showSidebar": "Arată conversațiile",+ "hideSidebar": "Ascunde conversațiile",+ "empty": "Încă nu există conversații salvate.",+ "untitled": "Conversație fără titlu",+ "rename": "Redenumește",+ "renamePlaceholder": "Numele conversației",+ "messageCount": "{count} mesaje",+ "justNow": "chiar acum",+ "minutesAgo": "acum {count} min",+ "hoursAgo": "acum {count} h",+ "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."+ },"embeddings": {"title": "Modele","description": "Încorporarile eșuează doar în cadrul unei familii: același model servit de un alt furnizor. Vectorii de la modele diferite sunt incompatibili, așa că routerul nu schimbă niciodată modelele pe tine.",diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex d64c5c3e..b6ea6e24 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -519,6 +519,16 @@"modelScopeClear": "Очистить область","modelScopeBadgeOne": "ограничен · 1 модель","modelScopeBadgeOther": "ограничен · {count} моделей",+ "modelPicker": {+ "title": "Какие модели должен обслуживать этот ключ?",+ "hint": "Ваш ключ {provider} добавлен и сейчас обслуживает все модели ниже. Снимите отметки с тех, которые этому ключу использовать нельзя — для них маршрутизатор его пропустит.",+ "count": "Выбрано {selected} из {total}",+ "allNote": "Выбрано всё — ничего не сохраняется, и модели, добавленные в каталог позже, тоже будут использовать этот ключ.",+ "subsetNote": "Этот ключ будет ограничен выбранными моделями. Изменить это можно позже в строке ключа.",+ "skip": "Не сейчас",+ "scopedOne": "Ключ ограничен 1 моделью",+ "scopedOther": "Ключ ограничен {count} моделями"+ },"cpTitle": "Профили клиентов","cpDesc": "Отдельные API-ключи для каждого клиента, каждый со своим системным промптом, который сервер применяет всегда.","cpEmpty": "Профилей клиентов пока нет.",@@ -650,6 +660,14 @@"errorPrefix": "Ошибка:","systemPromptLabel": "Системная подсказка","systemPromptPlaceholder": "Необязательно. Отправляется как системное сообщение перед вашим чатом.",+ "showSettings": "Показать настройки",+ "hideSettings": "Скрыть настройки",+ "samplingHeading": "Сэмплирование",+ "samplingHelp": "Если выключено, применяется значение по умолчанию самого поставщика. Отправляются только те параметры, которые вы включили.",+ "samplingDefault": "По умолчанию",+ "temperature": "Температура",+ "topP": "Top P",+ "maxTokens": "Макс. токенов","errorTitle": "Запрос не выполнен","attach": "Прикрепить файлы","attachTooMany": "К одному сообщению можно прикрепить не более {count} файлов.",@@ -659,6 +677,24 @@"noVisionBadge": "Без изображений","visionWarning": "{model} не принимает изображения. Выберите модель с поддержкой изображений или «Авто»."},+ "playgroundSessions": {+ "heading": "Чаты",+ "newConversation": "Новый чат",+ "showSidebar": "Показать чаты",+ "hideSidebar": "Скрыть чаты",+ "empty": "Сохранённых чатов пока нет.",+ "untitled": "Чат без названия",+ "rename": "Переименовать",+ "renamePlaceholder": "Название чата",+ "messageCount": "{count} сообщений",+ "justNow": "только что",+ "minutesAgo": "{count} мин назад",+ "hoursAgo": "{count} ч назад",+ "daysAgo": "{count} дн. назад",+ "loadFailed": "Не удалось открыть этот чат.",+ "renameFailed": "Не удалось переименовать этот чат.",+ "deleteFailed": "Не удалось удалить этот чат."+ },"embeddings": {"title": "Модели","description": "Встраивания передаются только внутри семейства: та же модель, обслуживаемая другим поставщиком. Векторы от разных моделей несовместимы, поэтому роутер никогда не подменяет вам модели.",diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 0634f7b4..0187b46e 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -519,6 +519,16 @@"modelScopeClear": "පරාසය හිස් කරන්න","modelScopeBadgeOne": "සීමිත · මොඩල 1","modelScopeBadgeOther": "සීමිත · මොඩල {count}",+ "modelPicker": {+ "title": "මෙම යතුර සේවය කළ යුත්තේ කුමන මොඩල සඳහාද?",+ "hint": "ඔබගේ {provider} යතුර එක් කරන ලද අතර දැනට පහත සෑම මොඩලයකටම සේවය කරයි. මෙම යතුරට භාවිත කිරීමට අවසර නැති ඒවායේ ලකුණ ඉවත් කරන්න — රවුටරය එම මොඩල සඳහා එය මඟහරියි.",+ "count": "{total}න් {selected}ක් තෝරා ඇත",+ "allNote": "සියල්ල තෝරා ඇත — කිසිවක් සුරැකෙන්නේ නැත, පසුව නාමාවලියට එක් වන මොඩලද මෙම යතුර භාවිත කරයි.",+ "subsetNote": "මෙම යතුර තෝරාගත් මොඩල වලට පමණක් සීමා වේ. ඔබට මෙය පසුව යතුරේ පේළියෙන් වෙනස් කළ හැක.",+ "skip": "දැන් නොවේ",+ "scopedOne": "යතුර මොඩල 1කට සීමිතයි",+ "scopedOther": "යතුර මොඩල {count}කට සීමිතයි"+ },"cpTitle": "සේවාලාභී පැතිකඩ","cpDesc": "එක් එක් සේවාලාභියාට වෙනම API යතුරක්; එහි පද්ධති විධානය සේවාදායකය සැමවිටම යොදයි.","cpEmpty": "තවම සේවාලාභී පැතිකඩ නොමැත.",@@ -650,6 +660,14 @@"errorPrefix": "දෝෂය:","systemPromptLabel": "පද්ධති විමසුම","systemPromptPlaceholder": "විකල්ප. ඔබගේ කතාබස් කිරීමට පෙර පද්ධති පණිවිඩයක් ලෙස යවන ලදී.",+ "showSettings": "සැකසීම් පෙන්වන්න",+ "hideSettings": "සැකසීම් සඟවන්න",+ "samplingHeading": "නියැදීම",+ "samplingHelp": "ක්රියාවිරහිත විට සපයන්නාගේම පෙරනිමිය අදාළ වේ. ඔබ ක්රියාත්මක කරන පාලන පමණක් යැවේ.",+ "samplingDefault": "පෙරනිමිය",+ "temperature": "උෂ්ණත්වය",+ "topP": "Top P",+ "maxTokens": "උපරිම ටෝකන","errorTitle": "ඉල්ලීම අසාර්ථක විය","attach": "ගොනු අමුණන්න","attachTooMany": "එක් පණිවිඩයකට ගොනු {count}ක් දක්වා අමුණා ගත හැක.",@@ -659,6 +677,24 @@"noVisionBadge": "රූප නැත","visionWarning": "{model} රූප පිළිගන්නේ නැත. රූප පිළිගන්නා ආකෘතියක් හෝ ස්වයංක්රීය තෝරන්න."},+ "playgroundSessions": {+ "heading": "සංවාද",+ "newConversation": "නව සංවාදයක්",+ "showSidebar": "සංවාද පෙන්වන්න",+ "hideSidebar": "සංවාද සඟවන්න",+ "empty": "තවමත් සුරැකි සංවාද නොමැත.",+ "untitled": "නම් නොකළ සංවාදය",+ "rename": "නම වෙනස් කරන්න",+ "renamePlaceholder": "සංවාදයේ නම",+ "messageCount": "පණිවිඩ {count}",+ "justNow": "මේ දැන්",+ "minutesAgo": "මිනි. {count} පෙර",+ "hoursAgo": "පැය {count} පෙර",+ "daysAgo": "දින {count} පෙර",+ "loadFailed": "එම සංවාදය විවෘත කළ නොහැකි විය.",+ "renameFailed": "එම සංවාදයේ නම වෙනස් කළ නොහැකි විය.",+ "deleteFailed": "එම සංවාදය මැකිය නොහැකි විය."+ },"embeddings": {"title": "ආකෘති","description": "කාවැද්දීම අසාර්ථක වන්නේ පවුලක් තුළ පමණි: එකම ආකෘතිය වෙනත් සැපයුම්කරුවෙකු විසින් සපයනු ලැබේ. විවිධ මාදිලිවල දෛශික නොගැලපේ, එබැවින් රවුටරය කිසි විටෙකත් ඔබ මත ආකෘති මාරු නොකරයි.",diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex b6373abc..9ee61aab 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -519,6 +519,16 @@"modelScopeClear": "Vymazať rozsah","modelScopeBadgeOne": "obmedzený · 1 model","modelScopeBadgeOther": "obmedzený · {count} modelov",+ "modelPicker": {+ "title": "Ktoré modely má tento kľúč obsluhovať?",+ "hint": "Váš kľúč {provider} bol pridaný a momentálne obsluhuje všetky modely nižšie. Odškrtnite tie, ktoré tento kľúč nesmie používať — router ho pre ne preskočí.",+ "count": "Vybraných {selected} z {total}",+ "allNote": "Vybrané je všetko — nič sa neukladá a modely pridané do katalógu neskôr budú tento kľúč používať tiež.",+ "subsetNote": "Tento kľúč bude obmedzený na vybrané modely. Zmeniť to môžete neskôr v riadku kľúča.",+ "skip": "Teraz nie",+ "scopedOne": "Kľúč obmedzený na 1 model",+ "scopedOther": "Kľúč obmedzený na {count} modelov"+ },"cpTitle": "Profily klientov","cpDesc": "Samostatné API kľúče pre každého klienta, každý so systémovým promptom, ktorý server vždy použije.","cpEmpty": "Zatiaľ žiadne profily klientov.",@@ -650,6 +660,14 @@"errorPrefix": "Chyba:","systemPromptLabel": "Systémový prompt","systemPromptPlaceholder": "Voliteľné. Odoslaná ako systémová správa pred vaším chatom.",+ "showSettings": "Zobraziť nastavenia",+ "hideSettings": "Skryť nastavenia",+ "samplingHeading": "Vzorkovanie",+ "samplingHelp": "Keď je vypnuté, použije sa predvolená hodnota samotného poskytovateľa. Odosielajú sa len ovládacie prvky, ktoré zapnete.",+ "samplingDefault": "Predvolené",+ "temperature": "Teplota",+ "topP": "Top P",+ "maxTokens": "Max. tokenov","errorTitle": "Žiadosť zlyhala","attach": "Priložiť súbory","attachTooMany": "K jednej správe môžete priložiť najviac {count} súborov.",@@ -659,6 +677,24 @@"noVisionBadge": "Bez obrázkov","visionWarning": "Model {model} neprijíma obrázky. Vyberte model s podporou obrázkov alebo Auto."},+ "playgroundSessions": {+ "heading": "Konverzácie",+ "newConversation": "Nová konverzácia",+ "showSidebar": "Zobraziť konverzácie",+ "hideSidebar": "Skryť konverzácie",+ "empty": "Zatiaľ žiadne uložené konverzácie.",+ "untitled": "Konverzácia bez názvu",+ "rename": "Premenovať",+ "renamePlaceholder": "Názov konverzácie",+ "messageCount": "{count} správ",+ "justNow": "práve teraz",+ "minutesAgo": "pred {count} min",+ "hoursAgo": "pred {count} h",+ "daysAgo": "pred {count} dňami",+ "loadFailed": "Konverzáciu sa nepodarilo otvoriť.",+ "renameFailed": "Konverzáciu sa nepodarilo premenovať.",+ "deleteFailed": "Konverzáciu sa nepodarilo vymazať."+ },"embeddings": {"title": "Modely","description": "Embeddingy sa failoverujú iba v rámci rodiny: rovnaký model obsluhovaný iným poskytovateľom. Vektory z rôznych modelov sú nekompatibilné, takže router vám nikdy nevymení modely.",diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex 7850f14a..b3f060ea 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -519,6 +519,16 @@"modelScopeClear": "Очисти опсег","modelScopeBadgeOne": "ограничен · 1 модел","modelScopeBadgeOther": "ограничен · {count} модела",+ "modelPicker": {+ "title": "За које се моделе користи овај кључ?",+ "hint": "Ваш {provider} кључ је додат и тренутно опслужује све моделе испод. Одзначите оне које овај кључ не сме да користи — рутер ће га за њих прескочити.",+ "count": "Изабрано {selected} од {total}",+ "allNote": "Изабрано је све — ништа се не чува, а модели који се касније додају у каталог такође ће користити овај кључ.",+ "subsetNote": "Овај кључ ће бити ограничен на изабране моделе. То можете касније променити у реду кључа.",+ "skip": "Не сада",+ "scopedOne": "Кључ је ограничен на 1 модел",+ "scopedOther": "Кључ је ограничен на {count} модела"+ },"cpTitle": "Профили клијената","cpDesc": "API кључеви по клијенту, сваки са системским промптом који сервер увек примењује.","cpEmpty": "Још нема профила клијената.",@@ -650,6 +660,14 @@"errorPrefix": "Грешка:","systemPromptLabel": "Системски промпт","systemPromptPlaceholder": "Опционо. Послато као системска порука пре вашег ћаскања.",+ "showSettings": "Прикажи подешавања",+ "hideSettings": "Сакриј подешавања",+ "samplingHeading": "Узорковање",+ "samplingHelp": "Када је искључено, примењује се подразумевана вредност самог провајдера. Шаљу се само контроле које укључите.",+ "samplingDefault": "Подразумевано",+ "temperature": "Температура",+ "topP": "Top P",+ "maxTokens": "Макс. токена","errorTitle": "Захтев није успео","attach": "Приложи датотеке","attachTooMany": "По поруци можете приложити највише {count} датотека.",@@ -659,6 +677,24 @@"noVisionBadge": "Без слика","visionWarning": "Модел {model} не прихвата слике. Изаберите модел са визијом или Ауто."},+ "playgroundSessions": {+ "heading": "Разговори",+ "newConversation": "Нови разговор",+ "showSidebar": "Прикажи разговоре",+ "hideSidebar": "Сакриј разговоре",+ "empty": "Још нема сачуваних разговора.",+ "untitled": "Разговор без назива",+ "rename": "Преименуј",+ "renamePlaceholder": "Назив разговора",+ "messageCount": "{count} порука",+ "justNow": "управо сада",+ "minutesAgo": "пре {count} мин",+ "hoursAgo": "пре {count} ч",+ "daysAgo": "пре {count} д",+ "loadFailed": "Није могуће отворити тај разговор.",+ "renameFailed": "Није могуће преименовати тај разговор.",+ "deleteFailed": "Није могуће избрисати тај разговор."+ },"embeddings": {"title": "Модели","description": "Уграђивање не успева само у оквиру породице: исти модел који користи други провајдер. Вектори са различитих модела су некомпатибилни, тако да рутер никада не мења моделе на вама.",diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex d9c1a29d..eaf35a15 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -519,6 +519,16 @@"modelScopeClear": "Rensa omfång","modelScopeBadgeOne": "begränsad · 1 modell","modelScopeBadgeOther": "begränsad · {count} modeller",+ "modelPicker": {+ "title": "Vilka modeller ska den här nyckeln betjäna?",+ "hint": "Din {provider}-nyckel har lagts till och betjänar just nu alla modeller nedan. Avmarkera de modeller som nyckeln inte får användas för — routern hoppar då över den för dessa.",+ "count": "{selected} av {total} valda",+ "allNote": "Allt är valt — inget sparas, och modeller som läggs till i katalogen senare kommer också att använda den här nyckeln.",+ "subsetNote": "Nyckeln begränsas till de valda modellerna. Du kan ändra detta senare från nyckelns rad.",+ "skip": "Inte nu",+ "scopedOne": "Nyckeln begränsad till 1 modell",+ "scopedOther": "Nyckeln begränsad till {count} modeller"+ },"cpTitle": "Klientprofiler","cpDesc": "API-nycklar per klient, var och en med en systemprompt som servern alltid tillämpar.","cpEmpty": "Inga klientprofiler ännu.",@@ -650,6 +660,14 @@"errorPrefix": "Fel:","systemPromptLabel": "Systemprompt","systemPromptPlaceholder": "Valfritt. Skickat som ett systemmeddelande innan din chatt.",+ "showSettings": "Visa inställningar",+ "hideSettings": "Dölj inställningar",+ "samplingHeading": "Sampling",+ "samplingHelp": "Avstängt gäller leverantörens egen standard. Bara de reglage du slår på skickas med.",+ "samplingDefault": "Standard",+ "temperature": "Temperatur",+ "topP": "Top P",+ "maxTokens": "Max antal tokens","errorTitle": "Begäran avvisades","attach": "Bifoga filer","attachTooMany": "Du kan bifoga upp till {count} filer per meddelande.",@@ -659,6 +677,24 @@"noVisionBadge": "Inga bilder","visionWarning": "{model} accepterar inte bilder. Välj en modell med bildstöd eller Auto."},+ "playgroundSessions": {+ "heading": "Konversationer",+ "newConversation": "Ny konversation",+ "showSidebar": "Visa konversationer",+ "hideSidebar": "Dölj konversationer",+ "empty": "Inga sparade konversationer än.",+ "untitled": "Namnlös konversation",+ "rename": "Byt namn",+ "renamePlaceholder": "Konversationens namn",+ "messageCount": "{count} meddelanden",+ "justNow": "just nu",+ "minutesAgo": "{count} min sedan",+ "hoursAgo": "{count} tim sedan",+ "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."+ },"embeddings": {"title": "Modeller","description": "Embeddings failover endast inom en familj: samma modell som en annan leverantör erbjuder. Vektorer från olika modeller är inkompatibla, så routern byter aldrig modell på dig.",diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex b5dfc5f4..2e8e7510 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -519,6 +519,16 @@"modelScopeClear": "Futa wigo","modelScopeBadgeOne": "imezuiliwa · modeli 1","modelScopeBadgeOther": "imezuiliwa · modeli {count}",+ "modelPicker": {+ "title": "Ufunguo huu unapaswa kuhudumia modeli zipi?",+ "hint": "Ufunguo wako wa {provider} umeongezwa na kwa sasa unahudumia kila modeli iliyo hapa chini. Ondoa alama kwenye modeli yoyote ambayo ufunguo huu hauruhusiwi kutumia — kipanga njia kitaruka ufunguo huu kwa modeli hizo.",+ "count": "{selected} kati ya {total} zimechaguliwa",+ "allNote": "Zote zimechaguliwa — hakuna kinachohifadhiwa, na modeli zitakazoongezwa kwenye katalogi baadaye pia zitatumia ufunguo huu.",+ "subsetNote": "Ufunguo huu utawekewa kikomo cha modeli zilizochaguliwa. Unaweza kubadilisha hili baadaye kutoka safu ya ufunguo.",+ "skip": "Si sasa",+ "scopedOne": "Ufunguo umezuiliwa kwa modeli 1",+ "scopedOther": "Ufunguo umezuiliwa kwa modeli {count}"+ },"cpTitle": "Wasifu wa wateja","cpDesc": "Funguo za API kwa kila mteja, kila mmoja na maelekezo ya mfumo ambayo seva hutumia kila wakati.","cpEmpty": "Bado hakuna wasifu wa wateja.",@@ -650,6 +660,14 @@"errorPrefix": "Hitilafu:","systemPromptLabel": "Agizo la mfumo","systemPromptPlaceholder": "Hiari. Imetumwa kama ujumbe wa mfumo kabla ya gumzo lako.",+ "showSettings": "Onyesha mipangilio",+ "hideSettings": "Ficha mipangilio",+ "samplingHeading": "Sampuli",+ "samplingHelp": "Ikizimwa, chaguomsingi la mtoa huduma mwenyewe hutumika. Ni vidhibiti unavyowasha pekee vinavyotumwa.",+ "samplingDefault": "Chaguomsingi",+ "temperature": "Halijoto",+ "topP": "Top P",+ "maxTokens": "Kiwango cha juu cha ishara","errorTitle": "Ombi halijafaulu","attach": "Ambatisha faili","attachTooMany": "Unaweza kuambatisha hadi faili {count} kwa kila ujumbe.",@@ -659,6 +677,24 @@"noVisionBadge": "Hakuna picha","visionWarning": "{model} haikubali picha. Chagua muundo wa maono au Otomatiki."},+ "playgroundSessions": {+ "heading": "Mazungumzo",+ "newConversation": "Mazungumzo mapya",+ "showSidebar": "Onyesha mazungumzo",+ "hideSidebar": "Ficha mazungumzo",+ "empty": "Bado hakuna mazungumzo yaliyohifadhiwa.",+ "untitled": "Mazungumzo yasiyo na jina",+ "rename": "Badilisha jina",+ "renamePlaceholder": "Jina la mazungumzo",+ "messageCount": "Ujumbe {count}",+ "justNow": "sasa hivi",+ "minutesAgo": "dk {count} zilizopita",+ "hoursAgo": "saa {count} zilizopita",+ "daysAgo": "siku {count} zilizopita",+ "loadFailed": "Imeshindwa kufungua mazungumzo hayo.",+ "renameFailed": "Imeshindwa kubadilisha jina la mazungumzo hayo.",+ "deleteFailed": "Imeshindwa kufuta mazungumzo hayo."+ },"embeddings": {"title": "Mifano","description": "Upachikaji hushindikana ndani ya familia pekee: muundo sawa unaotolewa na mtoa huduma mwingine. Vekta kutoka kwa mifano tofauti haziendani, kwa hivyo kipanga njia hakibadilishi mifano kwako.",diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex 5dd2a46d..33365b29 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -519,6 +519,16 @@"modelScopeClear": "வரம்பை நீக்கு","modelScopeBadgeOne": "வரம்பிடப்பட்டது · 1 மாடல்","modelScopeBadgeOther": "வரம்பிடப்பட்டது · {count} மாடல்கள்",+ "modelPicker": {+ "title": "இந்த விசை எந்த மாடல்களுக்குச் சேவை செய்ய வேண்டும்?",+ "hint": "உங்கள் {provider} விசை சேர்க்கப்பட்டது, தற்போது இது கீழே உள்ள எல்லா மாடல்களுக்கும் சேவை செய்கிறது. இந்த விசை பயன்படுத்தக் கூடாத மாடல்களின் தேர்வை நீக்கவும் — அவற்றுக்கு ரூட்டர் இதைத் தவிர்க்கும்.",+ "count": "{total} இல் {selected} தேர்ந்தெடுக்கப்பட்டது",+ "allNote": "அனைத்தும் தேர்ந்தெடுக்கப்பட்டுள்ளன — எதுவும் சேமிக்கப்படுவதில்லை, பின்னர் பட்டியலில் சேர்க்கப்படும் மாடல்களும் இந்த விசையையே பயன்படுத்தும்.",+ "subsetNote": "இந்த விசை தேர்ந்தெடுக்கப்பட்ட மாடல்களுக்கு மட்டுமே வரம்பிடப்படும். இதை பின்னர் விசையின் வரிசையிலிருந்து மாற்றலாம்.",+ "skip": "இப்போது வேண்டாம்",+ "scopedOne": "விசை 1 மாடலுக்கு வரம்பிடப்பட்டது",+ "scopedOther": "விசை {count} மாடல்களுக்கு வரம்பிடப்பட்டது"+ },"cpTitle": "கிளையண்ட் சுயவிவரங்கள்","cpDesc": "ஒவ்வொரு கிளையண்டுக்கும் தனி API சாவி; அதன் சிஸ்டம் ப்ராம்ப்டை சேவையகம் எப்போதும் பயன்படுத்தும்.","cpEmpty": "இன்னும் கிளையண்ட் சுயவிவரங்கள் இல்லை.",@@ -650,6 +660,14 @@"errorPrefix": "பிழை:","systemPromptLabel": "சிஸ்டம் ப்ராம்ட்","systemPromptPlaceholder": "விருப்பமானது. உங்கள் அரட்டைக்கு முன் கணினி செய்தியாக அனுப்பப்பட்டது.",+ "showSettings": "அமைப்புகளைக் காட்டு",+ "hideSettings": "அமைப்புகளை மறை",+ "samplingHeading": "மாதிரியெடுப்பு",+ "samplingHelp": "அணைக்கப்பட்டிருந்தால் வழங்குபவரின் சொந்த இயல்புநிலை பொருந்தும். நீங்கள் இயக்கும் கட்டுப்பாடுகள் மட்டுமே அனுப்பப்படும்.",+ "samplingDefault": "இயல்புநிலை",+ "temperature": "வெப்பநிலை",+ "topP": "Top P",+ "maxTokens": "அதிகபட்ச டோக்கன்கள்","errorTitle": "கோரிக்கை தோல்வியடைந்தது","attach": "கோப்புகளை இணைக்கவும்","attachTooMany": "ஒரு செய்திக்கு அதிகபட்சம் {count} கோப்புகளை இணைக்கலாம்.",@@ -659,6 +677,24 @@"noVisionBadge": "படங்கள் இல்லை","visionWarning": "{model} படங்களை ஏற்காது. பட உள்ளீட்டை ஏற்கும் மாதிரியை அல்லது ஆட்டோ என்பதைத் தேர்ந்தெடுக்கவும்."},+ "playgroundSessions": {+ "heading": "உரையாடல்கள்",+ "newConversation": "புதிய உரையாடல்",+ "showSidebar": "உரையாடல்களைக் காட்டு",+ "hideSidebar": "உரையாடல்களை மறை",+ "empty": "இதுவரை சேமித்த உரையாடல்கள் இல்லை.",+ "untitled": "தலைப்பில்லா உரையாடல்",+ "rename": "மறுபெயரிடு",+ "renamePlaceholder": "உரையாடலின் பெயர்",+ "messageCount": "{count} செய்திகள்",+ "justNow": "இப்போதுதான்",+ "minutesAgo": "{count} நிமி. முன்",+ "hoursAgo": "{count} மணி. முன்",+ "daysAgo": "{count} நாள் முன்",+ "loadFailed": "அந்த உரையாடலைத் திறக்க முடியவில்லை.",+ "renameFailed": "அந்த உரையாடலுக்கு மறுபெயரிட முடியவில்லை.",+ "deleteFailed": "அந்த உரையாடலை நீக்க முடியவில்லை."+ },"embeddings": {"title": "மாதிரிகள்","description": "ஒரு குடும்பத்தில் மட்டுமே உட்பொதிப்புகள் தோல்வியடைகின்றன: அதே மாதிரி மற்றொரு வழங்குநரால் வழங்கப்படுகிறது. வெவ்வேறு மாடல்களில் இருந்து வெக்டார்ஸ் இணக்கமற்றது, எனவே திசைவி உங்கள் மாதிரிகளை ஒருபோதும் மாற்றாது.",diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex ec7ca35b..04ee9969 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -519,6 +519,16 @@"modelScopeClear": "పరిధిని తొలగించండి","modelScopeBadgeOne": "పరిమితం · 1 మోడల్","modelScopeBadgeOther": "పరిమితం · {count} మోడళ్లు",+ "modelPicker": {+ "title": "ఈ కీ ఏ మోడల్లకు సేవ అందించాలి?",+ "hint": "మీ {provider} కీ జోడించబడింది, ప్రస్తుతం ఇది కింది ప్రతి మోడల్కు సేవ అందిస్తుంది. ఈ కీని ఉపయోగించకూడని మోడల్ల ఎంపికను తీసివేయండి — వాటికి రూటర్ ఈ కీని దాటవేస్తుంది.",+ "count": "{total}లో {selected} ఎంచుకోబడ్డాయి",+ "allNote": "అన్నీ ఎంచుకోబడ్డాయి — ఏదీ సేవ్ చేయబడదు, తర్వాత కేటలాగ్కు జోడించే మోడళ్లు కూడా ఈ కీనే ఉపయోగిస్తాయి.",+ "subsetNote": "ఈ కీ ఎంచుకున్న మోడళ్లకు మాత్రమే పరిమితం అవుతుంది. దీన్ని తర్వాత కీ వరుస నుండి మార్చుకోవచ్చు.",+ "skip": "ఇప్పుడు కాదు",+ "scopedOne": "కీ 1 మోడల్కు పరిమితం",+ "scopedOther": "కీ {count} మోడళ్లకు పరిమితం"+ },"cpTitle": "క్లయింట్ ప్రొఫైల్స్","cpDesc": "ప్రతి క్లయింట్కు వేరు API కీ, దాని సిస్టమ్ ప్రాంప్ట్ను సర్వర్ ఎల్లప్పుడూ వర్తింపజేస్తుంది.","cpEmpty": "ఇంకా క్లయింట్ ప్రొఫైల్స్ లేవు.",@@ -650,6 +660,14 @@"errorPrefix": "లోపం:","systemPromptLabel": "సిస్టమ్ ప్రాంప్ట్","systemPromptPlaceholder": "ఐచ్ఛికం. మీ చాట్కు ముందు సిస్టమ్ సందేశంగా పంపబడింది.",+ "showSettings": "సెట్టింగ్లను చూపు",+ "hideSettings": "సెట్టింగ్లను దాచు",+ "samplingHeading": "శాంప్లింగ్",+ "samplingHelp": "ఆఫ్ చేసినప్పుడు ప్రొవైడర్ సొంత డిఫాల్ట్ వర్తిస్తుంది. మీరు ఆన్ చేసిన నియంత్రణలు మాత్రమే పంపబడతాయి.",+ "samplingDefault": "డిఫాల్ట్",+ "temperature": "ఉష్ణోగ్రత",+ "topP": "Top P",+ "maxTokens": "గరిష్ఠ టోకెన్లు","errorTitle": "అభ్యర్థన విఫలమైంది","attach": "ఫైల్లను జోడించండి","attachTooMany": "ఒక్కో సందేశానికి మీరు గరిష్టంగా {count} ఫైల్లను జోడించవచ్చు.",@@ -659,6 +677,24 @@"noVisionBadge": "చిత్రాలు లేవు","visionWarning": "{model} చిత్రాలను అంగీకరించదు. చిత్రాలకు మద్దతిచ్చే మోడల్ని లేదా ఆటో ఎంచుకోండి."},+ "playgroundSessions": {+ "heading": "సంభాషణలు",+ "newConversation": "కొత్త సంభాషణ",+ "showSidebar": "సంభాషణలను చూపు",+ "hideSidebar": "సంభాషణలను దాచు",+ "empty": "ఇంకా సేవ్ చేసిన సంభాషణలు ఏవీ లేవు.",+ "untitled": "శీర్షిక లేని సంభాషణ",+ "rename": "పేరు మార్చు",+ "renamePlaceholder": "సంభాషణ పేరు",+ "messageCount": "{count} సందేశాలు",+ "justNow": "ఇప్పుడే",+ "minutesAgo": "{count} నిమి. క్రితం",+ "hoursAgo": "{count} గం. క్రితం",+ "daysAgo": "{count} రోజుల క్రితం",+ "loadFailed": "ఆ సంభాషణను తెరవడం సాధ్యం కాలేదు.",+ "renameFailed": "ఆ సంభాషణ పేరును మార్చడం సాధ్యం కాలేదు.",+ "deleteFailed": "ఆ సంభాషణను తొలగించడం సాధ్యం కాలేదు."+ },"embeddings": {"title": "మోడల్స్","description": "ఒక కుటుంబంలో మాత్రమే పొందుపరచడం విఫలమవుతుంది: అదే మోడల్ మరొక ప్రొవైడర్ ద్వారా అందించబడుతుంది. వివిధ మోడళ్ల నుండి వెక్టర్స్ అననుకూలంగా ఉంటాయి, కాబట్టి రూటర్ మీపై మోడల్లను ఎప్పుడూ మార్చుకోదు.",diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex ab1526dc..c5cca66f 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -519,6 +519,16 @@"modelScopeClear": "ล้างขอบเขต","modelScopeBadgeOne": "จำกัด · 1 โมเดล","modelScopeBadgeOther": "จำกัด · {count} โมเดล",+ "modelPicker": {+ "title": "คีย์นี้ควรให้บริการโมเดลใดบ้าง",+ "hint": "เพิ่มคีย์ {provider} ของคุณแล้ว และตอนนี้ให้บริการทุกโมเดลด้านล่าง ยกเลิกการเลือกโมเดลที่ไม่อนุญาตให้คีย์นี้ใช้ — เราเตอร์จะข้ามคีย์นี้สำหรับโมเดลเหล่านั้น",+ "count": "เลือกแล้ว {selected} จาก {total}",+ "allNote": "เลือกทั้งหมด — จะไม่มีการบันทึกใด ๆ และโมเดลที่เพิ่มเข้าแคตตาล็อกภายหลังจะใช้คีย์นี้ด้วย",+ "subsetNote": "คีย์นี้จะถูกจำกัดไว้เฉพาะโมเดลที่เลือก คุณเปลี่ยนได้ภายหลังจากแถวของคีย์",+ "skip": "ยังไม่ใช่ตอนนี้",+ "scopedOne": "คีย์จำกัดไว้ที่ 1 โมเดล",+ "scopedOther": "คีย์จำกัดไว้ที่ {count} โมเดล"+ },"cpTitle": "โปรไฟล์ไคลเอนต์","cpDesc": "คีย์ API แยกตามไคลเอนต์ แต่ละคีย์มี system prompt ที่เซิร์ฟเวอร์ใช้เสมอ","cpEmpty": "ยังไม่มีโปรไฟล์ไคลเอนต์",@@ -650,6 +660,14 @@"errorPrefix": "ข้อผิดพลาด:","systemPromptLabel": "พร้อมท์ระบบ","systemPromptPlaceholder": "ไม่จำเป็น ส่งเป็นข้อความระบบก่อนการแชทของคุณ",+ "showSettings": "แสดงการตั้งค่า",+ "hideSettings": "ซ่อนการตั้งค่า",+ "samplingHeading": "การสุ่มตัวอย่าง",+ "samplingHelp": "เมื่อปิดอยู่ ระบบจะใช้ค่าเริ่มต้นของผู้ให้บริการเอง และจะส่งเฉพาะตัวควบคุมที่คุณเปิดไว้เท่านั้น",+ "samplingDefault": "ค่าเริ่มต้น",+ "temperature": "อุณหภูมิ",+ "topP": "Top P",+ "maxTokens": "โทเค็นสูงสุด","errorTitle": "คำขอล้มเหลว","attach": "แนบไฟล์","attachTooMany": "คุณแนบไฟล์ได้สูงสุด {count} ไฟล์ต่อหนึ่งข้อความ",@@ -659,6 +677,24 @@"noVisionBadge": "ไม่รับรูปภาพ","visionWarning": "{model} ไม่รองรับรูปภาพ เลือกโมเดลที่รองรับรูปภาพหรืออัตโนมัติ"},+ "playgroundSessions": {+ "heading": "บทสนทนา",+ "newConversation": "บทสนทนาใหม่",+ "showSidebar": "แสดงบทสนทนา",+ "hideSidebar": "ซ่อนบทสนทนา",+ "empty": "ยังไม่มีบทสนทนาที่บันทึกไว้",+ "untitled": "บทสนทนาที่ไม่มีชื่อ",+ "rename": "เปลี่ยนชื่อ",+ "renamePlaceholder": "ชื่อบทสนทนา",+ "messageCount": "{count} ข้อความ",+ "justNow": "เมื่อสักครู่",+ "minutesAgo": "{count} นาทีที่แล้ว",+ "hoursAgo": "{count} ชม. ที่แล้ว",+ "daysAgo": "{count} วันที่แล้ว",+ "loadFailed": "ไม่สามารถเปิดบทสนทนานั้นได้",+ "renameFailed": "ไม่สามารถเปลี่ยนชื่อบทสนทนานั้นได้",+ "deleteFailed": "ไม่สามารถลบบทสนทนานั้นได้"+ },"embeddings": {"title": "โมเดล","description": "การฝังล้มเหลวภายในกลุ่มเท่านั้น: โมเดลเดียวกันที่ให้บริการโดยผู้ให้บริการรายอื่น เวกเตอร์จากรุ่นต่างๆ เข้ากันไม่ได้ ดังนั้นเราเตอร์จึงไม่สลับรุ่นกับคุณ",diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 5cfebbbd..3478602d 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -519,6 +519,16 @@"modelScopeClear": "Burahin ang saklaw","modelScopeBadgeOne": "limitado · 1 modelo","modelScopeBadgeOther": "limitado · {count} na modelo",+ "modelPicker": {+ "title": "Aling mga modelo ang dapat pagsilbihan ng key na ito?",+ "hint": "Naidagdag na ang iyong {provider} key at kasalukuyan nitong pinagsisilbihan ang lahat ng modelo sa ibaba. Alisan ng tsek ang alinmang hindi pinapayagang gamitin ng key na ito — laktawan ito ng router para sa mga iyon.",+ "count": "{selected} sa {total} ang napili",+ "allNote": "Lahat ay napili — walang ise-save, at gagamitin din ang key na ito ng mga modelong idaragdag sa katalogo mamaya.",+ "subsetNote": "Malilimitahan ang key na ito sa mga napiling modelo. Mababago mo ito mamaya mula sa row ng key.",+ "skip": "Hindi ngayon",+ "scopedOne": "Limitado ang key sa 1 modelo",+ "scopedOther": "Limitado ang key sa {count} na modelo"+ },"cpTitle": "Mga profile ng client","cpDesc": "Hiwalay na API key para sa bawat client, bawat isa may system prompt na palaging inilalapat ng server.","cpEmpty": "Wala pang mga profile ng client.",@@ -650,6 +660,14 @@"errorPrefix": "Error:","systemPromptLabel": "System prompt","systemPromptPlaceholder": "Opsyonal. Ipinadala bilang system message bago ang iyong chat.",+ "showSettings": "Ipakita ang mga setting",+ "hideSettings": "Itago ang mga setting",+ "samplingHeading": "Sampling",+ "samplingHelp": "Kapag naka-off, ang sariling default ng tagapagbigay ang ginagamit. Ang mga kontrol lang na i-on mo ang ipapadala.",+ "samplingDefault": "Default",+ "temperature": "Temperatura",+ "topP": "Top P",+ "maxTokens": "Max na token","errorTitle": "Nabigo ang kahilingan","attach": "Maglakip ng mga file","attachTooMany": "Puwede kang maglakip ng hanggang {count} file kada mensahe.",@@ -659,6 +677,24 @@"noVisionBadge": "Walang larawan","visionWarning": "Hindi tumatanggap ng larawan ang {model}. Pumili ng modelong tumatanggap ng larawan o Auto."},+ "playgroundSessions": {+ "heading": "Mga usapan",+ "newConversation": "Bagong usapan",+ "showSidebar": "Ipakita ang mga usapan",+ "hideSidebar": "Itago ang mga usapan",+ "empty": "Wala pang naka-save na usapan.",+ "untitled": "Usapang walang pamagat",+ "rename": "Palitan ang pangalan",+ "renamePlaceholder": "Pangalan ng usapan",+ "messageCount": "{count} mensahe",+ "justNow": "ngayon lang",+ "minutesAgo": "{count} min nakalipas",+ "hoursAgo": "{count} oras nakalipas",+ "daysAgo": "{count} araw nakalipas",+ "loadFailed": "Hindi mabuksan ang usapang iyon.",+ "renameFailed": "Hindi mapalitan ang pangalan ng usapang iyon.",+ "deleteFailed": "Hindi matanggal ang usapang iyon."+ },"embeddings": {"title": "Mga Modelo","description": "Ang mga embedding ay failover lamang sa loob ng isang pamilya: parehong modelo na pinaglilingkuran ng ibang provider. Hindi compatible ang mga vector mula sa iba't ibang modelo, kaya hindi kailanman nagpapalit ng modelo ang router sa iyo.",diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex 6263c480..077c8621 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -519,6 +519,16 @@"modelScopeClear": "Kapsamı temizle","modelScopeBadgeOne": "sınırlı · 1 model","modelScopeBadgeOther": "sınırlı · {count} model",+ "modelPicker": {+ "title": "Bu anahtar hangi modellere hizmet versin?",+ "hint": "{provider} anahtarınız eklendi ve şu anda aşağıdaki tüm modellere hizmet veriyor. Bu anahtarın kullanmasına izin verilmeyen modellerin işaretini kaldırın — yönlendirici o modeller için bu anahtarı atlar.",+ "count": "{total} modelden {selected} tanesi seçildi",+ "allNote": "Her şey seçili — hiçbir şey kaydedilmez ve kataloğa sonradan eklenen modeller de bu anahtarı kullanır.",+ "subsetNote": "Bu anahtar seçili modellerle sınırlı olacak. Bunu daha sonra anahtarın satırından değiştirebilirsiniz.",+ "skip": "Şimdi değil",+ "scopedOne": "Anahtar 1 modelle sınırlandırıldı",+ "scopedOther": "Anahtar {count} modelle sınırlandırıldı"+ },"cpTitle": "İstemci profilleri","cpDesc": "İstemci başına API anahtarları; her birinin sistem istemini sunucu her zaman uygular.","cpEmpty": "Henüz istemci profili yok.",@@ -650,6 +660,14 @@"errorPrefix": "Hata:","systemPromptLabel": "Sistem istemi","systemPromptPlaceholder": "İsteğe bağlı. Sohbetinizden önce sistem mesajı olarak gönderilir.",+ "showSettings": "Ayarları göster",+ "hideSettings": "Ayarları gizle",+ "samplingHeading": "Örnekleme",+ "samplingHelp": "Kapalıyken sağlayıcının kendi varsayılanı geçerli olur. Yalnızca açtığınız denetimler gönderilir.",+ "samplingDefault": "Varsayılan",+ "temperature": "Sıcaklık",+ "topP": "Top P",+ "maxTokens": "Maks. jeton","errorTitle": "İstek başarısız oldu","attach": "Dosya ekle","attachTooMany": "Her mesajda en fazla {count} dosya ekleyebilirsiniz.",@@ -659,6 +677,24 @@"noVisionBadge": "Görüntü yok","visionWarning": "{model} görüntü kabul etmiyor. Görüntü destekleyen bir model veya Otomatik seçin."},+ "playgroundSessions": {+ "heading": "Sohbetler",+ "newConversation": "Yeni sohbet",+ "showSidebar": "Sohbetleri göster",+ "hideSidebar": "Sohbetleri gizle",+ "empty": "Henüz kaydedilmiş sohbet yok.",+ "untitled": "Adsız sohbet",+ "rename": "Yeniden adlandır",+ "renamePlaceholder": "Sohbet adı",+ "messageCount": "{count} mesaj",+ "justNow": "az önce",+ "minutesAgo": "{count} dk önce",+ "hoursAgo": "{count} sa önce",+ "daysAgo": "{count} gün önce",+ "loadFailed": "Bu sohbet açılamadı.",+ "renameFailed": "Bu sohbet yeniden adlandırılamadı.",+ "deleteFailed": "Bu sohbet silinemedi."+ },"embeddings": {"title": "Modeller","description": "Yerleştirmeler yalnızca bir aile içinde devredilir: başka bir sağlayıcı tarafından sunulan aynı model. Farklı modellerin vektörleri uyumsuz olduğundan yönlendirici asla sizin üzerinizdeki modelleri değiştirmez.",diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex 6b07787d..45570064 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -519,6 +519,16 @@"modelScopeClear": "Очистити область","modelScopeBadgeOne": "обмежено · 1 модель","modelScopeBadgeOther": "обмежено · {count} моделей",+ "modelPicker": {+ "title": "Які моделі має обслуговувати цей ключ?",+ "hint": "Ваш ключ {provider} додано, і зараз він обслуговує всі моделі нижче. Зніміть позначки з тих, які цьому ключу використовувати не можна — для них маршрутизатор його пропускатиме.",+ "count": "Вибрано {selected} з {total}",+ "allNote": "Вибрано все — нічого не зберігається, і моделі, додані до каталогу пізніше, теж використовуватимуть цей ключ.",+ "subsetNote": "Цей ключ буде обмежено вибраними моделями. Змінити це можна пізніше в рядку ключа.",+ "skip": "Не зараз",+ "scopedOne": "Ключ обмежено 1 моделлю",+ "scopedOther": "Ключ обмежено {count} моделями"+ },"cpTitle": "Профілі клієнтів","cpDesc": "Окремі API-ключі для кожного клієнта, кожен зі своїм системним промптом, який сервер застосовує завжди.","cpEmpty": "Профілів клієнтів поки немає.",@@ -650,6 +660,14 @@"errorPrefix": "Помилка:","systemPromptLabel": "Системна підказка","systemPromptPlaceholder": "Додатково. Надсилається як системне повідомлення перед вашим чатом.",+ "showSettings": "Показати налаштування",+ "hideSettings": "Сховати налаштування",+ "samplingHeading": "Семплювання",+ "samplingHelp": "Коли вимкнено, діє власне значення провайдера за замовчуванням. Надсилаються лише ті елементи керування, які ви ввімкнете.",+ "samplingDefault": "За замовчуванням",+ "temperature": "Температура",+ "topP": "Top P",+ "maxTokens": "Макс. маркерів","errorTitle": "Запит не виконано","attach": "Прикріпити файли","attachTooMany": "До одного повідомлення можна прикріпити не більше {count} файлів.",@@ -659,6 +677,24 @@"noVisionBadge": "Без зображень","visionWarning": "{model} не приймає зображення. Виберіть модель із підтримкою зображень або «Авто»."},+ "playgroundSessions": {+ "heading": "Чати",+ "newConversation": "Новий чат",+ "showSidebar": "Показати чати",+ "hideSidebar": "Сховати чати",+ "empty": "Збережених чатів поки немає.",+ "untitled": "Чат без назви",+ "rename": "Перейменувати",+ "renamePlaceholder": "Назва чату",+ "messageCount": "{count} повідомлень",+ "justNow": "щойно",+ "minutesAgo": "{count} хв тому",+ "hoursAgo": "{count} год тому",+ "daysAgo": "{count} дн. тому",+ "loadFailed": "Не вдалося відкрити цей чат.",+ "renameFailed": "Не вдалося перейменувати цей чат.",+ "deleteFailed": "Не вдалося видалити цей чат."+ },"embeddings": {"title": "Моделі","description": "Відмова вбудовування відбувається лише в межах родини: та сама модель обслуговується іншим постачальником. Вектори з різних моделей несумісні, тому роутер ніколи не змінює моделі на вас.",diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex acd108e0..f59c38ef 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -519,6 +519,16 @@"modelScopeClear": "دائرہ صاف کریں","modelScopeBadgeOne": "محدود · 1 ماڈل","modelScopeBadgeOther": "محدود · {count} ماڈلز",+ "modelPicker": {+ "title": "یہ کلید کن ماڈلز کے لیے استعمال ہو؟",+ "hint": "آپ کی {provider} کلید شامل کر دی گئی ہے اور فی الحال نیچے دیے گئے ہر ماڈل کے لیے استعمال ہو رہی ہے۔ جن ماڈلز کے لیے اس کلید کو اجازت نہیں، ان کا نشان ہٹا دیں — راؤٹر ان کے لیے اسے چھوڑ دے گا۔",+ "count": "{total} میں سے {selected} منتخب",+ "allNote": "سب منتخب ہیں — کچھ محفوظ نہیں ہوگا، اور بعد میں کیٹلاگ میں شامل ہونے والے ماڈلز بھی یہی کلید استعمال کریں گے۔",+ "subsetNote": "یہ کلید صرف منتخب ماڈلز تک محدود رہے گی۔ آپ بعد میں کلید کی سطر سے یہ تبدیل کر سکتے ہیں۔",+ "skip": "ابھی نہیں",+ "scopedOne": "کلید 1 ماڈل تک محدود",+ "scopedOther": "کلید {count} ماڈلز تک محدود"+ },"cpTitle": "کلائنٹ پروفائلز","cpDesc": "ہر کلائنٹ کے لیے الگ API کلید، جس کا سسٹم پرامپٹ سرور ہمیشہ لاگو کرتا ہے۔","cpEmpty": "ابھی کوئی کلائنٹ پروفائل نہیں۔",@@ -650,6 +660,14 @@"errorPrefix": "خرابی:","systemPromptLabel": "سسٹم پرامپٹ","systemPromptPlaceholder": "اختیاری آپ کی چیٹ سے پہلے سسٹم پیغام کے طور پر بھیجا گیا۔",+ "showSettings": "ترتیبات دکھائیں",+ "hideSettings": "ترتیبات چھپائیں",+ "samplingHeading": "سیمپلنگ",+ "samplingHelp": "بند ہونے پر فراہم کرنے والے کا اپنا طے شدہ اطلاق ہوتا ہے۔ صرف وہی کنٹرولز بھیجے جاتے ہیں جو آپ آن کرتے ہیں۔",+ "samplingDefault": "طے شدہ",+ "temperature": "درجہ حرارت",+ "topP": "Top P",+ "maxTokens": "زیادہ سے زیادہ ٹوکنز","errorTitle": "درخواست ناکام ہوگئی","attach": "فائلیں منسلک کریں۔","attachTooMany": "آپ فی پیغام زیادہ سے زیادہ {count} فائلیں منسلک کر سکتے ہیں۔",@@ -659,6 +677,24 @@"noVisionBadge": "تصاویر نہیں","visionWarning": "{model} تصاویر قبول نہیں کرتا۔ کوئی وژن ماڈل یا آٹو منتخب کریں۔"},+ "playgroundSessions": {+ "heading": "گفتگوئیں",+ "newConversation": "نئی گفتگو",+ "showSidebar": "گفتگوئیں دکھائیں",+ "hideSidebar": "گفتگوئیں چھپائیں",+ "empty": "ابھی تک کوئی محفوظ گفتگو نہیں۔",+ "untitled": "بلا عنوان گفتگو",+ "rename": "نام تبدیل کریں",+ "renamePlaceholder": "گفتگو کا نام",+ "messageCount": "{count} پیغامات",+ "justNow": "ابھی ابھی",+ "minutesAgo": "{count} منٹ پہلے",+ "hoursAgo": "{count} گھنٹے پہلے",+ "daysAgo": "{count} دن پہلے",+ "loadFailed": "وہ گفتگو نہیں کھل سکی۔",+ "renameFailed": "اس گفتگو کا نام تبدیل نہیں ہو سکا۔",+ "deleteFailed": "وہ گفتگو حذف نہیں ہو سکی۔"+ },"embeddings": {"title": "ماڈلز","description": "ایمبیڈنگز صرف ایک خاندان کے اندر ناکام ہو جاتی ہیں: وہی ماڈل جو کسی دوسرے فراہم کنندہ کے ذریعے پیش کیا جاتا ہے۔ مختلف ماڈلز کے ویکٹر غیر موافق ہوتے ہیں، اس لیے روٹر کبھی بھی آپ کے ماڈلز کو تبدیل نہیں کرتا ہے۔",diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex da86e4ce..ffe2a32d 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -519,6 +519,16 @@"modelScopeClear": "Doirani tozalash","modelScopeBadgeOne": "cheklangan · 1 model","modelScopeBadgeOther": "cheklangan · {count} model",+ "modelPicker": {+ "title": "Bu kalit qaysi modellarga xizmat qilsin?",+ "hint": "{provider} kalitingiz qo‘shildi va hozirda quyidagi barcha modellarga xizmat qilmoqda. Bu kalitdan foydalanishga ruxsat berilmagan modellardan belgini olib tashlang — router ular uchun bu kalitni o‘tkazib yuboradi.",+ "count": "{total} tadan {selected} tasi tanlandi",+ "allNote": "Hammasi tanlangan — hech narsa saqlanmaydi va keyinchalik katalogga qo‘shiladigan modellar ham shu kalitdan foydalanadi.",+ "subsetNote": "Bu kalit faqat tanlangan modellar bilan cheklanadi. Buni keyinroq kalit qatoridan o‘zgartirishingiz mumkin.",+ "skip": "Hozir emas",+ "scopedOne": "Kalit 1 ta model bilan cheklandi",+ "scopedOther": "Kalit {count} ta model bilan cheklandi"+ },"cpTitle": "Mijoz profillari","cpDesc": "Har bir mijoz uchun alohida API kaliti; uning tizim promptini server doim qo'llaydi.","cpEmpty": "Hozircha mijoz profillari yo'q.",@@ -650,6 +660,14 @@"errorPrefix": "Xato:","systemPromptLabel": "Tizim so'rovi","systemPromptPlaceholder": "Ixtiyoriy. Suhbatingizdan oldin tizim xabari sifatida yuborilgan.",+ "showSettings": "Sozlamalarni ko‘rsatish",+ "hideSettings": "Sozlamalarni yashirish",+ "samplingHeading": "Namuna olish",+ "samplingHelp": "O‘chirilganda provayderning o‘z standart qiymati qo‘llanadi. Faqat siz yoqqan boshqaruvlar yuboriladi.",+ "samplingDefault": "Standart",+ "temperature": "Harorat",+ "topP": "Top P",+ "maxTokens": "Maksimal belgilar","errorTitle": "So‘rov bajarilmadi","attach": "Fayllarni biriktirish","attachTooMany": "Har bir xabarga koʻpi bilan {count} ta fayl biriktirishingiz mumkin.",@@ -659,6 +677,24 @@"noVisionBadge": "Rasmsiz","visionWarning": "{model} rasmlarni qabul qilmaydi. Rasmni qoʻllaydigan model yoki Avtomatik variantini tanlang."},+ "playgroundSessions": {+ "heading": "Suhbatlar",+ "newConversation": "Yangi suhbat",+ "showSidebar": "Suhbatlarni ko‘rsatish",+ "hideSidebar": "Suhbatlarni yashirish",+ "empty": "Hozircha saqlangan suhbatlar yo‘q.",+ "untitled": "Nomsiz suhbat",+ "rename": "Nomini o‘zgartirish",+ "renamePlaceholder": "Suhbat nomi",+ "messageCount": "{count} ta xabar",+ "justNow": "hozirgina",+ "minutesAgo": "{count} daq oldin",+ "hoursAgo": "{count} soat oldin",+ "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."+ },"embeddings": {"title": "Modellar","description": "O'rnatishlar faqat oilada ishlamay qoladi: xuddi shu model boshqa provayder tomonidan taqdim etiladi. Turli modellardagi vektorlar mos kelmaydi, shuning uchun marshrutizator hech qachon sizdagi modellarni almashtirmaydi.",diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex b363b051..3b2c92b9 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -519,6 +519,16 @@"modelScopeClear": "Xóa phạm vi","modelScopeBadgeOne": "giới hạn · 1 mô hình","modelScopeBadgeOther": "giới hạn · {count} mô hình",+ "modelPicker": {+ "title": "Khóa này nên phục vụ những mô hình nào?",+ "hint": "Khóa {provider} của bạn đã được thêm và hiện phục vụ mọi mô hình bên dưới. Hãy bỏ chọn những mô hình mà khóa này không được phép dùng — bộ định tuyến sẽ bỏ qua khóa này với chúng.",+ "count": "Đã chọn {selected} trong {total}",+ "allNote": "Đã chọn tất cả — sẽ không có gì được lưu, và các mô hình được thêm vào danh mục sau này cũng sẽ dùng khóa này.",+ "subsetNote": "Khóa này sẽ chỉ giới hạn ở các mô hình đã chọn. Bạn có thể thay đổi sau tại hàng của khóa.",+ "skip": "Để sau",+ "scopedOne": "Khóa giới hạn ở 1 mô hình",+ "scopedOther": "Khóa giới hạn ở {count} mô hình"+ },"cpTitle": "Hồ sơ client","cpDesc": "Khóa API riêng cho từng client, mỗi khóa có một system prompt mà máy chủ luôn áp dụng.","cpEmpty": "Chưa có hồ sơ client nào.",@@ -650,6 +660,14 @@"errorPrefix": "Lỗi:","systemPromptLabel": "Lời nhắc hệ thống","systemPromptPlaceholder": "Tùy chọn. Được gửi dưới dạng tin nhắn hệ thống trước cuộc trò chuyện của bạn.",+ "showSettings": "Hiện cài đặt",+ "hideSettings": "Ẩn cài đặt",+ "samplingHeading": "Lấy mẫu",+ "samplingHelp": "Khi tắt, giá trị mặc định của chính nhà cung cấp sẽ được áp dụng. Chỉ những tùy chọn bạn bật mới được gửi đi.",+ "samplingDefault": "Mặc định",+ "temperature": "Nhiệt độ",+ "topP": "Top P",+ "maxTokens": "Số mã thông báo tối đa","errorTitle": "Yêu cầu không thành công","attach": "Đính kèm tệp","attachTooMany": "Bạn có thể đính kèm tối đa {count} tệp cho mỗi tin nhắn.",@@ -659,6 +677,24 @@"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."},+ "playgroundSessions": {+ "heading": "Cuộc trò chuyện",+ "newConversation": "Cuộc trò chuyện mới",+ "showSidebar": "Hiện cuộc trò chuyện",+ "hideSidebar": "Ẩn cuộc trò chuyện",+ "empty": "Chưa có cuộc trò chuyện nào được lưu.",+ "untitled": "Cuộc trò chuyện chưa đặt tên",+ "rename": "Đổi tên",+ "renamePlaceholder": "Tên cuộc trò chuyện",+ "messageCount": "{count} tin nhắn",+ "justNow": "vừa xong",+ "minutesAgo": "{count} phút trước",+ "hoursAgo": "{count} giờ trước",+ "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 đó."+ },"embeddings": {"title": "Người mẫu","description": "Việc nhúng không thành công chỉ trong một dòng: cùng một mô hình do nhà cung cấp khác cung cấp. Các vectơ từ các kiểu máy khác nhau không tương thích, vì vậy bộ định tuyến không bao giờ hoán đổi các kiểu máy trên bạn.",diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex a2972c49..b84a3c5c 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -519,6 +519,16 @@"modelScopeClear": "Pa àgbègbè rẹ́","modelScopeBadgeOne": "ní ààlà · awoṣe 1","modelScopeBadgeOther": "ní ààlà · awoṣe {count}",+ "modelPicker": {+ "title": "Àwọn awoṣe wo ni bọtìnì yìí gbọdọ̀ ṣe ìránṣẹ́ fún?",+ "hint": "A ti ṣàfikún bọtìnì {provider} rẹ, ó sì ń ṣe ìránṣẹ́ fún gbogbo àwọn awoṣe tí ó wà nísàlẹ̀ báyìí. Yọ àmì kúrò nínú èyíkéyìí tí bọtìnì yìí kò ní ààyè láti lò — olulana yóò fò ó kọjá fún àwọn wọ̀nyẹn.",+ "count": "{selected} nínú {total} ni a yàn",+ "allNote": "Gbogbo rẹ̀ ni a yàn — kò sí ohun tí a fipamọ́, àwọn awoṣe tí a bá fi kún àkójọ lẹ́yìn náà yóò sì tún lo bọtìnì yìí.",+ "subsetNote": "Bọtìnì yìí yóò ní ààlà sí àwọn awoṣe tí a yàn. O lè yí èyí padà lẹ́yìn náà láti orí ìlà bọtìnì náà.",+ "skip": "Kì í ṣe báyìí",+ "scopedOne": "Bọtìnì ní ààlà sí awoṣe 1",+ "scopedOther": "Bọtìnì ní ààlà sí awoṣe {count}"+ },"cpTitle": "Àwọn pírófáìlì oníbàárà","cpDesc": "Àwọn kọ́kọ́rọ́ API fún oníbàárà kọ̀ọ̀kan, ọ̀kọ̀ọ̀kan pẹ̀lú ìtọ́ni ètò tí sáfà máa ń lò nígbà gbogbo.","cpEmpty": "Kò sí pírófáìlì oníbàárà síbẹ̀.",@@ -650,6 +660,14 @@"errorPrefix": "Asise:","systemPromptLabel": "Ilana eto","systemPromptPlaceholder": "iyan. Ti firanṣẹ bi ifiranṣẹ eto ṣaaju iwiregbe rẹ.",+ "showSettings": "Fi eto hàn",+ "hideSettings": "Fi eto pamọ́",+ "samplingHeading": "Sampling",+ "samplingHelp": "Nígbà tí ó bá pa, aiyipada ti olupese fúnra rẹ̀ ni yóò lò. Àwọn ìdarí tí o bá tàn nìkan ni a ó fi ránṣẹ́.",+ "samplingDefault": "Aiyipada",+ "temperature": "Temperature",+ "topP": "Top P",+ "maxTokens": "Iye ami tó pọ̀ jù","errorTitle": "Ibere kuna","attach": "Somọ awọn faili","attachTooMany": "O le somọ to awọn faili {count} fun ifiranṣẹ kọọkan.",@@ -659,6 +677,24 @@"noVisionBadge": "Ko si aworan","visionWarning": "{model} ko gba aworan. Yan awoṣe ti o gba aworan tabi Aifọwọyi."},+ "playgroundSessions": {+ "heading": "Àwọn ìjíròrò",+ "newConversation": "Ìjíròrò tuntun",+ "showSidebar": "Fi àwọn ìjíròrò hàn",+ "hideSidebar": "Fi àwọn ìjíròrò pamọ́",+ "empty": "Kò sí ìjíròrò tí a ti fipamọ́ síbẹ̀síbẹ̀.",+ "untitled": "Ìjíròrò aláìlórúkọ",+ "rename": "Tún orúkọ sọ",+ "renamePlaceholder": "Orúkọ ìjíròrò",+ "messageCount": "Àwọn ìfiránṣẹ́ {count}",+ "justNow": "ṣẹ̀ṣẹ̀ ni",+ "minutesAgo": "ìṣẹ́jú {count} sẹ́yìn",+ "hoursAgo": "wákàtí {count} sẹ́yìn",+ "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ẹ́."+ },"embeddings": {"title": "Awọn awoṣe","description": "Awọn ifibọ kuna laarin idile nikan: awoṣe kanna ti o ṣiṣẹ nipasẹ olupese miiran. Awọn olutọpa lati oriṣiriṣi awọn awoṣe ko ni ibamu, nitorinaa olulana ko paarọ awọn awoṣe lori rẹ.",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 3766c94d..0704bcab 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -523,6 +523,16 @@"modelScopeClear": "清除范围","modelScopeBadgeOne": "限定 · 1 个模型","modelScopeBadgeOther": "限定 · {count} 个模型",+ "modelPicker": {+ "title": "此密钥应服务哪些模型?",+ "hint": "您的 {provider} 密钥已添加,目前可服务下方全部模型。请取消勾选此密钥不可使用的模型——路由器会为这些模型跳过此密钥。",+ "count": "已选择 {selected} 个,共 {total} 个",+ "allNote": "已全选——不会保存任何限制,之后添加到目录的模型也会使用此密钥。",+ "subsetNote": "此密钥将仅限于所选模型。之后可在该密钥所在行更改。",+ "skip": "暂不设置",+ "scopedOne": "密钥已限定为 1 个模型",+ "scopedOther": "密钥已限定为 {count} 个模型"+ },"cpTitle": "客户端配置文件","cpDesc": "为每个客户端单独发放 API 密钥,服务器会始终应用其系统提示词。","cpEmpty": "还没有客户端配置文件。",@@ -650,6 +660,14 @@"errorPrefix": "错误:","systemPromptLabel": "系统提示词","systemPromptPlaceholder": "可选。作为系统消息在您的对话之前发送。",+ "showSettings": "显示设置",+ "hideSettings": "隐藏设置",+ "samplingHeading": "采样",+ "samplingHelp": "关闭时将采用提供方自身的默认值。只有您开启的选项才会被发送。",+ "samplingDefault": "默认",+ "temperature": "温度",+ "topP": "Top P",+ "maxTokens": "最大词元数","errorTitle": "请求失败","attach": "附加文件","attachTooMany": "每条消息最多可附加 {count} 个文件。",@@ -659,6 +677,24 @@"noVisionBadge": "不支持图像","visionWarning": "{model} 不接受图像。请选择视觉模型或「自动」。"},+ "playgroundSessions": {+ "heading": "对话",+ "newConversation": "新建对话",+ "showSidebar": "显示对话",+ "hideSidebar": "隐藏对话",+ "empty": "暂无已保存的对话。",+ "untitled": "未命名对话",+ "rename": "重命名",+ "renamePlaceholder": "对话名称",+ "messageCount": "{count} 条消息",+ "justNow": "刚刚",+ "minutesAgo": "{count} 分钟前",+ "hoursAgo": "{count} 小时前",+ "daysAgo": "{count} 天前",+ "loadFailed": "无法打开该对话。",+ "renameFailed": "无法重命名该对话。",+ "deleteFailed": "无法删除该对话。"+ },"embeddings": {"title": "模型","description": "嵌入模型只在同一系列内回退:同一模型可由另一个提供方提供。不同模型的向量不兼容,因此路由器绝不会在请求中途切换模型。",diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 66f4fd71..de8beb12 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -523,6 +523,16 @@"modelScopeClear": "清除範圍","modelScopeBadgeOne": "限定 · 1 個模型","modelScopeBadgeOther": "限定 · {count} 個模型",+ "modelPicker": {+ "title": "此金鑰應服務哪些模型?",+ "hint": "您的 {provider} 金鑰已新增,目前可服務下方所有模型。請取消勾選此金鑰不可使用的模型——路由器會為這些模型略過此金鑰。",+ "count": "已選擇 {selected} 個,共 {total} 個",+ "allNote": "已全選——不會儲存任何限制,日後新增至目錄的模型也會使用此金鑰。",+ "subsetNote": "此金鑰將僅限於所選模型。日後可在該金鑰所在列變更。",+ "skip": "暫不設定",+ "scopedOne": "金鑰已限定為 1 個模型",+ "scopedOther": "金鑰已限定為 {count} 個模型"+ },"cpTitle": "用戶端設定檔","cpDesc": "為每個用戶端各自發放 API 金鑰,伺服器會一律套用其系統提示詞。","cpEmpty": "尚無用戶端設定檔。",@@ -650,6 +660,14 @@"errorPrefix": "錯誤:","systemPromptLabel": "系統提示詞","systemPromptPlaceholder": "選填。在您的對話之前以系統訊息傳送。",+ "showSettings": "顯示設定",+ "hideSettings": "隱藏設定",+ "samplingHeading": "取樣",+ "samplingHelp": "關閉時將套用提供者本身的預設值。只有您開啟的項目才會送出。",+ "samplingDefault": "預設",+ "temperature": "溫度",+ "topP": "Top P",+ "maxTokens": "最大 Token 數","errorTitle": "請求失敗","attach": "附加檔案","attachTooMany": "每則訊息最多可附加 {count} 個檔案。",@@ -659,6 +677,24 @@"noVisionBadge": "無圖像","visionWarning": "{model} 不接受圖像。請選擇視覺模型或「自動」。"},+ "playgroundSessions": {+ "heading": "對話",+ "newConversation": "新增對話",+ "showSidebar": "顯示對話",+ "hideSidebar": "隱藏對話",+ "empty": "尚無已儲存的對話。",+ "untitled": "未命名對話",+ "rename": "重新命名",+ "renamePlaceholder": "對話名稱",+ "messageCount": "{count} 則訊息",+ "justNow": "剛剛",+ "minutesAgo": "{count} 分鐘前",+ "hoursAgo": "{count} 小時前",+ "daysAgo": "{count} 天前",+ "loadFailed": "無法開啟該對話。",+ "renameFailed": "無法重新命名該對話。",+ "deleteFailed": "無法刪除該對話。"+ },"embeddings": {"title": "模型","description": "嵌入模型只在同一系列內備援:同一模型可由另一個提供者提供。不同模型的向量不相容,因此路由器絕不會在請求中途切換模型。",diff --git a/client/src/lib/model-scope-selection.test.ts b/client/src/lib/model-scope-selection.test.tsnew file mode 100644index 00000000..94983805--- /dev/null+++ b/client/src/lib/model-scope-selection.test.ts@@ -0,0 +1,140 @@+import { describe, expect, it } from 'vitest'+import {+ MODEL_PICKER_MIN_MODELS,+ resolveScopeUpdate,+ scopeCandidates,+ shouldOfferModelPicker,+ type ScopeCandidate,+} from './model-scope-selection'+import type { FallbackEntry } from './routing'++function entry(platform: string, modelId: string, extra: Partial<FallbackEntry> = {}): FallbackEntry {+ return {+ modelDbId: 1,+ priority: 1,+ effectivePriority: 1,+ penalty: 0,+ rateLimitHits: 0,+ enabled: true,+ platform,+ modelId,+ displayName: modelId.toUpperCase(),+ intelligenceRank: 50,+ speedRank: 50,+ sizeLabel: 'Large',+ rpmLimit: null,+ rpdLimit: null,+ monthlyTokenBudget: '',+ supportsVision: false,+ supportsTools: true,+ keyCount: 1,+ ...extra,+ }+}++function candidates(...ids: string[]): ScopeCandidate[] {+ return ids.map(modelId => ({ modelId, displayName: modelId, sizeLabel: null, contextWindow: null }))+}++describe('scopeCandidates (#657 post-add picker)', () => {+ const entries = [+ entry('groq', 'llama-3.3-70b'),+ entry('cerebras', 'qwen-3-32b'),+ entry('groq', 'kimi-k2', { displayName: 'Kimi K2', sizeLabel: 'Frontier', contextWindow: 262144 }),+ ]++ it('keeps only the named platform, in server order', () => {+ expect(scopeCandidates(entries, 'groq').map(c => c.modelId)).toEqual(['llama-3.3-70b', 'kimi-k2'])+ })++ it('carries the display name, tier and context the picker badges', () => {+ expect(scopeCandidates(entries, 'groq')[1]).toEqual({+ modelId: 'kimi-k2',+ displayName: 'Kimi K2',+ sizeLabel: 'Frontier',+ contextWindow: 262144,+ })+ })++ it('falls back to the model id when the catalog has no display name', () => {+ const rows = scopeCandidates([entry('groq', 'bare', { displayName: '' })], 'groq')+ expect(rows[0].displayName).toBe('bare')+ })++ it('normalises a missing tier/context to null', () => {+ const rows = scopeCandidates([entry('groq', 'x', { sizeLabel: '', contextWindow: undefined })], 'groq')+ expect(rows[0]).toMatchObject({ sizeLabel: null, contextWindow: null })+ })++ it('collapses duplicate model ids — modelScope matches on id alone', () => {+ const dupes = [entry('groq', 'dup'), entry('groq', 'dup'), entry('groq', 'other')]+ expect(scopeCandidates(dupes, 'groq').map(c => c.modelId)).toEqual(['dup', 'other'])+ })++ it('offers nothing for custom endpoints or an unnamed platform', () => {+ expect(scopeCandidates([entry('custom', 'local-qwen')], 'custom')).toEqual([])+ expect(scopeCandidates(entries, '')).toEqual([])+ })++ it('offers nothing when the model list has not loaded', () => {+ expect(scopeCandidates([], 'groq')).toEqual([])+ })+})++describe('shouldOfferModelPicker', () => {+ it('stays out of the way for a small catalog', () => {+ expect(shouldOfferModelPicker(candidates('a', 'b', 'c', 'd', 'e'))).toBe(false)+ })++ it('offers the picker once the catalog passes five models', () => {+ expect(shouldOfferModelPicker(candidates('a', 'b', 'c', 'd', 'e', 'f'))).toBe(true)+ })++ it('never offers an empty list', () => {+ expect(shouldOfferModelPicker([])).toBe(false)+ })++ it('draws the line at six', () => {+ expect(MODEL_PICKER_MIN_MODELS).toBe(6)+ })+})++describe('resolveScopeUpdate', () => {+ const all = ['a', 'b', 'c']++ it('saves nothing when every model is ticked — the scope stays null', () => {+ // A stored full list would freeze the key at today's catalog; null keeps+ // tomorrow's models flowing through it.+ expect(resolveScopeUpdate(all, new Set(all))).toEqual({ patch: false, reason: 'all' })+ })++ it('patches exactly the ticked ids for a subset', () => {+ expect(resolveScopeUpdate(all, new Set(['a', 'c']))).toEqual({ patch: true, modelScope: ['a', 'c'] })+ })++ it('emits the ids in catalog order, not tick order', () => {+ const update = resolveScopeUpdate(all, new Set(['c', 'a']))+ expect(update).toEqual({ patch: true, modelScope: ['a', 'c'] })+ })++ it('patches a single ticked model', () => {+ expect(resolveScopeUpdate(all, new Set(['b']))).toEqual({ patch: true, modelScope: ['b'] })+ })++ it('refuses to submit an empty selection', () => {+ // The server maps `modelScope: []` back to NULL = "serves everything", the+ // opposite of an empty tick list — so this never becomes a request. The+ // dialog also disables Confirm here.+ expect(resolveScopeUpdate(all, new Set())).toEqual({ patch: false, reason: 'empty' })+ })++ it('ignores ticks for ids no longer on offer', () => {+ expect(resolveScopeUpdate(all, new Set(['a', 'gone']))).toEqual({ patch: true, modelScope: ['a'] })+ // …including when the leftovers would otherwise fake a full selection.+ expect(resolveScopeUpdate(all, new Set(['a', 'b', 'c', 'gone']))).toEqual({ patch: false, reason: 'all' })+ })++ it('treats an empty catalog as nothing to save', () => {+ expect(resolveScopeUpdate([], new Set(['a']))).toEqual({ patch: false, reason: 'empty' })+ })+})diff --git a/client/src/lib/model-scope-selection.ts b/client/src/lib/model-scope-selection.tsnew file mode 100644index 00000000..cea4f6dc--- /dev/null+++ b/client/src/lib/model-scope-selection.ts@@ -0,0 +1,102 @@+// Pure logic behind the post-add model picker on the Keys page.+//+// A freshly pasted provider key serves EVERY model of its platform (#657:+// `model_scope_json` NULL = no scope). That is right for most people and wrong+// for anyone holding a relay-station key that only pays for a couple of model+// groups — and the only way to find out used to be a stream of 401s at routing+// time. So the moment a key lands for a platform with a big catalog, offer the+// list once.+//+// The two rules that make the offer safe to accept:+// * "everything ticked" must stay a NULL scope, never the full id list.+// A stored list freezes the key at today's catalog, so every model the+// catalog gains next month would silently bypass that key.+// * "nothing ticked" is not a scope. The server maps an empty array back to+// NULL (= serves everything), which is the exact opposite of what an empty+// tick list looks like it means, so the caller must refuse to submit it+// rather than send a request that quietly does the wrong thing.+//+// Kept out of the component so both rules are unit-testable without rendering.++import type { FallbackEntry } from './routing'++/** One row of the picker: a catalog model this key could be scoped to. */+export interface ScopeCandidate {+ /** The provider-side model id — what `modelScope` actually stores. */+ modelId: string+ displayName: string+ /** Catalog capability tier ('Frontier' | 'Large' | 'Medium' | 'Small'), or null. */+ sizeLabel: string | null+ contextWindow: number | null+}++/**+ * Below this many models the picker is pure friction: a provider serving three+ * models is trivially inspected on the Models page, and a dialog in the way of+ * "I just pasted a key" costs more than it saves. Six = "more than five".+ */+export const MODEL_PICKER_MIN_MODELS = 6++/**+ * The picker rows for one platform, taken from the `['fallback']` model list+ * the dashboard already holds — no extra endpoint, and no widening of the+ * POST /api/keys response.+ *+ * Order is left exactly as the server sent it (fallback priority, i.e. roughly+ * best-first), so the picker reads like the Models table rather than inventing+ * its own ranking. Duplicate model ids collapse to their first occurrence:+ * `modelScope` matches on model id alone, so two rows with one id could never+ * be ticked apart.+ */+export function scopeCandidates(+ entries: readonly FallbackEntry[],+ platform: string,+): ScopeCandidate[] {+ // 'custom' rows are per-endpoint, not per-platform — one custom key must+ // never be offered another endpoint's models.+ if (!platform || platform === 'custom') return []+ const seen = new Set<string>()+ const candidates: ScopeCandidate[] = []+ for (const entry of entries) {+ if (entry.platform !== platform) continue+ if (!entry.modelId || seen.has(entry.modelId)) continue+ seen.add(entry.modelId)+ candidates.push({+ modelId: entry.modelId,+ displayName: entry.displayName || entry.modelId,+ sizeLabel: entry.sizeLabel || null,+ contextWindow: entry.contextWindow ?? null,+ })+ }+ return candidates+}++/** Whether a just-added key on this platform is worth interrupting for. */+export function shouldOfferModelPicker(candidates: readonly ScopeCandidate[]): boolean {+ return candidates.length >= MODEL_PICKER_MIN_MODELS+}++/**+ * What confirming the picker should do.+ *+ * `patch: false` means "send nothing at all" — either every model is ticked+ * (the key already serves everything, and leaving the scope NULL keeps future+ * catalog additions flowing through it) or nothing is ticked (not expressible;+ * the caller disables Confirm, and this is the belt-and-braces half).+ */+export type ScopeUpdate =+ | { patch: false; reason: 'all' | 'empty' }+ | { patch: true; modelScope: string[] }++export function resolveScopeUpdate(+ allIds: readonly string[],+ selected: ReadonlySet<string>,+): ScopeUpdate {+ // Driven by `allIds`, not by the set: a tick left over from an id that is no+ // longer on offer must not end up in the saved scope, and must not inflate+ // the count that decides "is this everything?".+ const chosen = allIds.filter(id => selected.has(id))+ if (chosen.length === 0) return { patch: false, reason: 'empty' }+ if (chosen.length === allIds.length) return { patch: false, reason: 'all' }+ return { patch: true, modelScope: chosen }+}diff --git a/client/src/lib/playground-conversations.test.ts b/client/src/lib/playground-conversations.test.tsnew file mode 100644index 00000000..7bb43708--- /dev/null+++ b/client/src/lib/playground-conversations.test.ts@@ -0,0 +1,175 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'+import {+ ACTIVE_CONVERSATION_KEY,+ AUTO_TITLE_MAX,+ autoTitle,+ readActiveConversationId,+ relativeTime,+ toStoredMessages,+ writeActiveConversationId,+ type ChatMessage,+} from './playground-conversations'++describe('autoTitle', () => {+ it('names a conversation after its opening user message', () => {+ expect(autoTitle([+ { role: 'user', content: 'How do I rotate a key?' },+ { role: 'assistant', content: 'Open the Keys page…' },+ ])).toBe('How do I rotate a key?')+ })++ it('ignores an assistant message that somehow comes first', () => {+ expect(autoTitle([+ { role: 'assistant', content: 'Ready when you are' },+ { role: 'user', content: 'summarise this' },+ ])).toBe('summarise this')+ })++ it('truncates to a sidebar row and marks it with an ellipsis', () => {+ const title = autoTitle([{ role: 'user', content: 'x'.repeat(200) }])+ expect(title).toHaveLength(AUTO_TITLE_MAX)+ expect(title.endsWith('…')).toBe(true)+ })++ it('keeps a message of exactly the limit intact', () => {+ const content = 'y'.repeat(AUTO_TITLE_MAX)+ expect(autoTitle([{ role: 'user', content }])).toBe(content)+ })++ it('takes only the first line, so an inlined attachment never becomes the title', () => {+ expect(autoTitle([{+ role: 'user',+ content: 'what changed here?\n\n```notes.txt\nline one\nline two\n```',+ }])).toBe('what changed here?')+ })++ it('collapses runs of whitespace onto one row', () => {+ expect(autoTitle([{ role: 'user', content: ' spaced out words ' }])).toBe('spaced out words')+ })++ it('has nothing to name an empty or image-only opening turn after', () => {+ expect(autoTitle([])).toBe('')+ expect(autoTitle([{ role: 'user', content: '', images: ['data:image/png;base64,AA'] }])).toBe('')+ })+})++describe('toStoredMessages', () => {+ it('drops the in-flight streaming flags and nothing else', () => {+ const messages: ChatMessage[] = [+ { role: 'user', content: 'hi', images: ['data:image/png;base64,AA'] },+ {+ role: 'assistant',+ content: 'hello',+ reasoning: 'thinking',+ streaming: true,+ meta: {+ platform: 'groq',+ model: 'llama',+ latency: 42,+ fallbackAttempts: 1,+ fusionPanel: [{ platform: 'groq', model: 'a', status: 'ok', content: 'A' }],+ fusionJudge: { platform: 'cerebras', model: 'j' },+ fusionStreaming: true,+ },+ },+ ]++ const stored = toStoredMessages(messages)+ expect(stored[0]).toEqual(messages[0])+ expect(stored[1]).toEqual({+ role: 'assistant',+ content: 'hello',+ reasoning: 'thinking',+ meta: {+ platform: 'groq',+ model: 'llama',+ latency: 42,+ fallbackAttempts: 1,+ fusionPanel: [{ platform: 'groq', model: 'a', status: 'ok', content: 'A' }],+ fusionJudge: { platform: 'cerebras', model: 'j' },+ },+ })+ expect('streaming' in stored[1]).toBe(false)+ expect('fusionStreaming' in (stored[1].meta ?? {})).toBe(false)+ })++ it('leaves an error bubble and a meta-less message alone', () => {+ const messages: ChatMessage[] = [+ { role: 'assistant', content: 'boom', isError: true },+ { role: 'user', content: 'again' },+ ]+ expect(toStoredMessages(messages)).toEqual(messages)+ })++ it('does not mutate the live transcript', () => {+ const messages: ChatMessage[] = [{ role: 'assistant', content: 'x', streaming: true }]+ toStoredMessages(messages)+ expect(messages[0].streaming).toBe(true)+ })+})++describe('relativeTime', () => {+ const now = 1_700_000_000_000++ it('reads anything under a minute as just now', () => {+ expect(relativeTime(now, now)).toEqual({ key: 'justNow', count: 0 })+ expect(relativeTime(now - 59_000, now)).toEqual({ key: 'justNow', count: 0 })+ })++ it('steps through minutes, hours and days', () => {+ expect(relativeTime(now - 60_000, now)).toEqual({ key: 'minutesAgo', count: 1 })+ expect(relativeTime(now - 59 * 60_000, now)).toEqual({ key: 'minutesAgo', count: 59 })+ expect(relativeTime(now - 60 * 60_000, now)).toEqual({ key: 'hoursAgo', count: 1 })+ expect(relativeTime(now - 23 * 3_600_000, now)).toEqual({ key: 'hoursAgo', count: 23 })+ expect(relativeTime(now - 24 * 3_600_000, now)).toEqual({ key: 'daysAgo', count: 1 })+ expect(relativeTime(now - 400 * 86_400_000, now)).toEqual({ key: 'daysAgo', count: 400 })+ })++ it('does not report a future timestamp as negative time', () => {+ expect(relativeTime(now + 5 * 60_000, now)).toEqual({ key: 'justNow', count: 0 })+ })+})++// The tests run in the default node environment (no jsdom), so localStorage is+// stubbed by hand — enough of it for the three calls the helpers make.+function stubStorage(): Map<string, string> {+ const store = new Map<string, string>()+ vi.stubGlobal('localStorage', {+ getItem: (key: string) => store.get(key) ?? null,+ setItem: (key: string, value: string) => { store.set(key, value) },+ removeItem: (key: string) => { store.delete(key) },+ })+ return store+}++describe('active conversation id', () => {+ beforeEach(() => { stubStorage() })+ afterEach(() => vi.unstubAllGlobals())++ it('round-trips an id and clears it with null', () => {+ writeActiveConversationId(7)+ expect(readActiveConversationId()).toBe(7)++ writeActiveConversationId(null)+ expect(readActiveConversationId()).toBeNull()+ })++ it('treats junk in storage as no conversation', () => {+ const store = stubStorage()+ for (const raw of ['', 'abc', '0', '-3', '1.5']) {+ store.set(ACTIVE_CONVERSATION_KEY, raw)+ expect(readActiveConversationId(), raw).toBeNull()+ }+ })++ it('survives storage that throws (private mode)', () => {+ vi.stubGlobal('localStorage', {+ getItem: () => { throw new Error('denied') },+ setItem: () => { throw new Error('denied') },+ removeItem: () => { throw new Error('denied') },+ })+ expect(readActiveConversationId()).toBeNull()+ expect(() => writeActiveConversationId(3)).not.toThrow()+ expect(() => writeActiveConversationId(null)).not.toThrow()+ })+})diff --git a/client/src/lib/playground-conversations.ts b/client/src/lib/playground-conversations.tsnew file mode 100644index 00000000..9f0169cb--- /dev/null+++ b/client/src/lib/playground-conversations.ts@@ -0,0 +1,194 @@+// Saved Playground conversations: the shapes the transcript is stored in, the+// pure helpers the sidebar renders with, and thin wrappers over+// /api/conversations.+//+// Everything derivable (the auto-title, the relative time, what is safe to+// persist) lives here as a plain function so it can be unit-tested without a+// component — the page below only wires it up.++// Relative, not the `@/` alias: the unit tests run under the standalone+// vitest config, which does not carry the app's path aliases.+import { apiFetch } from './api'++export interface FusionPanelEntry {+ platform: string+ model: string+ status?: 'ok' | 'failed'+ content?: string+ error?: string+}++/**+ * One bubble in the Playground transcript. Persisted verbatim (minus+ * `streaming`, see `toStoredMessages`) so a restored conversation renders+ * identically to the live one: routing meta, reasoning and image thumbnails+ * included.+ */+export interface ChatMessage {+ role: 'user' | 'assistant'+ content: string+ // Data URIs of the images attached to this turn: rendered as thumbnails in+ // the bubble and replayed as `image_url` parts on every follow-up request.+ images?: string[]+ // Request-level failure rendered as a distinct error bubble, not a fake+ // assistant reply.+ isError?: boolean+ // Thinking tokens (`delta.reasoning_content`) accumulated separately from the+ // answer, shown as a collapsible aside above it.+ reasoning?: string+ // True while this bubble is still being filled in by an open stream. Never+ // stored — a saved message is finished by definition.+ streaming?: boolean+ meta?: {+ platform?: string+ model?: string+ latency?: number+ fallbackAttempts?: number+ // Fusion responses: the panel models (with their answers, for the+ // collapsible trace) and the judge that synthesized them (null when not+ // synthesized — single survivor / best_of). `fusionStreaming` is true while+ // panel/judge frames are still arriving.+ fusionPanel?: FusionPanelEntry[]+ fusionJudge?: { platform: string; model: string } | null+ fusionStreaming?: boolean+ }+}++/** Sidebar row: enough to list a conversation, never its transcript. */+export interface ConversationSummary {+ id: number+ title: string+ model: string | null+ messageCount: number+ createdAt: number+ updatedAt: number+}++/** A conversation with its transcript, as returned by GET /:id. */+export interface Conversation extends Omit<ConversationSummary, 'messageCount'> {+ messages: ChatMessage[]+ systemPrompt: string | null+}++export interface ConversationPatch {+ title?: string+ messages?: ChatMessage[]+ model?: string | null+ systemPrompt?: string | null+}++/** localStorage key holding the conversation the Playground had open. */+export const ACTIVE_CONVERSATION_KEY = 'playground.conversationId'+/** localStorage key holding whether the conversation sidebar is expanded. */+export const SIDEBAR_OPEN_KEY = 'playground.sidebarOpen'++/** Roughly a sidebar row's worth of text. */+export const AUTO_TITLE_MAX = 40++/**+ * The title a conversation gets on its first save: the opening user message,+ * first line only, squeezed onto one row. Returns '' when there is nothing to+ * name it after yet — the caller then leaves the stored title empty, and the+ * next save gets another go at it.+ *+ * Only ever applied to a conversation with no title, so a rename sticks+ * permanently: once the title is non-empty nothing recomputes it.+ */+export function autoTitle(messages: ChatMessage[]): string {+ const first = messages.find(m => m.role === 'user')+ if (!first) return ''+ // Attachments are appended to the typed text as fenced blocks, so the first+ // line is the part the person actually wrote.+ const line = first.content.split('\n').map(s => s.trim()).find(Boolean) ?? ''+ const text = line.replace(/\s+/g, ' ').trim()+ if (text.length <= AUTO_TITLE_MAX) return text+ return `${text.slice(0, AUTO_TITLE_MAX - 1).trimEnd()}…`+}++/**+ * Drop the in-flight-only fields before a save. `streaming` marks a bubble the+ * reader is still filling in; storing it would restore a transcript frozen+ * mid-answer, and the same goes for the fusion trace's own streaming flag.+ */+export function toStoredMessages(messages: ChatMessage[]): ChatMessage[] {+ return messages.map(message => {+ const stored: ChatMessage = { ...message }+ delete stored.streaming+ if (stored.meta && stored.meta.fusionStreaming !== undefined) {+ stored.meta = { ...stored.meta }+ delete stored.meta.fusionStreaming+ }+ return stored+ })+}++export type RelativeTimeKey = 'justNow' | 'minutesAgo' | 'hoursAgo' | 'daysAgo'++const MINUTE = 60_000+const HOUR = 60 * MINUTE+const DAY = 24 * HOUR++/**+ * Coarse "how long ago" for a sidebar row, as an i18n key plus its count —+ * formatting stays in the component so every locale writes its own phrasing.+ * Anything under a minute (a clock skewed into the future included) is "just+ * now"; beyond that it steps minutes → hours → days and stops, because a+ * conversation from last March does not need its own unit.+ */+export function relativeTime(timestamp: number, now: number = Date.now()): {+ key: RelativeTimeKey+ count: number+} {+ const elapsed = Math.max(0, now - timestamp)+ if (elapsed < MINUTE) return { key: 'justNow', count: 0 }+ if (elapsed < HOUR) return { key: 'minutesAgo', count: Math.floor(elapsed / MINUTE) }+ if (elapsed < DAY) return { key: 'hoursAgo', count: Math.floor(elapsed / HOUR) }+ return { key: 'daysAgo', count: Math.floor(elapsed / DAY) }+}++/** The stored active-conversation id, or null when there isn't a usable one. */+export function readActiveConversationId(): number | null {+ try {+ const raw = localStorage.getItem(ACTIVE_CONVERSATION_KEY)+ if (!raw) return null+ const id = Number(raw)+ return Number.isInteger(id) && id > 0 ? id : null+ } catch {+ return null+ }+}++export function writeActiveConversationId(id: number | null): void {+ try {+ if (id === null) localStorage.removeItem(ACTIVE_CONVERSATION_KEY)+ else localStorage.setItem(ACTIVE_CONVERSATION_KEY, String(id))+ } catch {+ // Private-mode / quota failures are not worth breaking a chat over.+ }+}++export function listConversations(): Promise<ConversationSummary[]> {+ return apiFetch<ConversationSummary[]>('/api/conversations')+}++export function getConversation(id: number): Promise<Conversation> {+ return apiFetch<Conversation>(`/api/conversations/${id}`)+}++export function createConversation(patch: ConversationPatch): Promise<Conversation> {+ return apiFetch<Conversation>('/api/conversations', {+ method: 'POST',+ body: JSON.stringify(patch),+ })+}++export function updateConversation(id: number, patch: ConversationPatch): Promise<Conversation> {+ return apiFetch<Conversation>(`/api/conversations/${id}`, {+ method: 'PUT',+ body: JSON.stringify(patch),+ })+}++export function deleteConversation(id: number): Promise<{ success: boolean }> {+ return apiFetch<{ success: boolean }>(`/api/conversations/${id}`, { method: 'DELETE' })+}diff --git a/client/src/lib/playground-sampling.test.ts b/client/src/lib/playground-sampling.test.tsnew file mode 100644index 00000000..46376982--- /dev/null+++ b/client/src/lib/playground-sampling.test.ts@@ -0,0 +1,150 @@+import { describe, expect, it } from 'vitest'+import {+ DEFAULT_SAMPLING,+ clampSampling,+ formatSamplingValue,+ normalizeSampling,+ parseSampling,+ samplingActiveCount,+ samplingRequestParams,+ serializeSampling,+ setSamplingEnabled,+ setSamplingValue,+ type SamplingSettings,+} from './playground-sampling'++const on = (settings: SamplingSettings, field: keyof SamplingSettings, value: number) =>+ setSamplingEnabled(setSamplingValue(settings, field, value), field, true)++describe('clampSampling', () => {+ it('holds each knob inside the range the proxy accepts', () => {+ expect(clampSampling('temperature', -1)).toBe(0)+ expect(clampSampling('temperature', 9)).toBe(2)+ expect(clampSampling('topP', -0.5)).toBe(0)+ expect(clampSampling('topP', 4)).toBe(1)+ expect(clampSampling('maxTokens', 0)).toBe(1)+ expect(clampSampling('maxTokens', -20)).toBe(1)+ })++ it('snaps to the step and keeps float noise out of the request', () => {+ expect(clampSampling('temperature', 0.30000000000000004)).toBe(0.3)+ expect(clampSampling('temperature', 0.74)).toBe(0.7)+ expect(clampSampling('temperature', 0.76)).toBe(0.8)+ expect(clampSampling('topP', 0.93)).toBe(0.95)+ expect(clampSampling('maxTokens', 1024.6)).toBe(1025)+ })++ it('falls back to the default for anything that is not a number', () => {+ expect(clampSampling('temperature', Number.NaN)).toBe(DEFAULT_SAMPLING.temperature.value)+ expect(clampSampling('topP', Number.POSITIVE_INFINITY)).toBe(DEFAULT_SAMPLING.topP.value)+ expect(clampSampling('maxTokens', Number.NaN)).toBe(DEFAULT_SAMPLING.maxTokens.value)+ })+})++describe('formatSamplingValue', () => {+ it('prints each knob at its own precision', () => {+ expect(formatSamplingValue('temperature', 0.7)).toBe('0.7')+ expect(formatSamplingValue('temperature', 2)).toBe('2.0')+ expect(formatSamplingValue('topP', 1)).toBe('1.00')+ expect(formatSamplingValue('topP', 0.05)).toBe('0.05')+ expect(formatSamplingValue('maxTokens', 512)).toBe('512')+ })+})++describe('setSamplingValue / setSamplingEnabled', () => {+ it('clamps on the way in and never mutates the input', () => {+ const next = setSamplingValue(DEFAULT_SAMPLING, 'temperature', 5)+ expect(next.temperature.value).toBe(2)+ expect(DEFAULT_SAMPLING.temperature.value).toBe(1)+ expect(next.topP).toEqual(DEFAULT_SAMPLING.topP)+ })++ it('keeps the dialled-in value when a knob is switched off', () => {+ const tuned = on(DEFAULT_SAMPLING, 'temperature', 0.2)+ const off = setSamplingEnabled(tuned, 'temperature', false)+ expect(off.temperature).toEqual({ enabled: false, value: 0.2 })+ expect(setSamplingEnabled(off, 'temperature', true).temperature.value).toBe(0.2)+ })+})++describe('samplingRequestParams', () => {+ it('sends nothing at all while every knob is off', () => {+ expect(samplingRequestParams(DEFAULT_SAMPLING)).toEqual({})+ expect(samplingActiveCount(DEFAULT_SAMPLING)).toBe(0)+ })++ it('sends only the enabled knobs, under their OpenAI names', () => {+ const settings = on(on(DEFAULT_SAMPLING, 'temperature', 0.3), 'maxTokens', 256)+ expect(samplingRequestParams(settings)).toEqual({ temperature: 0.3, max_tokens: 256 })+ expect(samplingActiveCount(settings)).toBe(2)+ })++ it('sends a deliberate zero — off and "0" are different requests', () => {+ const settings = on(DEFAULT_SAMPLING, 'temperature', 0)+ expect(samplingRequestParams(settings)).toEqual({ temperature: 0 })+ expect('temperature' in samplingRequestParams(settings)).toBe(true)+ })++ it('clamps a stored value that drifted out of range before sending it', () => {+ const settings: SamplingSettings = {+ ...DEFAULT_SAMPLING,+ topP: { enabled: true, value: 12 },+ }+ expect(samplingRequestParams(settings)).toEqual({ top_p: 1 })+ })++ it('maps all three knobs at once', () => {+ const settings = on(on(on(DEFAULT_SAMPLING, 'temperature', 1.5), 'topP', 0.9), 'maxTokens', 4096)+ expect(samplingRequestParams(settings)).toEqual({+ temperature: 1.5,+ top_p: 0.9,+ max_tokens: 4096,+ })+ })+})++describe('parseSampling', () => {+ it('reads back exactly what serializeSampling wrote', () => {+ const settings = on(on(DEFAULT_SAMPLING, 'topP', 0.85), 'maxTokens', 2048)+ expect(parseSampling(serializeSampling(settings))).toEqual(settings)+ })++ it('falls back to the defaults for a missing or unreadable entry', () => {+ expect(parseSampling(null)).toEqual(DEFAULT_SAMPLING)+ expect(parseSampling('')).toEqual(DEFAULT_SAMPLING)+ expect(parseSampling('{not json')).toEqual(DEFAULT_SAMPLING)+ expect(parseSampling('42')).toEqual(DEFAULT_SAMPLING)+ expect(parseSampling('null')).toEqual(DEFAULT_SAMPLING)+ })++ it('fills in the knobs a partial entry is missing', () => {+ expect(parseSampling('{"temperature":{"enabled":true,"value":0.4}}')).toEqual({+ temperature: { enabled: true, value: 0.4 },+ topP: DEFAULT_SAMPLING.topP,+ maxTokens: DEFAULT_SAMPLING.maxTokens,+ })+ })++ it('treats anything but a literal true as off', () => {+ const parsed = parseSampling('{"temperature":{"enabled":"yes","value":0.4}}')+ expect(parsed.temperature).toEqual({ enabled: false, value: 0.4 })+ expect(samplingRequestParams(parsed)).toEqual({})+ })++ it('repairs values that are the wrong type or out of range', () => {+ const parsed = parseSampling(+ '{"temperature":{"enabled":true,"value":"hot"},"topP":{"enabled":true,"value":7},"maxTokens":{"enabled":true,"value":-3}}',+ )+ expect(parsed.temperature.value).toBe(DEFAULT_SAMPLING.temperature.value)+ expect(parsed.topP.value).toBe(1)+ expect(parsed.maxTokens.value).toBe(1)+ })+})++describe('normalizeSampling', () => {+ it('accepts any shape and always returns all three knobs', () => {+ expect(normalizeSampling(undefined)).toEqual(DEFAULT_SAMPLING)+ expect(normalizeSampling('nonsense')).toEqual(DEFAULT_SAMPLING)+ expect(normalizeSampling({ temperature: 3 })).toEqual(DEFAULT_SAMPLING)+ })+})diff --git a/client/src/lib/playground-sampling.ts b/client/src/lib/playground-sampling.tsnew file mode 100644index 00000000..d1dab239--- /dev/null+++ b/client/src/lib/playground-sampling.ts@@ -0,0 +1,206 @@+// The Playground's sampling knobs: temperature, top_p and max_tokens, as the+// settings rail edits them and as /v1/chat/completions receives them.+//+// Every control is opt-in. Until you switch one on the request body carries no+// field for it at all and the provider's own default applies — "unset" and+// "set to something that happens to look like the default" are genuinely+// different requests, and 0 is a meaningful temperature, so the stored shape+// keeps an explicit `enabled` flag beside a remembered value rather than+// overloading null. Switching a control off therefore keeps the number you had+// dialled in, ready for the next time you switch it back on.+//+// Pure on purpose (bar the two localStorage wrappers at the bottom): clamping,+// (de)serialisation and the request fragment are all testable without a+// component, which is where the interesting edge cases live.+//+// No `@/` alias here: the unit tests run under the standalone vitest config,+// which does not carry the app's path aliases.++/** localStorage key holding the Playground's sampling settings. */+export const SAMPLING_KEY = 'playground.sampling'++export interface SamplingRange {+ min: number+ max: number+ step: number+}++/** One knob: whether it is sent at all, and the value it would be sent with. */+export interface SamplingControl {+ enabled: boolean+ value: number+}++export interface SamplingSettings {+ temperature: SamplingControl+ topP: SamplingControl+ maxTokens: SamplingControl+}++export type SamplingField = keyof SamplingSettings++/**+ * Bounds mirror the Zod schema on POST /v1/chat/completions (temperature+ * 0–2, top_p 0–1, max_tokens a positive integer). The server stays the+ * authority; these just keep the rail from composing a request it knows will+ * be refused. The max_tokens ceiling is a sanity bound for the number box, not+ * a provider limit.+ */+export const SAMPLING_RANGES: Record<SamplingField, SamplingRange> = {+ temperature: { min: 0, max: 2, step: 0.1 },+ topP: { min: 0, max: 1, step: 0.05 },+ maxTokens: { min: 1, max: 1_000_000, step: 1 },+}++/** The request field each control maps onto, in OpenAI's spelling. */+export const SAMPLING_REQUEST_FIELDS: Record<SamplingField, 'temperature' | 'top_p' | 'max_tokens'> = {+ temperature: 'temperature',+ topP: 'top_p',+ maxTokens: 'max_tokens',+}++/** Everything off, with the value each knob starts at once switched on. */+export const DEFAULT_SAMPLING: SamplingSettings = {+ temperature: { enabled: false, value: 1 },+ topP: { enabled: false, value: 1 },+ maxTokens: { enabled: false, value: 1024 },+}++/** Render order for the rail; also the order the request fields are assembled in. */+export const SAMPLING_FIELDS: SamplingField[] = ['temperature', 'topP', 'maxTokens']++/** The request fragment for a set of settings — only the enabled knobs. */+export interface SamplingRequestParams {+ temperature?: number+ top_p?: number+ max_tokens?: number+}++function decimalsFor(step: number): number {+ const text = String(step)+ const dot = text.indexOf('.')+ return dot === -1 ? 0 : text.length - dot - 1+}++/**+ * Bring a value inside its range and onto its step, then off the float noise+ * that 0.1-sized steps produce (0.30000000000000004 is not a temperature).+ */+export function clampSampling(field: SamplingField, value: number): number {+ const range = SAMPLING_RANGES[field]+ if (!Number.isFinite(value)) return DEFAULT_SAMPLING[field].value+ const bounded = Math.min(range.max, Math.max(range.min, value))+ const steps = Math.round((bounded - range.min) / range.step)+ const snapped = range.min + steps * range.step+ return Number(snapped.toFixed(decimalsFor(range.step)))+}++/** The value as the rail prints it next to the slider. */+export function formatSamplingValue(field: SamplingField, value: number): string {+ return clampSampling(field, value).toFixed(decimalsFor(SAMPLING_RANGES[field].step))+}++/** Copy with one knob's value replaced (clamped); never mutates the input. */+export function setSamplingValue(+ settings: SamplingSettings,+ field: SamplingField,+ value: number,+): SamplingSettings {+ return {+ ...settings,+ [field]: { ...settings[field], value: clampSampling(field, value) },+ }+}++/** Copy with one knob switched on/off; the dialled-in value is kept either way. */+export function setSamplingEnabled(+ settings: SamplingSettings,+ field: SamplingField,+ enabled: boolean,+): SamplingSettings {+ return {+ ...settings,+ [field]: { ...settings[field], enabled },+ }+}++function parseControl(raw: unknown, field: SamplingField): SamplingControl {+ const fallback = DEFAULT_SAMPLING[field]+ if (!raw || typeof raw !== 'object') return { ...fallback }+ const control = raw as { enabled?: unknown; value?: unknown }+ return {+ // Anything but a literal true reads as off: a half-written entry must not+ // start silently steering completions.+ enabled: control.enabled === true,+ value: typeof control.value === 'number'+ ? clampSampling(field, control.value)+ : fallback.value,+ }+}++/**+ * Read settings back out of storage. Total tolerance by design — a corrupt,+ * truncated or older entry costs you your knobs, never the Playground.+ */+export function parseSampling(raw: string | null | undefined): SamplingSettings {+ if (!raw) return normalizeSampling(null)+ try {+ return normalizeSampling(JSON.parse(raw))+ } catch {+ return normalizeSampling(null)+ }+}++/** Every field forced back into shape and range, whatever `source` really is. */+export function normalizeSampling(source: unknown): SamplingSettings {+ const record = source && typeof source === 'object'+ ? source as Record<string, unknown>+ : undefined+ return {+ temperature: parseControl(record?.temperature, 'temperature'),+ topP: parseControl(record?.topP, 'topP'),+ maxTokens: parseControl(record?.maxTokens, 'maxTokens'),+ }+}++export function serializeSampling(settings: SamplingSettings): string {+ return JSON.stringify(normalizeSampling(settings))+}++/**+ * The knobs to merge into a /v1/chat/completions body. Only enabled controls+ * appear, so an untouched rail sends exactly the request it sent before this+ * feature existed.+ */+export function samplingRequestParams(settings: SamplingSettings): SamplingRequestParams {+ const params: SamplingRequestParams = {}+ for (const field of SAMPLING_FIELDS) {+ const control = settings[field]+ if (!control.enabled) continue+ params[SAMPLING_REQUEST_FIELDS[field]] = clampSampling(field, control.value)+ }+ return params+}++/** True when at least one knob is being sent — the rail badges itself with it. */+export function samplingActiveCount(settings: SamplingSettings): number {+ return SAMPLING_FIELDS.filter(field => settings[field].enabled).length+}++export function readSampling(): SamplingSettings {+ try {+ return parseSampling(localStorage.getItem(SAMPLING_KEY))+ } catch {+ // Private-mode / disabled storage: run with the defaults rather than+ // taking the page down.+ return normalizeSampling(null)+ }+}++export function writeSampling(settings: SamplingSettings): void {+ try {+ localStorage.setItem(SAMPLING_KEY, serializeSampling(settings))+ } catch {+ // Nothing to do and nothing worth interrupting the user for.+ }+}diff --git a/client/src/pages/PlaygroundPage.tsx b/client/src/pages/PlaygroundPage.tsxindex 81658abd..6c63a41d 100644--- a/client/src/pages/PlaygroundPage.tsx+++ b/client/src/pages/PlaygroundPage.tsx@@ -1,11 +1,9 @@import { useState, useRef, useEffect } from 'react'-import { useQuery } from '@tanstack/react-query'+import { useQuery, useQueryClient } from '@tanstack/react-query'import { ChevronRight, CircleAlert, FileText, Paperclip, X } from 'lucide-react'import { apiFetch } from '@/lib/api'import { Button } from '@/components/ui/button'-import { ModelCombobox } from '@/components/model-combobox'import { buildModelOptions } from '@/lib/model-groups'-import { PageHeader } from '@/components/page-header'import { Markdown } from '@/components/markdown'import { CopyButton } from '@/components/copy-button'import { toast } from '@/lib/toast'@@ -27,6 +25,29 @@ import {type Attachment,} from '@/lib/attachments'import { readChatStream } from '@/lib/playground-stream'+import { ConversationSidebar } from '@/components/playground/conversation-sidebar'+import { SettingsRail } from '@/components/playground/settings-rail'+import {+ readSampling,+ samplingRequestParams,+ writeSampling,+ type SamplingSettings,+} from '@/lib/playground-sampling'+import {+ SIDEBAR_OPEN_KEY,+ autoTitle,+ createConversation,+ deleteConversation,+ getConversation,+ listConversations,+ readActiveConversationId,+ toStoredMessages,+ updateConversation,+ writeActiveConversationId,+ type ChatMessage,+ type ConversationSummary,+ type FusionPanelEntry,+} from '@/lib/playground-conversations'import { useI18n } from '@/i18n'interface FallbackEntry {@@ -43,42 +64,9 @@ interface FallbackEntry {keyCount: number}-interface ChatMessage {- role: 'user' | 'assistant'- content: string- // Data URIs of the images attached to this turn: rendered as thumbnails in- // the bubble and replayed as `image_url` parts on every follow-up request.- images?: string[]- // Request-level failure rendered as a distinct error bubble, not a fake- // assistant reply.- isError?: boolean- // Thinking tokens (`delta.reasoning_content`) accumulated separately from the- // answer, shown as a collapsible aside above it.- reasoning?: string- // True while this bubble is still being filled in by an open stream.- streaming?: boolean- meta?: {- platform?: string- model?: string- latency?: number- fallbackAttempts?: number- // Fusion responses: the panel models (with their answers, for the- // collapsible trace) and the judge that synthesized them (null when not- // synthesized — single survivor / best_of). `fusionStreaming` is true while- // panel/judge frames are still arriving.- fusionPanel?: FusionPanelEntry[]- fusionJudge?: { platform: string; model: string } | null- fusionStreaming?: boolean- }-}--interface FusionPanelEntry {- platform: string- model: string- status?: 'ok' | 'failed'- content?: string- error?: string-}+// ChatMessage / FusionPanelEntry now live in lib/playground-conversations.ts:+// the transcript is persisted, so its shape is shared with the storage layer+// rather than owned by this component.// Render a fusion panel/judge entry as "platform/model", but avoid doubling// the provider when the model id already carries it (e.g. openrouter/owl-alpha,@@ -175,6 +163,20 @@ function ReasoningTrace({ text, answerStarted }: { text: string; answerStarted?:// keeps the follow from dropping out on a stray trackpad nudge.const SCROLL_FOLLOW_SLACK = 40+/** localStorage key holding whether the right-hand settings rail is expanded. */+const SETTINGS_OPEN_KEY = 'playground.settingsOpen'++// Both rails plus the chat need room the small breakpoints do not have: three+// columns on a phone leave the transcript a sliver. So below lg a visit starts+// with the rails collapsed to their strips whatever a desktop session+// remembered — the toggles still work, the remembered choice just isn't+// restored until there is width for it.+function initialRailOpen(key: string): boolean {+ if (typeof window === 'undefined') return true+ if (!window.matchMedia('(min-width: 1024px)').matches) return false+ return localStorage.getItem(key) !== 'false'+}+export default function PlaygroundPage() {const { t } = useI18n()const [messages, setMessages] = useState<ChatMessage[]>([])@@ -184,13 +186,20 @@ export default function PlaygroundPage() {const [systemPrompt, setSystemPrompt] = useState<string>(() => localStorage.getItem('playground.systemPrompt') ?? '',)- const [systemPromptOpen, setSystemPromptOpen] = useState<boolean>(- () => !!localStorage.getItem('playground.systemPrompt'),- )const updateSystemPrompt = (v: string) => {setSystemPrompt(v)localStorage.setItem('playground.systemPrompt', v)}+ // Sampling knobs (temperature / top_p / max_tokens), edited in the settings+ // rail. Every one is opt-in, so an untouched rail composes exactly the+ // request the Playground sent before they existed. Remembered in+ // localStorage, NOT on the conversation row — these are how YOU like to+ // drive the Playground, not part of a saved transcript.+ const [sampling, setSampling] = useState<SamplingSettings>(() => readSampling())+ const updateSampling = (next: SamplingSettings) => {+ setSampling(next)+ writeSampling(next)+ }const [input, setInput] = useState('')const [loading, setLoading] = useState(false)const [selectedModel, setSelectedModel] = useState<string>(@@ -213,6 +222,30 @@ export default function PlaygroundPage() {// again, or navigates away mid-stream.const abortRef = useRef<AbortController | null>(null)+ // ---- Saved conversations -------------------------------------------------+ // The transcript lives on the server now. `conversationId` is the row this+ // page is writing to; null means "nothing sent yet", and no row exists until+ // the first message — a fresh visit still opens on an empty transcript.+ const queryClient = useQueryClient()+ const [conversationId, setConversationId] = useState<number | null>(null)+ const [sidebarOpen, setSidebarOpen] = useState<boolean>(() => initialRailOpen(SIDEBAR_OPEN_KEY))+ const [settingsOpen, setSettingsOpen] = useState<boolean>(() => initialRailOpen(SETTINGS_OPEN_KEY))+ // Mirrors of state the async save paths read AFTER their closure was made:+ // a stream that started before the row existed still has to save into it.+ const conversationIdRef = useRef<number | null>(null)+ const titleRef = useRef('')+ // Memoised create, so two saves racing at the start of a conversation (a+ // fast first answer and a quick second question) cannot mint two rows.+ const createRef = useRef<Promise<number | null> | null>(null)++ const { data: conversations = [] } = useQuery<ConversationSummary[]>({+ queryKey: ['playground-conversations'],+ queryFn: listConversations,+ })+ const refreshConversations = () => {+ queryClient.invalidateQueries({ queryKey: ['playground-conversations'] })+ }+const { data: keyData } = useQuery<{ apiKey: string }>({queryKey: ['unified-key'],queryFn: () => apiFetch('/api/settings/api-key'),@@ -271,6 +304,177 @@ export default function PlaygroundPage() {// setMessages on an unmounted tree (and hold the socket open).useEffect(() => () => abortRef.current?.abort(), [])+ // Adopt a conversation the server just handed back as the one this page is+ // writing to, and remember it for the next reload.+ const adoptConversation = (id: number, title: string) => {+ conversationIdRef.current = id+ titleRef.current = title+ setConversationId(id)+ writeActiveConversationId(id)+ }++ // The id to save into, creating the row on the first message. Returns null+ // when the create failed — saving is best-effort, never something that costs+ // you the answer on screen.+ const conversationIdFor = (msgs: ChatMessage[]): Promise<number | null> => {+ if (conversationIdRef.current !== null) return Promise.resolve(conversationIdRef.current)+ if (!createRef.current) {+ createRef.current = createConversation({+ title: autoTitle(msgs),+ messages: toStoredMessages(msgs),+ model: selectedModel,+ systemPrompt: systemPrompt.trim() || null,+ })+ .then(created => {+ adoptConversation(created.id, created.title)+ refreshConversations()+ return created.id+ })+ .catch(err => {+ // Let the next completed exchange try again rather than wedging the+ // page on one bad request.+ createRef.current = null+ console.error('[playground] could not create the conversation', err)+ return null+ })+ }+ return createRef.current+ }++ // Save the whole conversation — transcript, title, model, system prompt — in+ // one PUT. Called when a response FINISHES (never per delta) and on+ // rename/clear. A failure is logged and dropped: the transcript on screen is+ // the source of truth, and the next exchange saves it again.+ const persistConversation = async (msgs: ChatMessage[]) => {+ const id = await conversationIdFor(msgs)+ if (id === null) return+ try {+ const saved = await updateConversation(id, {+ // Auto-title once, from the opening question; a rename makes the title+ // non-empty for good, so it is never recomputed over.+ title: titleRef.current || autoTitle(msgs),+ messages: toStoredMessages(msgs),+ model: selectedModel,+ systemPrompt: systemPrompt.trim() || null,+ })+ if (conversationIdRef.current === id) titleRef.current = saved.title+ refreshConversations()+ } catch (err) {+ console.error('[playground] could not save the conversation', err)+ }+ }++ // Drop everything tied to the current conversation. Shared by "new+ // conversation", "clear", and a stored id that no longer exists.+ const resetConversationState = () => {+ abortRef.current?.abort()+ abortRef.current = null+ conversationIdRef.current = null+ titleRef.current = ''+ createRef.current = null+ setConversationId(null)+ writeActiveConversationId(null)+ setMessages([])+ setAttachments([])+ followRef.current = true+ }++ // Save whatever is on screen before it goes away — leaving a conversation+ // mid-stream should keep the part that had already arrived. The last+ // completed exchange saved itself; this only ever adds to that.+ const flushCurrentConversation = () => {+ if (messages.length > 0) void persistConversation(messages)+ }++ // Switch to a saved conversation: transcript, model and system prompt all+ // come back, so you land exactly where you left it.+ const openConversation = async (id: number) => {+ abortRef.current?.abort()+ abortRef.current = null+ const conversation = await getConversation(id)+ createRef.current = null+ setMessages(conversation.messages)+ setAttachments([])+ pickModel(conversation.model ?? 'auto')+ updateSystemPrompt(conversation.systemPrompt ?? '')+ adoptConversation(conversation.id, conversation.title)+ followRef.current = true+ inputRef.current?.focus()+ }++ const handleSelectConversation = (id: number) => {+ if (id === conversationIdRef.current) return+ flushCurrentConversation()+ openConversation(id).catch(err => {+ console.error('[playground] could not open the conversation', err)+ toast.error(t('playgroundSessions.loadFailed'))+ refreshConversations()+ })+ }++ // "New conversation" and "Clear" are the same move now: bank the current+ // transcript, then start with a blank one. The old chat stays in the sidebar.+ const handleNewConversation = () => {+ flushCurrentConversation()+ resetConversationState()+ inputRef.current?.focus()+ }++ const handleRenameConversation = (id: number, title: string) => {+ // Title only: a rename must not race the transcript of an in-flight answer+ // away, which is exactly what re-sending messages here would risk.+ updateConversation(id, { title })+ .then(saved => {+ if (conversationIdRef.current === id) titleRef.current = saved.title+ refreshConversations()+ })+ .catch(err => {+ console.error('[playground] could not rename the conversation', err)+ toast.error(t('playgroundSessions.renameFailed'))+ })+ }++ const handleDeleteConversation = (id: number) => {+ deleteConversation(id)+ .then(() => {+ // Deleting the open one leaves the Playground on a blank slate, the+ // same state a first-ever visit gets.+ if (conversationIdRef.current === id) resetConversationState()+ refreshConversations()+ })+ .catch(err => {+ console.error('[playground] could not delete the conversation', err)+ toast.error(t('playgroundSessions.deleteFailed'))+ })+ }++ const toggleSidebar = () => {+ setSidebarOpen(open => {+ localStorage.setItem(SIDEBAR_OPEN_KEY, String(!open))+ return !open+ })+ }++ const toggleSettings = () => {+ setSettingsOpen(open => {+ localStorage.setItem(SETTINGS_OPEN_KEY, String(!open))+ return !open+ })+ }++ // Reopen whatever was on screen before the reload. A stored id that no longer+ // exists (deleted in another tab) just falls back to an empty transcript.+ useEffect(() => {+ const stored = readActiveConversationId()+ if (stored === null) return+ // The state it sets lands after the fetch resolves, not during this body —+ // restoring the session IS synchronising React with an external system.+ // eslint-disable-next-line react-hooks/set-state-in-effect+ openConversation(stored).catch(() => writeActiveConversationId(null))+ // Mount only: this restores the session, it does not track later changes.+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [])+// Read a fusion SSE stream, updating the assistant message in place as panel// answers + the judge arrive (additive `_fusion` frames) and the final answer// streams as content deltas.@@ -282,12 +486,16 @@ export default function PlaygroundPage() {const panel: FusionPanelEntry[] = []let judge: { platform: string; model: string } | null = null- const flush = (streaming: boolean) => {- setMessages([...baseMessages, {+ // Returns the transcript it rendered, so the final flush can hand the+ // finished exchange straight to the save without rebuilding it.+ const flush = (streaming: boolean): ChatMessage[] => {+ const next: ChatMessage[] = [...baseMessages, {role: 'assistant',content: finalContent,meta: { latency: Date.now() - start, fusionPanel: [...panel], fusionJudge: judge, fusionStreaming: streaming },- }])+ }]+ setMessages(next)+ return next}flush(true)@@ -320,7 +528,8 @@ export default function PlaygroundPage() {}}}- flush(false)+ // The exchange is complete: one save, here, never per delta.+ await persistConversation(flush(false))}// Read a plain (non-fusion) OpenAI chat stream, filling the assistant bubble@@ -342,7 +551,9 @@ export default function PlaygroundPage() {let reasoning = ''let failure: string | null = null- const flush = (streaming: boolean) => {+ // Returns the transcript it rendered, so the final flush can hand the+ // finished exchange straight to the save without rebuilding it.+ const flush = (streaming: boolean): ChatMessage[] => {const next: ChatMessage[] = [...baseMessages]// A stream that broke before the first token has nothing to show but the// error; one that broke halfway keeps what it managed to say.@@ -362,6 +573,7 @@ export default function PlaygroundPage() {}if (failure !== null) next.push({ role: 'assistant', isError: true, content: failure })setMessages(next)+ return next}await readChatStream(stream, {@@ -369,7 +581,8 @@ export default function PlaygroundPage() {onReasoning: text => { reasoning += text; flush(true) },onError: message => { failure = message; flush(true) },})- flush(false)+ // The exchange is complete: one save, here, never per delta.+ await persistConversation(flush(false))}// Stage dropped/pasted/picked files. Every rejection is reported by name so a@@ -439,6 +652,12 @@ export default function PlaygroundPage() {setLoading(true)inputRef.current?.focus()+ // The server row is born HERE — with the first message, not on arrival at+ // the page — so a visit that sends nothing leaves no trace in the sidebar.+ // Not awaited: the create runs alongside the completion, and every save+ // below waits on the same memoised promise.+ void conversationIdFor(newMessages)+try {const headers: Record<string, string> = { 'Content-Type': 'application/json' }if (keyData?.apiKey) headers['Authorization'] = `Bearer ${keyData.apiKey}`@@ -450,6 +669,10 @@ export default function PlaygroundPage() {...(sysPrompt ? [{ role: 'system', content: sysPrompt }] : []),...newMessages.map(m => ({ role: m.role, content: toMessageContent(m.content, m.images) })),],+ // Only the knobs switched on in the settings rail: temperature, top_p+ // and max_tokens, spelled as /v1/chat/completions parses them. An+ // untouched rail adds nothing at all, leaving provider defaults alone.+ ...samplingRequestParams(sampling),}if (selectedModel !== 'auto') body.model = selectedModel// Everything streams: fusion so you can watch the panel and the judge@@ -476,11 +699,15 @@ export default function PlaygroundPage() {if (!res.ok) {const err = await res.json().catch(() => ({ error: { message: `HTTP ${res.status}` } }))- setMessages([...newMessages, {+ // A refused request still ends an exchange, and the question that+ // provoked it is worth keeping — save the error bubble along with it.+ const failed: ChatMessage[] = [...newMessages, {role: 'assistant',isError: true,content: err.error?.message ?? t('common.unknownError'),- }])+ }]+ setMessages(failed)+ await persistConversation(failed)return}@@ -512,7 +739,7 @@ export default function PlaygroundPage() {| { panel: { platform: string; model: string }[]; judge: { platform: string; model: string } | null }| undefined- setMessages([...newMessages, {+ const answered: ChatMessage[] = [...newMessages, {role: 'assistant',content,meta: {@@ -523,17 +750,21 @@ export default function PlaygroundPage() {fusionPanel: fusion?.panel,fusionJudge: fusion?.judge,},- }])+ }]+ setMessages(answered)+ await persistConversation(answered)} catch (err: any) {// Clearing the chat (or leaving the page) aborts the stream on purpose —// that is not a failure to report, and the transcript it belonged to is// already gone.if (err?.name === 'AbortError') return- setMessages([...newMessages, {+ const failed: ChatMessage[] = [...newMessages, {role: 'assistant',isError: true,content: err.message,- }])+ }]+ setMessages(failed)+ await persistConversation(failed)} finally {setLoading(false)setTimeout(() => inputRef.current?.focus(), 0)@@ -547,16 +778,11 @@ export default function PlaygroundPage() {}}- const handleClear = () => {- // Clearing mid-stream has to stop the stream too, or its next frame would- // paste the half-finished answer back into the empty transcript.- abortRef.current?.abort()- abortRef.current = null- setMessages([])- setAttachments([])- followRef.current = true- inputRef.current?.focus()- }+ // "Clear" no longer throws the chat away: it starts a NEW conversation and+ // 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@@ -564,7 +790,7 @@ export default function PlaygroundPage() {// per-provider, not global, so tier-first matches the server's preset; #135.)const pickerOptions = [{ value: 'auto', label: t('playground.autoModel'), sub: '', isNew: false, platforms: [] as string[] },- { value: 'fusion', label: t('playground.fusionModel'), sub: '', isNew: true, platforms: [] as string[] },+ { value: 'fusion', label: t('playground.fusionModel'), sub: '', isNew: false, platforms: [] as string[] },...modelOptions.slice().sort((a, b) =>@@ -597,38 +823,41 @@ export default function PlaygroundPage() {: modelOptions.find(o => o.value === selectedModel)?.label ?? selectedModelreturn (- <div className="flex flex-col h-[calc(100vh-8rem)]">- <PageHeader- title={t('playground.title')}- description={t('playground.description')}- actions={- <>- <ModelCombobox- value={selectedModel}- options={pickerOptions}- onSelect={pickModel}- ariaLabel={t('playground.selectModel')}- placeholder={t('playground.searchModels')}- emptyText={t('playground.noModelsFound')}- footer={- availableModels.length === 0 ? (- // Models only appear once a platform has an enabled key. Without- // one, the list is just Auto/Fusion and looks broken — say why. (#269)- <div className="px-2 py-1.5 text-xs text-muted-foreground">{t('playground.noModels')}</div>- ) : undefined- }- />- {messages.length > 0 && (- <Button variant="outline" size="sm" onClick={handleClear}>- {t('playground.clear')}- </Button>- )}- </>- }+ // Three columns, edge to edge: conversations, the chat, the settings rail.+ // The page is a flex child of the shell's full-bleed container, so it is+ // exactly as tall as what the navbar leaves and nothing here scrolls except+ // 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">+ <ConversationSidebar+ conversations={conversations}+ activeId={conversationId}+ open={sidebarOpen}+ onToggle={toggleSidebar}+ onNew={handleNewConversation}+ onSelect={handleSelectConversation}+ onRename={handleRenameConversation}+ onDelete={handleDeleteConversation}/>- <div className="flex-1 flex flex-col rounded-3xl border bg-card overflow-hidden min-h-0">- <div ref={transcriptRef} className="flex-1 overflow-y-auto p-6 space-y-4">+ <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">{messages.length === 0 ? (<div className="flex items-center justify-center h-full text-center"><div className="space-y-2 max-w-sm">@@ -770,26 +999,6 @@ export default function PlaygroundPage() {addFiles([...e.dataTransfer.files])}}>- <div className="mb-2">- <button- type="button"- onClick={() => setSystemPromptOpen(o => !o)}- className="flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"- >- <ChevronRight className={`size-3.5 transition-transform ${systemPromptOpen ? 'rotate-90' : ''}`} />- {t('playground.systemPromptLabel')}- {systemPrompt.trim() && <span className="ml-1 size-1.5 rounded-full bg-primary/70" />}- </button>- {systemPromptOpen && (- <textarea- value={systemPrompt}- onChange={e => updateSystemPrompt(e.target.value)}- placeholder={t('playground.systemPromptPlaceholder')}- rows={2}- className="mt-1.5 w-full resize-y rounded-lg border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring/50 min-h-[44px] max-h-[160px]"- />- )}- </div>{attachments.length > 0 && (<div className="mb-2 flex flex-wrap gap-2">{attachments.map(a => (@@ -868,6 +1077,22 @@ export default function PlaygroundPage() {</div></div></div>++ {/* Last column, and last in the DOM on purpose: the system prompt textarea+ it carries must never come before the composer's, which is what a+ plain `textarea` selector reaches for. */}+ <SettingsRail+ open={settingsOpen}+ onToggle={toggleSettings}+ modelValue={selectedModel}+ modelOptions={pickerOptions}+ onSelectModel={pickModel}+ noModels={availableModels.length === 0}+ systemPrompt={systemPrompt}+ onSystemPromptChange={updateSystemPrompt}+ sampling={sampling}+ onSamplingChange={updateSampling}+ /></div>)}diff --git a/server/src/__tests__/db/migrate/roundtrip.test.ts b/server/src/__tests__/db/migrate/roundtrip.test.tsindex d18cd194..acb3f9d5 100644--- a/server/src/__tests__/db/migrate/roundtrip.test.ts+++ b/server/src/__tests__/db/migrate/roundtrip.test.ts@@ -26,6 +26,7 @@ const CUSTOM_ENDPOINT_HOST_LABELS_FILENAME = '20260802_000001_custom_endpoint_hoconst KEY_MODEL_SCOPE_FILENAME = '20260805_000001_key_model_scope.ts';const CLIENT_PROFILES_FILENAME = '20260805_000002_client_profiles.ts';const API_KEY_PROXY_FILENAME = '20260810_000001_api_key_proxy.ts';+const PLAYGROUND_CONVERSATIONS_FILENAME = '20260820_000001_playground_conversations.ts';interface SchemaRow {type: string;@@ -98,6 +99,7 @@ describe('migration round trip', () => {KEY_MODEL_SCOPE_FILENAME,CLIENT_PROFILES_FILENAME,API_KEY_PROXY_FILENAME,+ PLAYGROUND_CONVERSATIONS_FILENAME,]);} finally {db.close();diff --git a/server/src/__tests__/routes/conversations.test.ts b/server/src/__tests__/routes/conversations.test.tsnew file mode 100644index 00000000..9411e193--- /dev/null+++ b/server/src/__tests__/routes/conversations.test.ts@@ -0,0 +1,259 @@+import { describe, it, expect, beforeAll, beforeEach } from 'vitest';+import type { Express } from 'express';+import { createApp } from '../../app.js';+import { initDb, getDb, getUnifiedApiKey } from '../../db/index.js';+import { mintDashboardToken } from '../helpers/auth.js';+import { MAX_MESSAGES_BYTES } from '../../routes/conversations.js';++// Playground conversation storage: the sidebar's list/load/save/delete surface.+// Same in-memory DB + minted dashboard session as the other admin route suites.++async function request(+ app: Express,+ method: string,+ path: string,+ opts: { body?: unknown; token?: string } = {},+) {+ const server = app.listen(0, '127.0.0.1');+ if (!server.listening) await new Promise<void>(resolve => server.once('listening', () => resolve()));+ const addr = server.address() as any;+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, {+ method,+ headers: {+ ...(opts.body !== undefined ? { 'Content-Type': 'application/json' } : {}),+ ...(opts.token ? { Authorization: `Bearer ${opts.token}` } : {}),+ },+ body: opts.body !== undefined ? JSON.stringify(opts.body) : undefined,+ });+ const body = await res.json().catch(() => null);+ server.close();+ return { status: res.status, body };+}++const USER_TURN = { role: 'user', content: 'hi' };+const ASSISTANT_TURN = {+ role: 'assistant',+ content: 'hello',+ reasoning: 'thinking about it',+ meta: {+ platform: 'groq',+ model: 'llama-3.3-70b',+ latency: 812,+ fallbackAttempts: 1,+ fusionPanel: [{ platform: 'groq', model: 'a', status: 'ok', content: 'A' }],+ fusionJudge: { platform: 'cerebras', model: 'j' },+ },+};++describe('playground conversations', () => {+ let app: Express;+ let dashToken: string;+ let unifiedKey: string;++ beforeAll(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ app = createApp();+ unifiedKey = getUnifiedApiKey();+ dashToken = mintDashboardToken('[email protected]');+ });++ beforeEach(() => {+ getDb().prepare('DELETE FROM playground_conversations').run();+ });++ async function create(body: unknown = {}) {+ const res = await request(app, 'POST', '/api/conversations', { token: dashToken, body });+ expect(res.status).toBe(201);+ return res.body;+ }++ describe('CRUD', () => {+ it('creates an empty conversation and hands back its id', async () => {+ const created = await create();+ expect(created.id).toBeGreaterThan(0);+ expect(created.title).toBe('');+ expect(created.messages).toEqual([]);+ expect(created.model).toBeNull();+ expect(created.systemPrompt).toBeNull();+ expect(created.createdAt).toBeGreaterThan(0);+ expect(created.updatedAt).toBe(created.createdAt);+ });++ it('creates a conversation with its opening state in one call', async () => {+ const created = await create({+ title: 'First question',+ messages: [USER_TURN],+ model: 'fusion',+ systemPrompt: 'be terse',+ });+ const fetched = await request(app, 'GET', `/api/conversations/${created.id}`, { token: dashToken });+ expect(fetched.status).toBe(200);+ expect(fetched.body).toMatchObject({+ title: 'First question',+ model: 'fusion',+ systemPrompt: 'be terse',+ });+ expect(fetched.body.messages).toEqual([USER_TURN]);+ });++ it('round-trips routing meta, reasoning and images verbatim', async () => {+ const messages = [+ { ...USER_TURN, images: ['data:image/png;base64,AAAA'] },+ ASSISTANT_TURN,+ { role: 'assistant', content: 'boom', isError: true },+ ];+ const created = await create({ messages });+ const fetched = await request(app, 'GET', `/api/conversations/${created.id}`, { token: dashToken });+ expect(fetched.body.messages).toEqual(messages);+ });++ it('drops the transient streaming flag — a stored message is finished', async () => {+ const created = await create({ messages: [{ role: 'assistant', content: 'half', streaming: true }] });+ expect(created.messages[0]).toEqual({ role: 'assistant', content: 'half' });+ });++ it('lists summaries without message bodies, newest first', async () => {+ const older = await create({ title: 'older', messages: [USER_TURN] });+ const newer = await create({ title: 'newer', messages: [USER_TURN, ASSISTANT_TURN] });+ // Same-millisecond creates are entirely possible in-memory; the id+ // tiebreaker is what makes the order deterministic.+ const list = await request(app, 'GET', '/api/conversations', { token: dashToken });++ expect(list.status).toBe(200);+ expect(list.body.map((c: any) => c.id)).toEqual([newer.id, older.id]);+ expect(list.body[0]).toMatchObject({ title: 'newer', messageCount: 2 });+ expect(list.body[1]).toMatchObject({ title: 'older', messageCount: 1 });+ // No transcript crosses the wire on the list endpoint.+ expect(JSON.stringify(list.body)).not.toContain('hello');+ for (const summary of list.body) expect(summary.messages).toBeUndefined();+ });++ it('a PUT replaces the transcript and bumps updatedAt', async () => {+ const created = await create({ title: 'draft', messages: [USER_TURN] });+ const saved = await request(app, 'PUT', `/api/conversations/${created.id}`, {+ token: dashToken,+ body: { title: 'answered', messages: [USER_TURN, ASSISTANT_TURN], model: 'auto', systemPrompt: 'be terse' },+ });++ expect(saved.status).toBe(200);+ expect(saved.body.title).toBe('answered');+ expect(saved.body.messages).toHaveLength(2);+ expect(saved.body.model).toBe('auto');+ expect(saved.body.systemPrompt).toBe('be terse');+ expect(saved.body.updatedAt).toBeGreaterThanOrEqual(created.updatedAt);+ // createdAt is immutable — it orders nothing, but it dates the row.+ expect(saved.body.createdAt).toBe(created.createdAt);+ });++ it('a PUT that omits a field leaves it untouched (rename does not resend the transcript)', async () => {+ const created = await create({ messages: [USER_TURN, ASSISTANT_TURN], model: 'auto', systemPrompt: 'sp' });+ const renamed = await request(app, 'PUT', `/api/conversations/${created.id}`, {+ token: dashToken, body: { title: 'My chat' },+ });++ expect(renamed.status).toBe(200);+ expect(renamed.body.title).toBe('My chat');+ expect(renamed.body.messages).toHaveLength(2);+ expect(renamed.body.model).toBe('auto');+ expect(renamed.body.systemPrompt).toBe('sp');+ });++ it('null clears the model and system prompt', async () => {+ const created = await create({ model: 'auto', systemPrompt: 'sp' });+ const cleared = await request(app, 'PUT', `/api/conversations/${created.id}`, {+ token: dashToken, body: { model: null, systemPrompt: null },+ });+ expect(cleared.body.model).toBeNull();+ expect(cleared.body.systemPrompt).toBeNull();+ });++ it('deletes a conversation and 404s afterwards', async () => {+ const created = await create({ messages: [USER_TURN] });+ const del = await request(app, 'DELETE', `/api/conversations/${created.id}`, { token: dashToken });+ expect(del.status).toBe(200);+ expect(del.body).toEqual({ success: true });++ expect((await request(app, 'GET', `/api/conversations/${created.id}`, { token: dashToken })).status).toBe(404);+ expect((await request(app, 'DELETE', `/api/conversations/${created.id}`, { token: dashToken })).status).toBe(404);+ expect((await request(app, 'PUT', `/api/conversations/${created.id}`, {+ token: dashToken, body: { title: 'gone' },+ })).status).toBe(404);+ });+ });++ describe('validation', () => {+ it('rejects a non-numeric id with 400, not 404', async () => {+ const { status } = await request(app, 'GET', '/api/conversations/not-an-id', { token: dashToken });+ expect(status).toBe(400);+ });++ it('rejects a malformed transcript', async () => {+ for (const messages of [+ [{ role: 'system', content: 'nope' }],+ [{ role: 'user' }],+ [{ role: 'user', content: 42 }],+ 'not-an-array',+ ]) {+ const { status } = await request(app, 'POST', '/api/conversations', {+ token: dashToken, body: { messages },+ });+ expect(status, JSON.stringify(messages)).toBe(400);+ }+ });++ it('rejects unknown top-level fields', async () => {+ const { status } = await request(app, 'POST', '/api/conversations', {+ token: dashToken, body: { nope: true },+ });+ expect(status).toBe(400);+ });++ it('413s an oversized transcript with a clear error instead of truncating', async () => {+ const messages = [{ role: 'user', content: 'x'.repeat(MAX_MESSAGES_BYTES + 1024) }];+ const created = await create({ messages: [USER_TURN] });++ const post = await request(app, 'POST', '/api/conversations', { token: dashToken, body: { messages } });+ expect(post.status).toBe(413);+ expect(post.body.error.type).toBe('conversation_too_large');+ expect(post.body.error.message).toMatch(/too large/i);++ const put = await request(app, 'PUT', `/api/conversations/${created.id}`, { token: dashToken, body: { messages } });+ expect(put.status).toBe(413);++ // The refused write left the stored conversation exactly as it was.+ const fetched = await request(app, 'GET', `/api/conversations/${created.id}`, { token: dashToken });+ expect(fetched.body.messages).toEqual([USER_TURN]);+ });++ it('accepts a transcript just under the cap', async () => {+ // JSON overhead around the one message is ~40 bytes; stay clear of it.+ const messages = [{ role: 'user', content: 'x'.repeat(MAX_MESSAGES_BYTES - 1024) }];+ const { status } = await request(app, 'POST', '/api/conversations', { token: dashToken, body: { messages } });+ expect(status).toBe(201);+ });+ });++ describe('auth', () => {+ it('requires a dashboard session on every method', async () => {+ const created = await create();+ for (const [method, path, body] of [+ ['GET', '/api/conversations', undefined],+ ['GET', `/api/conversations/${created.id}`, undefined],+ ['POST', '/api/conversations', {}],+ ['PUT', `/api/conversations/${created.id}`, { title: 'x' }],+ ['DELETE', `/api/conversations/${created.id}`, undefined],+ ] as const) {+ const { status } = await request(app, method, path, { body });+ expect(status, `${method} ${path} unauthenticated`).toBe(401);+ }+ // Still there: none of the unauthenticated calls took effect.+ expect((await request(app, 'GET', `/api/conversations/${created.id}`, { token: dashToken })).status).toBe(200);+ });++ it('the unified /v1 key does not open the conversations API', async () => {+ const { status } = await request(app, 'GET', '/api/conversations', { token: unifiedKey });+ expect(status).toBe(401);+ });+ });+});diff --git a/server/src/app.ts b/server/src/app.tsindex 86d04216..bb1ea75e 100644--- a/server/src/app.ts+++ b/server/src/app.ts@@ -6,6 +6,7 @@ import path from 'path';import { fileURLToPath } from 'url';import { keysRouter } from './routes/keys.js';import { clientProfilesRouter } from './routes/client-profiles.js';+import { conversationsRouter } from './routes/conversations.js';import { modelsRouter } from './routes/models.js';import { proxyRouter } from './routes/proxy.js';import { responsesRouter } from './routes/responses.js';@@ -228,6 +229,9 @@ export function createApp(config?: Config) {// /api — the profile keys it mints authenticate only the /v1 inference// surface and are never valid here.app.use('/api/client-profiles', requireAuth, clientProfilesRouter);+ // Saved Playground transcripts (the chat sidebar). Dashboard-session gated+ // like every other admin route; the unified /v1 key does not open it.+ app.use('/api/conversations', requireAuth, conversationsRouter);app.use('/api/models', requireAuth, modelsRouter);app.use('/api/profiles', requireAuth, profilesRouter);app.use('/api/fallback', requireAuth, fallbackRouter);diff --git a/server/src/db/migrate/defaults.ts b/server/src/db/migrate/defaults.tsindex cec4b27b..98e1e9d2 100644--- a/server/src/db/migrate/defaults.ts+++ b/server/src/db/migrate/defaults.ts@@ -21,6 +21,7 @@ import * as customEndpointHostLabels from '../migrations/20260802_000001_custom_import * as keyModelScope from '../migrations/20260805_000001_key_model_scope.js';import * as clientProfiles from '../migrations/20260805_000002_client_profiles.js';import * as apiKeyProxy from '../migrations/20260810_000001_api_key_proxy.js';+import * as playgroundConversations from '../migrations/20260820_000001_playground_conversations.js';export interface MigrationModule {up(db: Db): void;@@ -54,6 +55,7 @@ export const CUSTOM_ENDPOINT_HOST_LABELS_FILENAME = '20260802_000001_custom_endpexport const KEY_MODEL_SCOPE_FILENAME = '20260805_000001_key_model_scope.ts';export const CLIENT_PROFILES_FILENAME = '20260805_000002_client_profiles.ts';export const API_KEY_PROXY_FILENAME = '20260810_000001_api_key_proxy.ts';+export const PLAYGROUND_CONVERSATIONS_FILENAME = '20260820_000001_playground_conversations.ts';export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: LEGACY_BASELINE_FILENAME, module: legacyBaseline },@@ -78,4 +80,5 @@ export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: KEY_MODEL_SCOPE_FILENAME, module: keyModelScope },{ filename: CLIENT_PROFILES_FILENAME, module: clientProfiles },{ filename: API_KEY_PROXY_FILENAME, module: apiKeyProxy },+ { filename: PLAYGROUND_CONVERSATIONS_FILENAME, module: playgroundConversations },];diff --git a/server/src/db/migrations/20260820_000001_playground_conversations.ts b/server/src/db/migrations/20260820_000001_playground_conversations.tsnew file mode 100644index 00000000..b58c905c--- /dev/null+++ b/server/src/db/migrations/20260820_000001_playground_conversations.ts@@ -0,0 +1,50 @@+// Migration: persistent Playground conversations+// Created: 2026-08-20+//+// DOWN: reversible+//+// The Playground transcript used to live only in React state: a reload, a+// navigation away, or the "Clear" button threw the whole conversation away.+// This table gives it a home. One row per conversation, no user scoping —+// this is a single-user dashboard, and the existing `sessions` table is the+// dashboard LOGIN session (token_hash -> user), nothing to do with chats.+//+// messages_json holds the entire ChatMessage[] the page renders, `meta`+// routing info and `reasoning` included, so a restored transcript looks+// exactly like the live one rather than a lossy replay. It is deliberately a+// single opaque blob: the dashboard is the only reader, the shape is the+// client's, and normalising turns into rows would buy nothing but joins.+// The router caps writes well below any practical SQLite limit.+//+// model is the picker selection at the time of the conversation ('auto',+// 'fusion', or a canonical model id) and system_prompt its optional system+// message, so switching conversations restores the whole setup, not just the+// text. Timestamps are epoch milliseconds (like sessions.expires_at_ms)+// because the sidebar renders them as relative times in the browser's clock.++import type { Db } from '../types.js';++export function up(db: Db): void {+ db.exec(`+ CREATE TABLE IF NOT EXISTS playground_conversations (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ title TEXT NOT NULL DEFAULT '',+ messages_json TEXT NOT NULL DEFAULT '[]',+ model TEXT,+ system_prompt TEXT,+ created_at_ms INTEGER NOT NULL,+ updated_at_ms INTEGER NOT NULL+ );++ -- The sidebar's only query: most recently touched first.+ CREATE INDEX IF NOT EXISTS idx_playground_conversations_updated+ ON playground_conversations(updated_at_ms DESC);+ `);+}++export function down(db: Db): void {+ db.exec(`+ DROP INDEX IF EXISTS idx_playground_conversations_updated;+ DROP TABLE IF EXISTS playground_conversations;+ `);+}diff --git a/server/src/routes/conversations.ts b/server/src/routes/conversations.tsnew file mode 100644index 00000000..a83ec0ad--- /dev/null+++ b/server/src/routes/conversations.ts@@ -0,0 +1,263 @@+import { Router } from 'express';+import type { Request, Response } from 'express';+import { z } from 'zod';+import { getDb } from '../db/index.js';++// Playground conversation storage, mounted under /api/conversations behind the+// dashboard session gate like every other admin route. The Playground page is+// the only client: it lists conversations in its sidebar (summaries, no+// bodies), loads one when you switch to it, and PUTs the whole transcript back+// after each completed exchange.+//+// The transcript is stored as the client's own ChatMessage[] — `meta` routing+// info and `reasoning` included — so a restored conversation renders exactly+// like the live one. Validation is therefore shape-checking, not+// normalisation: unknown keys are stripped, everything the page draws survives.++export const conversationsRouter = Router();++const MAX_TITLE_LEN = 200;+// A conversation is prose plus, occasionally, inlined image data URIs. 2 MB of+// serialised JSON is far more than any readable chat and still small enough to+// hand back on every switch without thinking about it. Over that we refuse the+// write rather than silently truncating someone's history.+export const MAX_MESSAGES_BYTES = 2 * 1024 * 1024;++// Mirrors the client's ChatMessage. Kept permissive on `content` (an empty+// assistant bubble is legitimate mid-fusion) and strict on `role`, which is the+// one field the renderer branches on.+const metaSchema = z.object({+ platform: z.string().optional(),+ model: z.string().optional(),+ latency: z.number().optional(),+ fallbackAttempts: z.number().optional(),+ fusionPanel: z.array(z.object({+ platform: z.string(),+ model: z.string(),+ status: z.enum(['ok', 'failed']).optional(),+ content: z.string().optional(),+ error: z.string().optional(),+ })).optional(),+ fusionJudge: z.object({ platform: z.string(), model: z.string() }).nullable().optional(),+});++const messageSchema = z.object({+ role: z.enum(['user', 'assistant']),+ content: z.string(),+ images: z.array(z.string()).optional(),+ isError: z.boolean().optional(),+ reasoning: z.string().optional(),+ meta: metaSchema.optional(),+});+// `streaming: true` is deliberately absent above (and so stripped): a stored+// message is finished by definition, and persisting the flag would restore a+// transcript stuck mid-answer.++const messagesSchema = z.array(messageSchema);++// 'auto', 'fusion', or a canonical model id — whatever the picker held. Not+// enumerated: the catalog changes under us, and a conversation pinned to a+// model that has since gone away should still load.+const modelSchema = z.string().max(200).nullable();+const systemPromptSchema = z.string().max(32_000).nullable();++const createSchema = z.object({+ title: z.string().max(MAX_TITLE_LEN).optional(),+ messages: messagesSchema.optional(),+ model: modelSchema.optional(),+ systemPrompt: systemPromptSchema.optional(),+}).strict();++// PUT is a full upsert of the mutable state: every field the page owns, written+// in one statement. Fields left out keep their stored value, so a rename does+// not have to re-send the transcript (and cannot race one away).+const updateSchema = z.object({+ title: z.string().max(MAX_TITLE_LEN).optional(),+ messages: messagesSchema.optional(),+ model: modelSchema.optional(),+ systemPrompt: systemPromptSchema.optional(),+}).strict();++interface ConversationRow {+ id: number;+ title: string;+ messages_json: string;+ model: string | null;+ system_prompt: string | null;+ created_at_ms: number;+ updated_at_ms: number;+}++interface SummaryRow {+ id: number;+ title: string;+ model: string | null;+ message_count: number | null;+ created_at_ms: number;+ updated_at_ms: number;+}++function toJson(row: ConversationRow) {+ return {+ id: row.id,+ title: row.title,+ // Stored JSON is only ever written from a validated array, so a parse+ // failure means the row was corrupted outside this router: hand back an+ // empty transcript rather than 500-ing the whole sidebar.+ messages: parseMessages(row.messages_json),+ model: row.model,+ systemPrompt: row.system_prompt,+ createdAt: row.created_at_ms,+ updatedAt: row.updated_at_ms,+ };+}++function parseMessages(json: string): unknown[] {+ try {+ const parsed = JSON.parse(json);+ return Array.isArray(parsed) ? parsed : [];+ } catch {+ return [];+ }+}++function getConversation(id: number): ConversationRow | undefined {+ return getDb()+ .prepare('SELECT * FROM playground_conversations WHERE id = ?')+ .get(id) as ConversationRow | undefined;+}++function parseId(req: Request, res: Response): number | null {+ const id = Number(req.params.id);+ if (!Number.isInteger(id) || id <= 0) {+ res.status(400).json({ error: { message: 'Invalid conversation id' } });+ return null;+ }+ return id;+}++function notFound(res: Response): void {+ res.status(404).json({ error: { message: 'Conversation not found' } });+}++/**+ * Serialise a validated transcript, refusing anything past the storage cap.+ * Returns null after answering with a 413 so callers can `return` on it.+ */+function serialiseMessages(messages: unknown[], res: Response): string | null {+ const json = JSON.stringify(messages);+ const bytes = Buffer.byteLength(json, 'utf8');+ if (bytes > MAX_MESSAGES_BYTES) {+ res.status(413).json({+ error: {+ message:+ `Conversation is too large to save (${Math.round(bytes / 1024)} KB; the limit is ` ++ `${Math.round(MAX_MESSAGES_BYTES / 1024)} KB). Start a new conversation to keep going.`,+ type: 'conversation_too_large',+ },+ });+ return null;+ }+ return json;+}++// Summaries for the sidebar: no message bodies cross the wire, so the list stays+// small no matter how long the conversations are. json_array_length reads the+// count straight out of the stored blob (SQLite's JSON1, present in both the+// better-sqlite3 and node:sqlite drivers) instead of parsing every transcript.+conversationsRouter.get('/', (_req: Request, res: Response) => {+ const rows = getDb().prepare(`+ SELECT id,+ title,+ model,+ json_array_length(messages_json) AS message_count,+ created_at_ms,+ updated_at_ms+ FROM playground_conversations+ ORDER BY updated_at_ms DESC, id DESC+ `).all() as SummaryRow[];+ res.json(rows.map(row => ({+ id: row.id,+ title: row.title,+ model: row.model,+ messageCount: row.message_count ?? 0,+ createdAt: row.created_at_ms,+ updatedAt: row.updated_at_ms,+ })));+});++conversationsRouter.get('/:id', (req: Request, res: Response) => {+ const id = parseId(req, res);+ if (id === null) return;+ const row = getConversation(id);+ if (!row) return notFound(res);+ res.json(toJson(row));+});++conversationsRouter.post('/', (req: Request, res: Response) => {+ const parsed = createSchema.safeParse(req.body ?? {});+ if (!parsed.success) {+ res.status(400).json({ error: { message: 'Invalid conversation' } });+ return;+ }+ const messagesJson = serialiseMessages(parsed.data.messages ?? [], res);+ if (messagesJson === null) return;++ const now = Date.now();+ const info = getDb().prepare(`+ INSERT INTO playground_conversations+ (title, messages_json, model, system_prompt, created_at_ms, updated_at_ms)+ VALUES (?, ?, ?, ?, ?, ?)+ `).run(+ parsed.data.title ?? '',+ messagesJson,+ parsed.data.model ?? null,+ parsed.data.systemPrompt ?? null,+ now,+ now,+ );+ res.status(201).json(toJson(getConversation(Number(info.lastInsertRowid))!));+});++conversationsRouter.put('/:id', (req: Request, res: Response) => {+ const id = parseId(req, res);+ if (id === null) return;+ const parsed = updateSchema.safeParse(req.body ?? {});+ if (!parsed.success) {+ res.status(400).json({ error: { message: 'Invalid conversation update' } });+ return;+ }+ const row = getConversation(id);+ if (!row) return notFound(res);++ const { title, messages, model, systemPrompt } = parsed.data;+ const messagesJson = messages === undefined+ ? row.messages_json+ : serialiseMessages(messages, res);+ if (messagesJson === null) return;++ // One statement for the whole conversation: title, transcript, model and+ // system prompt always move together, so a save can never leave a row half+ // updated (the transcript of one exchange under the title of another).+ getDb().prepare(`+ UPDATE playground_conversations+ SET title = ?, messages_json = ?, model = ?, system_prompt = ?, updated_at_ms = ?+ WHERE id = ?+ `).run(+ title ?? row.title,+ messagesJson,+ model === undefined ? row.model : model,+ systemPrompt === undefined ? row.system_prompt : systemPrompt,+ Date.now(),+ id,+ );+ res.json(toJson(getConversation(id)!));+});++conversationsRouter.delete('/:id', (req: Request, res: Response) => {+ const id = parseId(req, res);+ if (id === null) return;+ const info = getDb().prepare('DELETE FROM playground_conversations WHERE id = ?').run(id);+ if (info.changes === 0) return notFound(res);+ res.json({ success: true });+});