7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
feat(decisions): decision models from the catalog, /v1/decisions and a Models → Decision tab (#1537)
Tashfeenffe5327176c3
diff --git a/client/src/App.tsx b/client/src/App.tsxindex 457ec7bc..d2b54d34 100644--- a/client/src/App.tsx+++ b/client/src/App.tsx@@ -39,6 +39,7 @@ import ImagePage from '@/pages/ImagePage'import VideoPage from '@/pages/VideoPage'import AudioPage from '@/pages/AudioPage'import SearchPage from '@/pages/SearchPage'+import DecisionPage from '@/pages/DecisionPage'import MediaDetailPage from '@/pages/MediaDetailPage'import EmbeddingDetailPage from '@/pages/EmbeddingDetailPage'import AnalyticsPage from '@/pages/AnalyticsPage'@@ -82,10 +83,11 @@ const navItems = [// first landing on the chat table.const modelItems = [{ to: '/models/chat', labelKey: 'models.chatModelsTab' },- { to: '/models/embeddings', labelKey: 'models.embeddingsTab' },{ to: '/models/image', labelKey: 'models.imageTab' },{ to: '/models/video', labelKey: 'models.videoTab' },{ to: '/models/audio', labelKey: 'models.audioTab' },+ { to: '/models/embeddings', labelKey: 'models.embeddingsTab' },+ { to: '/models/decision', labelKey: 'decision.tab' },{ to: '/models/search', labelKey: 'search.tab' },{ to: '/models/fusion', labelKey: 'models.fusionTab' },]@@ -490,6 +492,7 @@ function App() {<Route path="/models/audio/:id" element={<MediaDetailPage modality="audio" />} /><Route path="/models/transcription/:id" element={<MediaDetailPage modality="transcription" />} /><Route path="/models/search" element={<SearchPage />} />+ <Route path="/models/decision" element={<DecisionPage />} /><Route path="/playground" element={<PlaygroundPage />} /><Route path="/keys" element={<KeysPage />} /><Route path="/agents" element={<AgentsPage />} />diff --git a/client/src/components/command-palette.tsx b/client/src/components/command-palette.tsxindex bbd03efa..cbb12e0e 100644--- a/client/src/components/command-palette.tsx+++ b/client/src/components/command-palette.tsx@@ -9,6 +9,7 @@ import {Clapperboard,Copy,Globe,+ Scale,Image as ImageIcon,KeyRound,Layers,@@ -108,10 +109,11 @@ export function CommandPalette() {const go = (to: string) => () => navigate(to)const pages: Command[] = [{ id: 'p-chat', group: 'pages', label: t('models.chatModelsTab'), keywords: 'models chat routing fallback', icon: MessageSquare, run: go('/models/chat') },- { id: 'p-embeddings', group: 'pages', label: t('models.embeddingsTab'), keywords: 'models embeddings vectors', icon: Layers, run: go('/models/embeddings') },{ id: 'p-image', group: 'pages', label: t('models.imageTab'), keywords: 'models image generation', icon: ImageIcon, run: go('/models/image') },{ id: 'p-video', group: 'pages', label: t('models.videoTab'), keywords: 'models video text to video generation mp4', icon: Clapperboard, run: go('/models/video') },{ id: 'p-audio', group: 'pages', label: t('models.audioTab'), keywords: 'models audio speech tts stt transcription whisper', icon: AudioLines, run: go('/models/audio') },+ { id: 'p-embeddings', group: 'pages', label: t('models.embeddingsTab'), keywords: 'models embeddings vectors', icon: Layers, run: go('/models/embeddings') },+ { id: 'p-decision', group: 'pages', label: t('decision.tab'), keywords: 'models decision classify choice yes no score clef mercury', icon: Scale, run: go('/models/decision') },{ id: 'p-search', group: 'pages', label: t('search.tab'), keywords: 'models search web tavily exa firecrawl linkup parallel', icon: Globe, run: go('/models/search') },{ id: 'p-fusion', group: 'pages', label: t('models.fusionTab'), keywords: 'models fusion synthesis panel judge', icon: Zap, run: go('/models/fusion') },{ id: 'p-playground', group: 'pages', label: t('nav.playground'), keywords: 'playground test chat try', icon: SquareTerminal, run: go('/playground') },diff --git a/client/src/components/decision-models.test.tsx b/client/src/components/decision-models.test.tsxnew file mode 100644index 00000000..2e688943--- /dev/null+++ b/client/src/components/decision-models.test.tsx@@ -0,0 +1,106 @@+// @vitest-environment jsdom+// Models → Decision lists the catalog's decision models, toggles one with+// PATCH, and "Try it" runs one choice question through /api/decisions/try.+import { afterEach, beforeAll, beforeEach, expect, it, vi } from 'vitest'+import { act } from 'react'+import { createRoot, type Root } from 'react-dom/client'+import { MemoryRouter } from 'react-router-dom'+import { QueryClient, QueryClientProvider } from '@tanstack/react-query'+import { I18nProvider } from '@/i18n'+import { apiFetch } from '@/lib/api'+import type { DecisionModel } from '@/lib/decision'+import { DecisionModelsView } from './decision-models'+import { ModelsTabs } from './models-tabs'++vi.mock('@/lib/api', () => ({ apiFetch: vi.fn() }))++const model = (over: Partial<DecisionModel>): DecisionModel => ({+ id: 1, platform: 'cloudflare', modelId: '@cf/cloudflare/clef-flash', displayName: 'Clef Flash', priority: 0,+ enabled: true, quotaLabel: 'Workers AI free daily neurons', contextWindow: 24576,+ keyCount: 1, healthyKeyCount: 1, decisionsThisMonth: 4, ...over,+})++let root: Root+let container: HTMLDivElement+let client: QueryClient++beforeAll(() => { (globalThis as unknown as { IS_REACT_ACT_ENVIRONMENT: boolean }).IS_REACT_ACT_ENVIRONMENT = true })+beforeEach(() => {+ client = new QueryClient({ defaultOptions: { queries: { retry: false, gcTime: 0 }, mutations: { retry: false } } })+ container = document.createElement('div'); document.body.appendChild(container); root = createRoot(container)+})+afterEach(() => { act(() => root.unmount()); client.clear(); container.remove() })++async function flush() { for (let i = 0; i < 4; i++) await act(async () => { await new Promise(r => setTimeout(r, 0)) }) }+async function mount(models: DecisionModel[]) {+ vi.mocked(apiFetch).mockReset().mockImplementation(async (path: string) => {+ if (path === '/api/decisions/models') return models+ if (path === '/api/decisions/try') {+ return {+ model: '@cf/cloudflare/clef-flash', provider: 'cloudflare', usage: { input_tokens: 10, output_tokens: 0 },+ answers: { answer: { type: 'choice', choice: 'code', confidence: 0.91, probabilities: { chat: 0.04, code: 0.93, reasoning: 0.03 } } },+ }+ }+ return {}+ })+ act(() => root.render(+ <QueryClientProvider client={client}>+ <I18nProvider initialLocale="en">+ <MemoryRouter><DecisionModelsView /></MemoryRouter>+ </I18nProvider>+ </QueryClientProvider>+ ))+ await flush()+}++it('lists the decision models with usage and a no-key badge', async () => {+ await mount([+ model({}),+ model({ id: 2, platform: 'openrouter', modelId: 'inception/mercury-decide:free', displayName: 'Mercury Decide (free)', priority: 1, keyCount: 0, healthyKeyCount: 0, decisionsThisMonth: 0 }),+ ])+ const text = container.textContent ?? ''+ expect(text).toContain('Clef Flash')+ expect(text).toContain('inception/mercury-decide:free')+ expect(text).toContain('4 this month')+ expect(text).toContain('POST /v1/decisions')+ expect(text).toContain('Chat routing never uses these models')+ expect(container.querySelectorAll('[role="switch"]')).toHaveLength(2)+})++it('turns a model off with PATCH', async () => {+ await mount([model({})])+ const toggle = container.querySelector('[role="switch"]') as HTMLElement+ await act(async () => { toggle.click() })+ await flush()+ expect(vi.mocked(apiFetch)).toHaveBeenCalledWith('/api/decisions/models/1', { method: 'PATCH', body: JSON.stringify({ enabled: false }) })+})++it('runs a test decision and shows the answer with probabilities', async () => {+ await mount([model({})])+ const run = [...container.querySelectorAll('button')].find(b => b.textContent === 'Decide') as HTMLButtonElement+ await act(async () => { run.click() })+ await flush()+ const call = vi.mocked(apiFetch).mock.calls.find(c => c[0] === '/api/decisions/try')!+ expect(JSON.parse((call[1] as RequestInit).body as string)).toEqual({+ state: 'my react useEffect runs twice, why?',+ question: 'Which kind of model should answer this?',+ options: ['chat', 'code', 'reasoning', 'writing'],+ })+ const text = container.textContent ?? ''+ expect(text).toContain('Answer: code')+ expect(text).toContain('91% confident')+ expect(text).toContain('93%')+})++it('shows the empty state before the catalog syncs', async () => {+ await mount([])+ expect(container.textContent).toContain('No decision models yet')+})++it('orders the Models tabs with Embeddings after Audio and Decision next to it', () => {+ act(() => root.render(+ <I18nProvider initialLocale="en"><MemoryRouter><ModelsTabs /></MemoryRouter></I18nProvider>+ ))+ const labels = [...container.querySelectorAll('a')].map(a => a.textContent)+ expect(labels).toEqual(['Chat models', 'Image', 'Video', 'Audio', 'Embeddings', 'Decision', 'Search', 'Fusion'])+})diff --git a/client/src/components/decision-models.tsx b/client/src/components/decision-models.tsxnew file mode 100644index 00000000..1b532acf--- /dev/null+++ b/client/src/components/decision-models.tsx@@ -0,0 +1,242 @@+import { useState } from 'react'+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'+import { Scale } from 'lucide-react'+import { apiFetch } from '@/lib/api'+import { Switch } from '@/components/ui/switch'+import { Button } from '@/components/ui/button'+import { Input } from '@/components/ui/input'+import { Label } from '@/components/ui/label'+import { Textarea } from '@/components/ui/textarea'+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'+import { EmptyState } from '@/components/empty-state'+import { CardSkeleton } from '@/components/ui/skeleton'+import { PageHeader } from '@/components/page-header'+import { ModelsTabs } from '@/components/models-tabs'+import { CodeBlock } from '@/components/code-block'+import { useI18n } from '@/i18n'+import {+ decisionExampleCurl,+ parseOptions,+ topProbabilities,+ type DecisionModel,+ type DecisionResult,+} from '@/lib/decision'++const AUTO = 'auto'++// One model from the catalog's `decisionModels` section. Decision models are+// not part of chat routing; the toggle only affects POST /v1/decisions.+function DecisionModelCard({+ model: m,+ onToggle,+ pending,+}: {+ model: DecisionModel+ onToggle: (enabled: boolean) => void+ pending: boolean+}) {+ const { t } = useI18n()+ return (+ <section className={`rounded-3xl border bg-card p-5 ${m.enabled ? '' : 'opacity-60'}`}>+ <div className="flex items-center gap-3">+ <div className="min-w-0 flex-1">+ <div className="flex flex-wrap items-center gap-2">+ <span className="text-sm font-medium">{m.displayName}</span>+ {m.keyCount === 0 && (+ <span className="text-[10px] rounded-full px-1.5 py-0.5 bg-amber-600/15 text-amber-700 dark:bg-amber-400/15 dark:text-amber-400">+ {t('models.noKey')}+ </span>+ )}+ </div>+ <div className="truncate font-mono text-[11px] text-muted-foreground">{m.modelId}</div>+ <div className="truncate text-[11px] text-muted-foreground">+ {[m.platform, m.quotaLabel].filter(Boolean).join(' · ')}+ </div>+ </div>+ <span className="text-xs text-muted-foreground tabular-nums">+ {t('decision.thisMonth', { count: m.decisionsThisMonth })}+ </span>+ <Switch checked={m.enabled} onCheckedChange={onToggle} disabled={pending} aria-label={m.displayName} />+ </div>+ </section>+ )+}++// "Try it": one choice question over the typed text, run through the same+// chain as POST /v1/decisions.+function TryDecision({ models }: { models: DecisionModel[] }) {+ const { t } = useI18n()+ const [text, setText] = useState('')+ const [question, setQuestion] = useState('')+ const [options, setOptions] = useState('')+ const [model, setModel] = useState(AUTO)+ const [latency, setLatency] = useState<number | null>(null)++ const run = useMutation({+ mutationFn: async (): Promise<DecisionResult> => {+ const started = performance.now()+ const result = await apiFetch<DecisionResult>('/api/decisions/try', {+ method: 'POST',+ body: JSON.stringify({+ state: text.trim() || t('decision.tryTextPlaceholder'),+ question: question.trim() || t('decision.tryQuestionPlaceholder'),+ options: parseOptions(options || t('decision.tryOptionsPlaceholder')),+ ...(model !== AUTO ? { model } : {}),+ }),+ })+ setLatency(Math.round(performance.now() - started))+ return result+ },+ })++ const optionList = parseOptions(options || t('decision.tryOptionsPlaceholder'))+ const answer = run.data?.answers?.answer as { choice?: string; confidence?: number; probabilities?: Record<string, number> } | undefined+ const enabled = models.filter(m => m.enabled)++ return (+ <section className="rounded-3xl border bg-card p-5 space-y-3">+ <h2 className="text-sm font-medium">{t('decision.tryTitle')}</h2>+ <div className="space-y-1.5">+ <Label className="text-xs" htmlFor="decision-text">{t('decision.tryText')}</Label>+ <Textarea+ id="decision-text"+ value={text}+ onChange={e => setText(e.target.value)}+ placeholder={t('decision.tryTextPlaceholder')}+ rows={3}+ />+ </div>+ <div className="flex flex-col gap-3 sm:flex-row">+ <div className="space-y-1.5 flex-1">+ <Label className="text-xs" htmlFor="decision-question">{t('decision.tryQuestion')}</Label>+ <Input+ id="decision-question"+ value={question}+ onChange={e => setQuestion(e.target.value)}+ placeholder={t('decision.tryQuestionPlaceholder')}+ />+ </div>+ <div className="space-y-1.5 flex-1">+ <Label className="text-xs" htmlFor="decision-options">{t('decision.tryOptions')}</Label>+ <Input+ id="decision-options"+ value={options}+ onChange={e => setOptions(e.target.value)}+ placeholder={t('decision.tryOptionsPlaceholder')}+ />+ </div>+ </div>+ <div className="flex flex-wrap items-end gap-3">+ <div className="space-y-1.5">+ <Label className="text-xs">{t('decision.tryModel')}</Label>+ <Select+ value={model}+ onValueChange={value => setModel(String(value))}+ items={[{ value: AUTO, label: t('decision.tryAuto') }, ...enabled.map(m => ({ value: m.modelId, label: m.displayName }))]}+ >+ <SelectTrigger className="w-[220px]"><SelectValue /></SelectTrigger>+ <SelectContent>+ <SelectItem value={AUTO} label={t('decision.tryAuto')}>{t('decision.tryAuto')}</SelectItem>+ {enabled.map(m => (+ <SelectItem key={m.id} value={m.modelId} label={m.displayName}>{m.displayName}</SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <Button onClick={() => run.mutate()} disabled={run.isPending || optionList.length < 2}>+ {run.isPending ? t('decision.tryRunning') : t('decision.tryRun')}+ </Button>+ {optionList.length < 2 && <span className="text-xs text-muted-foreground">{t('decision.tryNeedOptions')}</span>}+ </div>++ {run.error && <p className="text-xs text-destructive">{(run.error as Error).message}</p>}+ {answer?.choice && (+ <div className="space-y-2 rounded-2xl bg-muted/50 p-4">+ <div className="flex flex-wrap items-baseline gap-2">+ <span className="text-sm font-medium">{t('decision.tryAnswer', { choice: answer.choice })}</span>+ {typeof answer.confidence === 'number' && (+ <span className="text-xs text-muted-foreground tabular-nums">+ {t('decision.tryConfidence', { value: Math.round(answer.confidence * 100) })}+ </span>+ )}+ <span className="flex-1" />+ <span className="font-mono text-[11px] text-muted-foreground">+ {t('decision.tryServedBy', { model: run.data!.model, latency: latency ?? 0 })}+ </span>+ </div>+ {topProbabilities(answer.probabilities).map(([option, p]) => (+ <div key={option} className="flex items-center gap-2 text-xs">+ <span className="w-28 truncate">{option}</span>+ <div className="h-1.5 flex-1 rounded-full bg-muted">+ <div className="h-1.5 rounded-full bg-foreground" style={{ width: `${Math.round(p * 100)}%` }} />+ </div>+ <span className="w-10 text-right tabular-nums text-muted-foreground">{Math.round(p * 100)}%</span>+ </div>+ ))}+ </div>+ )}+ </section>+ )+}++// Models → Decision: the catalog's decision models, a "Try it" box and an+// example request for POST /v1/decisions.+export function DecisionModelsView() {+ const { t } = useI18n()+ const queryClient = useQueryClient()++ const { data: models = [], isLoading } = useQuery<DecisionModel[]>({+ queryKey: ['decision-models'],+ queryFn: () => apiFetch('/api/decisions/models'),+ refetchInterval: 30_000,+ })++ const update = useMutation({+ mutationFn: ({ id, enabled }: { id: number; enabled: boolean }) =>+ apiFetch(`/api/decisions/models/${id}`, { method: 'PATCH', body: JSON.stringify({ enabled }) }),+ onSuccess: () => queryClient.invalidateQueries({ queryKey: ['decision-models'] }),+ })++ const ordered = models.slice().sort((a, b) => a.priority - b.priority || a.id - b.id)++ return (+ <div>+ <PageHeader title={t('models.title')} description={t('decision.pageDesc')} divider={false} actions={<ModelsTabs />} />++ <div className="space-y-4">+ <p className="text-xs text-muted-foreground">+ {t('decision.endpointHint')}{' '}+ <code className="rounded bg-muted px-1 py-0.5 font-mono text-[11px]">POST /v1/decisions</code>{' '}+ {t('decision.notRoutingHint')}+ </p>++ {isLoading ? (+ <>+ <CardSkeleton />+ <CardSkeleton />+ </>+ ) : ordered.length === 0 ? (+ <EmptyState icon={Scale} title={t('decision.empty')} />+ ) : (+ <>+ {ordered.map(m => (+ <DecisionModelCard+ key={m.id}+ model={m}+ onToggle={enabled => update.mutate({ id: m.id, enabled })}+ pending={update.isPending}+ />+ ))}+ <TryDecision models={ordered} />+ <section className="rounded-3xl border bg-card p-5 space-y-2">+ <h2 className="text-sm font-medium">{t('decision.exampleTitle')}</h2>+ <div className="overflow-x-auto rounded-2xl bg-muted/50 p-4">+ <CodeBlock code={decisionExampleCurl(window.location.origin)} language="bash" />+ </div>+ </section>+ </>+ )}+ </div>+ </div>+ )+}diff --git a/client/src/components/models-tabs.tsx b/client/src/components/models-tabs.tsxindex 8230b897..c07e0a06 100644--- a/client/src/components/models-tabs.tsx+++ b/client/src/components/models-tabs.tsx@@ -1,7 +1,7 @@import { NavLink } from 'react-router-dom'import { useI18n } from '@/i18n'-// Segmented Chat | Embeddings | Fusion switcher shared by the Models pages.+// Segmented modality switcher shared by the Models pages.// Industry-standard layout: one "Models" section, modality as a tab — chat// routing (cross-model fallback), embeddings routing (same-model,// cross-provider fallback), and fusion (multi-model synthesis) are different@@ -13,12 +13,13 @@ export function ModelsTabs() {isActive ? 'bg-foreground text-background font-medium' : 'text-muted-foreground hover:text-foreground hover:bg-muted'}`return (- <div className="inline-flex gap-1 rounded-xl border p-1">+ <div className="inline-flex max-w-full gap-1 overflow-x-auto rounded-xl border p-1 [&>a]:shrink-0"><NavLink to="/models/chat" className={({ isActive }) => tab(isActive)}>{t('models.chatModelsTab')}</NavLink>- <NavLink to="/models/embeddings" className={({ isActive }) => tab(isActive)}>{t('models.embeddingsTab')}</NavLink><NavLink to="/models/image" className={({ isActive }) => tab(isActive)}>{t('models.imageTab')}</NavLink><NavLink to="/models/video" className={({ isActive }) => tab(isActive)}>{t('models.videoTab')}</NavLink><NavLink to="/models/audio" className={({ isActive }) => tab(isActive)}>{t('models.audioTab')}</NavLink>+ <NavLink to="/models/embeddings" className={({ isActive }) => tab(isActive)}>{t('models.embeddingsTab')}</NavLink>+ <NavLink to="/models/decision" className={({ isActive }) => tab(isActive)}>{t('decision.tab')}</NavLink><NavLink to="/models/search" className={({ isActive }) => tab(isActive)}>{t('search.tab')}</NavLink><NavLink to="/models/fusion" className={({ isActive }) => tab(isActive)}>{t('models.fusionTab')}</NavLink></div>diff --git a/client/src/components/page-header.tsx b/client/src/components/page-header.tsxindex 70c690f4..0e40554d 100644--- a/client/src/components/page-header.tsx+++ b/client/src/components/page-header.tsx@@ -19,7 +19,7 @@ export function PageHeader({<p className="text-sm text-muted-foreground mt-1">{description}</p>)}</div>- {actions && <div className="flex items-center gap-2 shrink-0">{actions}</div>}+ {actions && <div className="flex max-w-full items-center gap-2 shrink-0">{actions}</div>}</div>)}diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex c46a0ba3..b8d5e35e 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "ውሳኔ",+ "pageDesc": "የውሳኔ ሞዴሎች ስለ ጽሑፍዎ ለሚቀርብ ጥያቄ በምርጫ፣ በአዎ ወይም በአይ፣ ወይም በነጥብ ይመልሳሉ፣ ምን ያህል እርግጠኛ እንደሆኑም ይናገራሉ። በእርስዎ የCloudflare እና OpenRouter ቁልፎች ላይ ይሰራሉ።",+ "endpointHint": "በዚህ በኩል ይደውሉ",+ "notRoutingHint": "— ከውይይት የተለየ። የውይይት ማዘዋወር እነዚህን ሞዴሎች በጭራሽ አይጠቀምም።",+ "empty": "እስካሁን ምንም የውሳኔ ሞዴሎች የሉም። ከካታሎግ ይመሳሰላሉ።",+ "thisMonth": "በዚህ ወር {count}",+ "tryTitle": "ይሞክሩት",+ "tryText": "ጽሑፍ",+ "tryTextPlaceholder": "የእኔ react useEffect ሁለት ጊዜ ይሰራል፣ ለምን?",+ "tryQuestion": "ጥያቄ",+ "tryQuestionPlaceholder": "ይህንን ምን ዓይነት ሞዴል ሊመልስ ይገባል?",+ "tryOptions": "አማራጮች፣ በኮማ የተለዩ",+ "tryOptionsPlaceholder": "ውይይት, ኮድ, ምክንያታዊነት, መጻፍ",+ "tryModel": "ሞዴል",+ "tryAuto": "ራስ-ሰር",+ "tryRun": "ወስን",+ "tryRunning": "በመወሰን ላይ…",+ "tryNeedOptions": "ቢያንስ ሁለት አማራጮችን ያክሉ።",+ "tryAnswer": "መልስ፦ {choice}",+ "tryConfidence": "{value}% እርግጠኛ",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "የጥያቄ ምሳሌ"}}diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex a03ed19c..9ba55f52 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "القرار",+ "pageDesc": "تجيب نماذج القرار عن سؤال حول نصك باختيار أو بنعم أو لا أو بدرجة، وتوضح مدى ثقتها. تعمل باستخدام مفاتيح Cloudflare وOpenRouter الخاصة بك.",+ "endpointHint": "استدعاء عبر",+ "notRoutingHint": "— منفصلة عن الدردشة. لا يستخدم توجيه الدردشة هذه النماذج أبدًا.",+ "empty": "لا توجد نماذج قرار حتى الآن. تتم مزامنتها من الكتالوج.",+ "thisMonth": "{count} هذا الشهر",+ "tryTitle": "جرّبه",+ "tryText": "النص",+ "tryTextPlaceholder": "react useEffect لدي يعمل مرتين، لماذا؟",+ "tryQuestion": "السؤال",+ "tryQuestionPlaceholder": "ما نوع النموذج الذي يجب أن يجيب عن هذا؟",+ "tryOptions": "الخيارات، مفصولة بفواصل",+ "tryOptionsPlaceholder": "دردشة, برمجة, استدلال, كتابة",+ "tryModel": "النموذج",+ "tryAuto": "تلقائي",+ "tryRun": "قرّر",+ "tryRunning": "جارٍ اتخاذ القرار…",+ "tryNeedOptions": "أضف خيارين على الأقل.",+ "tryAnswer": "الإجابة: {choice}",+ "tryConfidence": "ثقة {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "مثال على الطلب"}}diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex f3093ff9..5095dee0 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Qərar",+ "pageDesc": "Qərar modelləri mətniniz haqqında suala seçim, bəli və ya xeyr, yaxud bal ilə cavab verir və nə qədər əmin olduqlarını bildirir. Onlar Cloudflare və OpenRouter açarlarınızla işləyir.",+ "endpointHint": "Çağırış vasitəsilə",+ "notRoutingHint": "— chatdan ayrıdır. Chat marşrutlaşdırması bu modellərdən heç vaxt istifadə etmir.",+ "empty": "Hələ qərar modeli yoxdur. Onlar kataloqdan sinxronlaşır.",+ "thisMonth": "Bu ay {count}",+ "tryTitle": "Sınayın",+ "tryText": "Mətn",+ "tryTextPlaceholder": "react useEffect-im iki dəfə işləyir, niyə?",+ "tryQuestion": "Sual",+ "tryQuestionPlaceholder": "Bunu hansı növ model cavablandırmalıdır?",+ "tryOptions": "Vergüllə ayrılmış seçimlər",+ "tryOptionsPlaceholder": "chat, kod, düşünmə, yazı",+ "tryModel": "Model",+ "tryAuto": "Avtomatik",+ "tryRun": "Qərar ver",+ "tryRunning": "Qərar verilir…",+ "tryNeedOptions": "Ən azı iki seçim əlavə edin.",+ "tryAnswer": "Cavab: {choice}",+ "tryConfidence": "{value}% əmin",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Nümunə sorğu"}}diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 960d8d22..554f0a6d 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Решения",+ "pageDesc": "Моделите за решения отговарят на въпрос за вашия текст с избор, „да“ или „не“ или оценка и казват колко са сигурни. Работят с вашите ключове за Cloudflare и OpenRouter.",+ "endpointHint": "Извикване чрез",+ "notRoutingHint": "— отделно от чата. Маршрутизирането на чата никога не използва тези модели.",+ "empty": "Все още няма модели за решения. Синхронизират се от каталога.",+ "thisMonth": "{count} този месец",+ "tryTitle": "Опитайте",+ "tryText": "Текст",+ "tryTextPlaceholder": "моят react useEffect се изпълнява два пъти, защо?",+ "tryQuestion": "Въпрос",+ "tryQuestionPlaceholder": "Какъв тип модел трябва да отговори на това?",+ "tryOptions": "Опции, разделени със запетаи",+ "tryOptionsPlaceholder": "чат, код, разсъждение, писане",+ "tryModel": "Модел",+ "tryAuto": "Автоматично",+ "tryRun": "Реши",+ "tryRunning": "Решава се…",+ "tryNeedOptions": "Добавете поне две опции.",+ "tryAnswer": "Отговор: {choice}",+ "tryConfidence": "Увереност {value}%",+ "tryServedBy": "{model} · {latency} мс",+ "exampleTitle": "Примерна заявка"}}diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex 22c4a582..c1b96ae1 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "সিদ্ধান্ত",+ "pageDesc": "সিদ্ধান্ত মডেল আপনার লেখা নিয়ে একটি প্রশ্নের উত্তর একটি বিকল্প, হ্যাঁ বা না, অথবা একটি স্কোর দিয়ে দেয় এবং জানায় তারা কতটা নিশ্চিত। এগুলো আপনার Cloudflare ও OpenRouter চাবি দিয়ে চলে।",+ "endpointHint": "এর মাধ্যমে কল করুন",+ "notRoutingHint": "— চ্যাট থেকে আলাদা। চ্যাট রাউটিং কখনো এই মডেলগুলো ব্যবহার করে না।",+ "empty": "এখনো কোনো সিদ্ধান্ত মডেল নেই। এগুলো ক্যাটালগ থেকে সিঙ্ক হয়।",+ "thisMonth": "এই মাসে {count}",+ "tryTitle": "চেষ্টা করুন",+ "tryText": "টেক্সট",+ "tryTextPlaceholder": "আমার react useEffect দুইবার চলে, কেন?",+ "tryQuestion": "প্রশ্ন",+ "tryQuestionPlaceholder": "কোন ধরনের মডেলের এর উত্তর দেওয়া উচিত?",+ "tryOptions": "বিকল্প, কমা দিয়ে আলাদা করুন",+ "tryOptionsPlaceholder": "চ্যাট, কোড, যুক্তি, লেখা",+ "tryModel": "মডেল",+ "tryAuto": "স্বয়ংক্রিয়",+ "tryRun": "সিদ্ধান্ত নিন",+ "tryRunning": "সিদ্ধান্ত নেওয়া হচ্ছে…",+ "tryNeedOptions": "অন্তত দুটি বিকল্প যোগ করুন।",+ "tryAnswer": "উত্তর: {choice}",+ "tryConfidence": "{value}% নিশ্চিত",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "উদাহরণ অনুরোধ"}}diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex 0817288a..aae349ab 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Rozhodnutí",+ "pageDesc": "Rozhodovací modely odpovídají na otázku k vašemu textu volbou, ano či ne nebo skóre a uvádějí, jak jsou si jisté. Běží na vašich klíčích Cloudflare a OpenRouter.",+ "endpointHint": "Volejte přes",+ "notRoutingHint": "— odděleně od chatu. Směrování chatu tyto modely nikdy nepoužívá.",+ "empty": "Rozhodovací modely zatím nejsou. Synchronizují se z katalogu.",+ "thisMonth": "{count} tento měsíc",+ "tryTitle": "Vyzkoušet",+ "tryText": "Text",+ "tryTextPlaceholder": "můj react useEffect se spouští dvakrát, proč?",+ "tryQuestion": "Otázka",+ "tryQuestionPlaceholder": "Jaký typ modelu by na to měl odpovědět?",+ "tryOptions": "Možnosti oddělené čárkami",+ "tryOptionsPlaceholder": "chat, kód, uvažování, psaní",+ "tryModel": "Model",+ "tryAuto": "Automaticky",+ "tryRun": "Rozhodnout",+ "tryRunning": "Rozhoduji…",+ "tryNeedOptions": "Přidejte alespoň dvě možnosti.",+ "tryAnswer": "Odpověď: {choice}",+ "tryConfidence": "Jistota {value} %",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Ukázkový požadavek"}}diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 5d7851b1..53158989 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Beslutning",+ "pageDesc": "Beslutningsmodeller besvarer et spørgsmål om din tekst med et valg, et ja eller nej eller en score og fortæller, hvor sikre de er. De kører på dine Cloudflare- og OpenRouter-nøgler.",+ "endpointHint": "Kald via",+ "notRoutingHint": "— adskilt fra chat. Chat-routing bruger aldrig disse modeller.",+ "empty": "Ingen beslutningsmodeller endnu. De synkroniserer fra kataloget.",+ "thisMonth": "{count} denne måned",+ "tryTitle": "Prøv det",+ "tryText": "Tekst",+ "tryTextPlaceholder": "min react useEffect kører to gange, hvorfor?",+ "tryQuestion": "Spørgsmål",+ "tryQuestionPlaceholder": "Hvilken slags model bør besvare dette?",+ "tryOptions": "Valgmuligheder, adskilt med kommaer",+ "tryOptionsPlaceholder": "chat, kode, ræsonnement, skrivning",+ "tryModel": "Model",+ "tryAuto": "Auto",+ "tryRun": "Beslut",+ "tryRunning": "Beslutter…",+ "tryNeedOptions": "Tilføj mindst to valgmuligheder.",+ "tryAnswer": "Svar: {choice}",+ "tryConfidence": "{value} % sikker",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Eksempel på anmodning"}}diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex 48569705..eb840a6a 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Entscheidung",+ "pageDesc": "Entscheidungsmodelle beantworten eine Frage zu Ihrem Text mit einer Auswahl, einem Ja oder Nein oder einer Bewertung und geben an, wie sicher sie sind. Sie laufen über Ihre Cloudflare- und OpenRouter-Schlüssel.",+ "endpointHint": "Aufrufen über",+ "notRoutingHint": "— getrennt vom Chat. Das Chat-Routing verwendet diese Modelle nie.",+ "empty": "Noch keine Entscheidungsmodelle. Sie werden aus dem Katalog synchronisiert.",+ "thisMonth": "{count} diesen Monat",+ "tryTitle": "Ausprobieren",+ "tryText": "Text",+ "tryTextPlaceholder": "mein react useEffect läuft zweimal, warum?",+ "tryQuestion": "Frage",+ "tryQuestionPlaceholder": "Welche Art von Modell sollte das beantworten?",+ "tryOptions": "Optionen, durch Kommas getrennt",+ "tryOptionsPlaceholder": "Chat, Code, Schlussfolgern, Schreiben",+ "tryModel": "Modell",+ "tryAuto": "Automatisch",+ "tryRun": "Entscheiden",+ "tryRunning": "Entscheide…",+ "tryNeedOptions": "Fügen Sie mindestens zwei Optionen hinzu.",+ "tryAnswer": "Antwort: {choice}",+ "tryConfidence": "{value} % sicher",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Beispielanfrage"}}diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex 2bb56cd3..ac9b042a 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Απόφαση",+ "pageDesc": "Τα μοντέλα απόφασης απαντούν σε μια ερώτηση για το κείμενό σας με μια επιλογή, ένα ναι ή όχι ή μια βαθμολογία και λένε πόσο σίγουρα είναι. Λειτουργούν με τα κλειδιά σας Cloudflare και OpenRouter.",+ "endpointHint": "Κλήση μέσω",+ "notRoutingHint": "— ξεχωριστά από τη συνομιλία. Η δρομολόγηση της συνομιλίας δεν χρησιμοποιεί ποτέ αυτά τα μοντέλα.",+ "empty": "Δεν υπάρχουν ακόμη μοντέλα απόφασης. Συγχρονίζονται από τον κατάλογο.",+ "thisMonth": "{count} αυτόν τον μήνα",+ "tryTitle": "Δοκιμάστε το",+ "tryText": "Κείμενο",+ "tryTextPlaceholder": "το react useEffect μου τρέχει δύο φορές, γιατί;",+ "tryQuestion": "Ερώτηση",+ "tryQuestionPlaceholder": "Τι είδους μοντέλο πρέπει να απαντήσει σε αυτό;",+ "tryOptions": "Επιλογές, χωρισμένες με κόμματα",+ "tryOptionsPlaceholder": "συνομιλία, κώδικας, συλλογισμός, γραφή",+ "tryModel": "Μοντέλο",+ "tryAuto": "Αυτόματο",+ "tryRun": "Απόφαση",+ "tryRunning": "Λήψη απόφασης…",+ "tryNeedOptions": "Προσθέστε τουλάχιστον δύο επιλογές.",+ "tryAnswer": "Απάντηση: {choice}",+ "tryConfidence": "Βεβαιότητα {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Παράδειγμα αιτήματος"}}diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 80cd215b..729c0cab 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -1263,5 +1263,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Decision",+ "pageDesc": "Decision models answer a question about your text with a choice, a yes or no, or a score, and say how confident they are. They run on your Cloudflare and OpenRouter keys.",+ "endpointHint": "Call via",+ "notRoutingHint": "— separate from chat. Chat routing never uses these models.",+ "empty": "No decision models yet. They sync from the catalog.",+ "thisMonth": "{count} this month",+ "tryTitle": "Try it",+ "tryText": "Text",+ "tryTextPlaceholder": "my react useEffect runs twice, why?",+ "tryQuestion": "Question",+ "tryQuestionPlaceholder": "Which kind of model should answer this?",+ "tryOptions": "Options, separated by commas",+ "tryOptionsPlaceholder": "chat, code, reasoning, writing",+ "tryModel": "Model",+ "tryAuto": "Auto",+ "tryRun": "Decide",+ "tryRunning": "Deciding…",+ "tryNeedOptions": "Add at least two options.",+ "tryAnswer": "Answer: {choice}",+ "tryConfidence": "{value}% confident",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Example request"}}diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex edf9c8fc..30d08d84 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Decisión",+ "pageDesc": "Los modelos de decisión responden una pregunta sobre tu texto con una opción, un sí o no, o una puntuación, e indican su nivel de confianza. Funcionan con tus claves de Cloudflare y OpenRouter.",+ "endpointHint": "Llamar mediante",+ "notRoutingHint": "— separado del chat. El enrutamiento del chat nunca usa estos modelos.",+ "empty": "Aún no hay modelos de decisión. Se sincronizan desde el catálogo.",+ "thisMonth": "{count} este mes",+ "tryTitle": "Pruébalo",+ "tryText": "Texto",+ "tryTextPlaceholder": "mi react useEffect se ejecuta dos veces, ¿por qué?",+ "tryQuestion": "Pregunta",+ "tryQuestionPlaceholder": "¿Qué tipo de modelo debería responder esto?",+ "tryOptions": "Opciones, separadas por comas",+ "tryOptionsPlaceholder": "chat, código, razonamiento, escritura",+ "tryModel": "Modelo",+ "tryAuto": "Automático",+ "tryRun": "Decidir",+ "tryRunning": "Decidiendo…",+ "tryNeedOptions": "Añade al menos dos opciones.",+ "tryAnswer": "Respuesta: {choice}",+ "tryConfidence": "{value} % de confianza",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Solicitud de ejemplo"}}diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex 9c376fe6..b68fc5fb 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "تصمیم",+ "pageDesc": "مدل های تصمیم به پرسشی درباره متن شما با یک گزینه، بله یا خیر، یا یک امتیاز پاسخ می دهند و میزان اطمینان خود را اعلام می کنند. آنها با کلیدهای Cloudflare و OpenRouter شما اجرا می شوند.",+ "endpointHint": "فراخوانی از طریق",+ "notRoutingHint": "— جدا از چت. مسیریابی چت هرگز از این مدل ها استفاده نمی کند.",+ "empty": "هنوز مدل تصمیمی وجود ندارد. آنها از کاتالوگ همگام می شوند.",+ "thisMonth": "{count} در این ماه",+ "tryTitle": "امتحان کنید",+ "tryText": "متن",+ "tryTextPlaceholder": "react useEffect من دو بار اجرا می شود، چرا؟",+ "tryQuestion": "پرسش",+ "tryQuestionPlaceholder": "چه نوع مدلی باید به این پاسخ دهد؟",+ "tryOptions": "گزینه ها، جدا شده با کاما",+ "tryOptionsPlaceholder": "چت, کد, استدلال, نوشتن",+ "tryModel": "مدل",+ "tryAuto": "خودکار",+ "tryRun": "تصمیم بگیر",+ "tryRunning": "در حال تصمیم گیری…",+ "tryNeedOptions": "دست کم دو گزینه اضافه کنید.",+ "tryAnswer": "پاسخ: {choice}",+ "tryConfidence": "{value}% اطمینان",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "نمونه درخواست"}}diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex c9592c1f..619707d3 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Päätös",+ "pageDesc": "Päätösmallit vastaavat tekstiäsi koskevaan kysymykseen valinnalla, kyllä- tai ei-vastauksella tai pisteillä ja kertovat, kuinka varmoja ne ovat. Ne toimivat Cloudflare- ja OpenRouter-avaimillasi.",+ "endpointHint": "Kutsu osoitteessa",+ "notRoutingHint": "— erillään chatista. Chatin reititys ei koskaan käytä näitä malleja.",+ "empty": "Ei vielä päätösmalleja. Ne synkronoituvat katalogista.",+ "thisMonth": "{count} tässä kuussa",+ "tryTitle": "Kokeile",+ "tryText": "Teksti",+ "tryTextPlaceholder": "react useEffect ajetaan kahdesti, miksi?",+ "tryQuestion": "Kysymys",+ "tryQuestionPlaceholder": "Minkä tyyppisen mallin pitäisi vastata tähän?",+ "tryOptions": "Vaihtoehdot pilkuilla erotettuina",+ "tryOptionsPlaceholder": "chat, koodi, päättely, kirjoittaminen",+ "tryModel": "Malli",+ "tryAuto": "Automaattinen",+ "tryRun": "Päätä",+ "tryRunning": "Päätetään…",+ "tryNeedOptions": "Lisää vähintään kaksi vaihtoehtoa.",+ "tryAnswer": "Vastaus: {choice}",+ "tryConfidence": "{value} % varma",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Esimerkkipyyntö"}}diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex df5daa61..826c21b8 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Décision",+ "pageDesc": "Les modèles de décision répondent à une question sur votre texte par un choix, un oui ou non, ou un score, et indiquent leur niveau de confiance. Ils fonctionnent avec vos clés Cloudflare et OpenRouter.",+ "endpointHint": "Appeler via",+ "notRoutingHint": "— séparé du chat. Le routage du chat n'utilise jamais ces modèles.",+ "empty": "Aucun modèle de décision pour l'instant. Ils se synchronisent depuis le catalogue.",+ "thisMonth": "{count} ce mois-ci",+ "tryTitle": "Essayer",+ "tryText": "Texte",+ "tryTextPlaceholder": "mon react useEffect s'exécute deux fois, pourquoi ?",+ "tryQuestion": "Question",+ "tryQuestionPlaceholder": "Quel type de modèle devrait répondre à ceci ?",+ "tryOptions": "Options, séparées par des virgules",+ "tryOptionsPlaceholder": "chat, code, raisonnement, rédaction",+ "tryModel": "Modèle",+ "tryAuto": "Auto",+ "tryRun": "Décider",+ "tryRunning": "Décision en cours…",+ "tryNeedOptions": "Ajoutez au moins deux options.",+ "tryAnswer": "Réponse : {choice}",+ "tryConfidence": "Confiance : {value} %",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Exemple de requête"}}diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 4a7925c6..ad788cee 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "નિર્ણય",+ "pageDesc": "નિર્ણય મોડલ્સ તમારા લખાણ વિશેના પ્રશ્નનો જવાબ એક વિકલ્પ, હા કે ના, અથવા સ્કોર સાથે આપે છે અને તેઓ કેટલા ખાતરીપૂર્વક છે તે જણાવે છે. તે તમારી Cloudflare અને OpenRouter કીઓ પર ચાલે છે.",+ "endpointHint": "દ્વારા કૉલ કરો",+ "notRoutingHint": "— ચેટથી અલગ. ચેટ રાઉટિંગ ક્યારેય આ મોડલ્સનો ઉપયોગ કરતું નથી.",+ "empty": "હજુ સુધી કોઈ નિર્ણય મોડલ નથી. તેઓ કેટલોગમાંથી સમન્વયિત થાય છે.",+ "thisMonth": "આ મહિને {count}",+ "tryTitle": "અજમાવી જુઓ",+ "tryText": "લખાણ",+ "tryTextPlaceholder": "મારો react useEffect બે વાર ચાલે છે, કેમ?",+ "tryQuestion": "પ્રશ્ન",+ "tryQuestionPlaceholder": "આનો જવાબ કયા પ્રકારના મોડલે આપવો જોઈએ?",+ "tryOptions": "વિકલ્પો, અલ્પવિરામથી અલગ કરો",+ "tryOptionsPlaceholder": "ચેટ, કોડ, તર્ક, લેખન",+ "tryModel": "મોડલ",+ "tryAuto": "સ્વચાલિત",+ "tryRun": "નિર્ણય લો",+ "tryRunning": "નિર્ણય લેવાઈ રહ્યો છે…",+ "tryNeedOptions": "ઓછામાં ઓછા બે વિકલ્પો ઉમેરો.",+ "tryAnswer": "જવાબ: {choice}",+ "tryConfidence": "{value}% ખાતરી",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ઉદાહરણ વિનંતી"}}diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex 8ff840b3..f473b9ab 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Hukunci",+ "pageDesc": "Samfuran hukunci suna amsa tambaya game da rubutunka da zaɓi, e ko a'a, ko maki, kuma suna faɗin yadda suke da tabbaci. Suna aiki da maɓallan Cloudflare da OpenRouter naka.",+ "endpointHint": "Kira ta hanyar",+ "notRoutingHint": "— daban da taɗi. Hanyar taɗi ba ta taɓa amfani da waɗannan samfuran ba.",+ "empty": "Babu samfuran hukunci tukuna. Suna daidaitawa daga kasidar.",+ "thisMonth": "{count} a wannan watan",+ "tryTitle": "Gwada shi",+ "tryText": "Rubutu",+ "tryTextPlaceholder": "react useEffect dina yana gudana sau biyu, me yasa?",+ "tryQuestion": "Tambaya",+ "tryQuestionPlaceholder": "Wane irin samfuri ya kamata ya amsa wannan?",+ "tryOptions": "Zaɓuɓɓuka, a raba da waƙafi",+ "tryOptionsPlaceholder": "taɗi, lamba, tunani, rubutu",+ "tryModel": "Samfuri",+ "tryAuto": "Ta atomatik",+ "tryRun": "Yanke hukunci",+ "tryRunning": "Ana yanke hukunci…",+ "tryNeedOptions": "Ƙara aƙalla zaɓuɓɓuka biyu.",+ "tryAnswer": "Amsa: {choice}",+ "tryConfidence": "Tabbaci {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Misalin buƙata"}}diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex a8aebc74..f300b384 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "החלטה",+ "pageDesc": "מודלי החלטה עונים על שאלה לגבי הטקסט שלך בבחירה, בכן או לא, או בציון, ומציינים עד כמה הם בטוחים. הם פועלים עם מפתחות Cloudflare ו-OpenRouter שלך.",+ "endpointHint": "קריאה דרך",+ "notRoutingHint": "— בנפרד מהצ'אט. ניתוב הצ'אט אף פעם לא משתמש במודלים אלה.",+ "empty": "עדיין אין מודלי החלטה. הם מסונכרנים מהקטלוג.",+ "thisMonth": "{count} החודש",+ "tryTitle": "נסו את זה",+ "tryText": "טקסט",+ "tryTextPlaceholder": "ה-react useEffect שלי רץ פעמיים, למה?",+ "tryQuestion": "שאלה",+ "tryQuestionPlaceholder": "איזה סוג מודל צריך לענות על זה?",+ "tryOptions": "אפשרויות, מופרדות בפסיקים",+ "tryOptionsPlaceholder": "צ'אט, קוד, הסקה, כתיבה",+ "tryModel": "מודל",+ "tryAuto": "אוטומטי",+ "tryRun": "החלט",+ "tryRunning": "מחליט…",+ "tryNeedOptions": "הוסיפו לפחות שתי אפשרויות.",+ "tryAnswer": "תשובה: {choice}",+ "tryConfidence": "ביטחון של {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "בקשה לדוגמה"}}diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex a50687ad..78453008 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "निर्णय",+ "pageDesc": "निर्णय मॉडल आपके टेक्स्ट के बारे में किसी प्रश्न का उत्तर एक विकल्प, हाँ या नहीं, या स्कोर के रूप में देते हैं और बताते हैं कि वे कितने आश्वस्त हैं। ये आपकी Cloudflare और OpenRouter चाबियों पर चलते हैं।",+ "endpointHint": "के माध्यम से कॉल करें",+ "notRoutingHint": "— चैट से अलग। चैट रूटिंग इन मॉडलों का कभी उपयोग नहीं करती।",+ "empty": "अभी तक कोई निर्णय मॉडल नहीं. वे कैटलॉग से सिंक होते हैं।",+ "thisMonth": "इस महीने {count}",+ "tryTitle": "आज़माएँ",+ "tryText": "टेक्स्ट",+ "tryTextPlaceholder": "मेरा react useEffect दो बार चलता है, क्यों?",+ "tryQuestion": "प्रश्न",+ "tryQuestionPlaceholder": "इसका उत्तर किस तरह के मॉडल को देना चाहिए?",+ "tryOptions": "विकल्प, अल्पविराम से अलग करें",+ "tryOptionsPlaceholder": "चैट, कोड, तर्क, लेखन",+ "tryModel": "मॉडल",+ "tryAuto": "स्वचालित",+ "tryRun": "निर्णय लें",+ "tryRunning": "निर्णय लिया जा रहा है…",+ "tryNeedOptions": "कम से कम दो विकल्प जोड़ें।",+ "tryAnswer": "उत्तर: {choice}",+ "tryConfidence": "{value}% आश्वस्त",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "उदाहरण अनुरोध"}}diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex de7bb608..ab3e0158 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Odluka",+ "pageDesc": "Modeli odluke odgovaraju na pitanje o vašem tekstu izborom, s da ili ne, ili ocjenom te navode koliko su sigurni. Rade na vašim Cloudflare i OpenRouter ključevima.",+ "endpointHint": "Pozovite putem",+ "notRoutingHint": "— odvojeno od chata. Usmjeravanje chata nikada ne koristi ove modele.",+ "empty": "Još nema modela odluke. Sinkroniziraju se iz kataloga.",+ "thisMonth": "{count} ovaj mjesec",+ "tryTitle": "Isprobajte",+ "tryText": "Tekst",+ "tryTextPlaceholder": "moj react useEffect pokreće se dvaput, zašto?",+ "tryQuestion": "Pitanje",+ "tryQuestionPlaceholder": "Koja bi vrsta modela trebala odgovoriti na ovo?",+ "tryOptions": "Opcije, odvojene zarezima",+ "tryOptionsPlaceholder": "chat, kod, rezoniranje, pisanje",+ "tryModel": "Model",+ "tryAuto": "Automatski",+ "tryRun": "Odluči",+ "tryRunning": "Odlučivanje…",+ "tryNeedOptions": "Dodajte barem dvije opcije.",+ "tryAnswer": "Odgovor: {choice}",+ "tryConfidence": "Sigurnost {value} %",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Primjer zahtjeva"}}diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex fa7ce1dd..211cbd36 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Döntés",+ "pageDesc": "A döntési modellek a szövegedre vonatkozó kérdésre választással, igennel vagy nemmel, illetve pontszámmal felelnek, és megadják, mennyire biztosak. A Cloudflare- és OpenRouter-kulcsaidon futnak.",+ "endpointHint": "Hívás ezen keresztül:",+ "notRoutingHint": "— a chattől elkülönítve. A chat útválasztása soha nem használja ezeket a modelleket.",+ "empty": "Még nincsenek döntési modellek. Szinkronizálódnak a katalógusból.",+ "thisMonth": "{count} ebben a hónapban",+ "tryTitle": "Próbáld ki",+ "tryText": "Szöveg",+ "tryTextPlaceholder": "a react useEffect kétszer fut le, miért?",+ "tryQuestion": "Kérdés",+ "tryQuestionPlaceholder": "Milyen típusú modellnek kellene ezt megválaszolnia?",+ "tryOptions": "Lehetőségek, vesszővel elválasztva",+ "tryOptionsPlaceholder": "chat, kód, érvelés, írás",+ "tryModel": "Modell",+ "tryAuto": "Automatikus",+ "tryRun": "Döntés",+ "tryRunning": "Döntés folyamatban…",+ "tryNeedOptions": "Adj meg legalább két lehetőséget.",+ "tryAnswer": "Válasz: {choice}",+ "tryConfidence": "{value}%-os biztonság",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Példakérés"}}diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex 0ce1988e..5c8ca75f 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Keputusan",+ "pageDesc": "Model keputusan menjawab pertanyaan tentang teks Anda dengan pilihan, ya atau tidak, atau skor, dan menyebutkan seberapa yakin mereka. Model ini berjalan dengan kunci Cloudflare dan OpenRouter Anda.",+ "endpointHint": "Panggil melalui",+ "notRoutingHint": "— terpisah dari obrolan. Perutean obrolan tidak pernah menggunakan model ini.",+ "empty": "Belum ada model keputusan. Model disinkronkan dari katalog.",+ "thisMonth": "{count} bulan ini",+ "tryTitle": "Coba",+ "tryText": "Teks",+ "tryTextPlaceholder": "react useEffect saya berjalan dua kali, kenapa?",+ "tryQuestion": "Pertanyaan",+ "tryQuestionPlaceholder": "Jenis model apa yang sebaiknya menjawab ini?",+ "tryOptions": "Opsi, dipisahkan koma",+ "tryOptionsPlaceholder": "obrolan, kode, penalaran, menulis",+ "tryModel": "Model",+ "tryAuto": "Otomatis",+ "tryRun": "Putuskan",+ "tryRunning": "Memutuskan…",+ "tryNeedOptions": "Tambahkan minimal dua opsi.",+ "tryAnswer": "Jawaban: {choice}",+ "tryConfidence": "Yakin {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Contoh permintaan"}}diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex 40eb2af1..48a80384 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Mkpebi",+ "pageDesc": "Ụdị mkpebi na-aza ajụjụ gbasara ederede gị site na nhọrọ, ee ma ọ bụ mba, ma ọ bụ akara, ma na-ekwu otú o si doo ha anya. Ha na-arụ ọrụ na igodo Cloudflare na OpenRouter gị.",+ "endpointHint": "Kpọọ site na",+ "notRoutingHint": "— dị iche na nkata. Nduzi nkata anaghị eji ụdị ndị a mgbe ọ bụla.",+ "empty": "Ọnweghị ụdị mkpebi ugbu a. Ha na-emekọrịta site na katalọgụ.",+ "thisMonth": "{count} n'ọnwa a",+ "tryTitle": "Nwalee ya",+ "tryText": "Ederede",+ "tryTextPlaceholder": "react useEffect m na-agba ugboro abụọ, gịnị kpatara?",+ "tryQuestion": "Ajụjụ",+ "tryQuestionPlaceholder": "Kedu ụdị ụdị kwesịrị ịza nke a?",+ "tryOptions": "Nhọrọ, kewaa ha na rịkọm",+ "tryOptionsPlaceholder": "nkata, koodu, ntụgharị uche, ide ihe",+ "tryModel": "Ụdị",+ "tryAuto": "Akpaaka",+ "tryRun": "Kpebie",+ "tryRunning": "Na-ekpebi…",+ "tryNeedOptions": "Tinye opekata mpe nhọrọ abụọ.",+ "tryAnswer": "Azịza: {choice}",+ "tryConfidence": "O doro anya {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Ihe atụ arịrịọ"}}diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 6c43ccd1..7640df4c 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Decisione",+ "pageDesc": "I modelli di decisione rispondono a una domanda sul tuo testo con una scelta, un sì o no, o un punteggio, e indicano quanto sono sicuri. Funzionano con le tue chiavi Cloudflare e OpenRouter.",+ "endpointHint": "Chiama tramite",+ "notRoutingHint": "— separato dalla chat. Il routing della chat non usa mai questi modelli.",+ "empty": "Nessun modello di decisione ancora. Vengono sincronizzati dal catalogo.",+ "thisMonth": "{count} questo mese",+ "tryTitle": "Provalo",+ "tryText": "Testo",+ "tryTextPlaceholder": "il mio react useEffect viene eseguito due volte, perché?",+ "tryQuestion": "Domanda",+ "tryQuestionPlaceholder": "Quale tipo di modello dovrebbe rispondere?",+ "tryOptions": "Opzioni, separate da virgole",+ "tryOptionsPlaceholder": "chat, codice, ragionamento, scrittura",+ "tryModel": "Modello",+ "tryAuto": "Automatico",+ "tryRun": "Decidi",+ "tryRunning": "Decisione in corso…",+ "tryNeedOptions": "Aggiungi almeno due opzioni.",+ "tryAnswer": "Risposta: {choice}",+ "tryConfidence": "Sicuro al {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Richiesta di esempio"}}diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex 7736fd5a..d23bd08f 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "判定",+ "pageDesc": "判定モデルは、テキストに関する質問に選択肢、はい/いいえ、またはスコアで答え、その確信度を示します。Cloudflare と OpenRouter のキーで動作します。",+ "endpointHint": "呼び出し先",+ "notRoutingHint": "— チャットとは別です。チャットのルーティングでこれらのモデルが使われることはありません。",+ "empty": "判定モデルはまだありません。カタログから同期します。",+ "thisMonth": "今月 {count} 回",+ "tryTitle": "試してみる",+ "tryText": "テキスト",+ "tryTextPlaceholder": "react useEffect が2回実行されるのはなぜ?",+ "tryQuestion": "質問",+ "tryQuestionPlaceholder": "これにはどの種類のモデルが答えるべき?",+ "tryOptions": "選択肢(カンマ区切り)",+ "tryOptionsPlaceholder": "チャット, コード, 推論, 文章作成",+ "tryModel": "モデル",+ "tryAuto": "自動",+ "tryRun": "判定する",+ "tryRunning": "判定中…",+ "tryNeedOptions": "選択肢を2つ以上追加してください。",+ "tryAnswer": "回答: {choice}",+ "tryConfidence": "確信度 {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "リクエスト例"}}diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex 9617e423..807386f1 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "გადაწყვეტილება",+ "pageDesc": "გადაწყვეტილების მოდელები თქვენს ტექსტზე დასმულ კითხვას პასუხობენ არჩევანით, დიახ/არა პასუხით ან შეფასებით და აღნიშნავენ, რამდენად დარწმუნებულები არიან. ისინი მუშაობენ თქვენი Cloudflare და OpenRouter გასაღებებით.",+ "endpointHint": "გამოძახება მეშვეობით",+ "notRoutingHint": "— ჩატისგან განცალკევებით. ჩატის მარშრუტიზაცია ამ მოდელებს არასოდეს იყენებს.",+ "empty": "გადაწყვეტილების მოდელები ჯერ არ არის. ისინი სინქრონიზებულია კატალოგიდან.",+ "thisMonth": "{count} ამ თვეში",+ "tryTitle": "სცადეთ",+ "tryText": "ტექსტი",+ "tryTextPlaceholder": "ჩემი react useEffect ორჯერ ეშვება, რატომ?",+ "tryQuestion": "კითხვა",+ "tryQuestionPlaceholder": "რა ტიპის მოდელმა უნდა უპასუხოს ამას?",+ "tryOptions": "ვარიანტები, მძიმით გამოყოფილი",+ "tryOptionsPlaceholder": "ჩატი, კოდი, მსჯელობა, წერა",+ "tryModel": "მოდელი",+ "tryAuto": "ავტომატური",+ "tryRun": "გადაწყვეტა",+ "tryRunning": "მიმდინარეობს გადაწყვეტა…",+ "tryNeedOptions": "დაამატეთ მინიმუმ ორი ვარიანტი.",+ "tryAnswer": "პასუხი: {choice}",+ "tryConfidence": "{value}% დარწმუნებით",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "მოთხოვნის მაგალითი"}}diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 067ccbef..21ea187c 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "ការសម្រេចចិត្ត",+ "pageDesc": "ម៉ូដែលសម្រេចចិត្តឆ្លើយសំណួរអំពីអត្ថបទរបស់អ្នកដោយជម្រើស បាទ/ចាស ឬទេ ឬពិន្ទុ ហើយប្រាប់ពីកម្រិតទំនុកចិត្ត។ វាដំណើរការលើសោ Cloudflare និង OpenRouter របស់អ្នក។",+ "endpointHint": "ហៅតាមរយៈ",+ "notRoutingHint": "— ដាច់ដោយឡែកពីការជជែក។ ការបញ្ជូនការជជែកមិនដែលប្រើម៉ូដែលទាំងនេះទេ។",+ "empty": "មិនទាន់មានម៉ូដែលសម្រេចចិត្តទេ។ វាធ្វើសមកាលកម្មពីកាតាឡុក។",+ "thisMonth": "{count} ខែនេះ",+ "tryTitle": "សាកល្បង",+ "tryText": "អត្ថបទ",+ "tryTextPlaceholder": "react useEffect របស់ខ្ញុំដំណើរការពីរដង ហេតុអ្វី?",+ "tryQuestion": "សំណួរ",+ "tryQuestionPlaceholder": "តើម៉ូដែលប្រភេទណាគួរឆ្លើយសំណួរនេះ?",+ "tryOptions": "ជម្រើស ដោយបំបែកដោយសញ្ញាក្បៀស",+ "tryOptionsPlaceholder": "ជជែក, កូដ, ការវែកញែក, ការសរសេរ",+ "tryModel": "ម៉ូដែល",+ "tryAuto": "ស្វ័យប្រវត្តិ",+ "tryRun": "សម្រេចចិត្ត",+ "tryRunning": "កំពុងសម្រេចចិត្ត…",+ "tryNeedOptions": "បន្ថែមជម្រើសយ៉ាងហោចណាស់ពីរ។",+ "tryAnswer": "ចម្លើយ៖ {choice}",+ "tryConfidence": "ទំនុកចិត្ត {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ឧទាហរណ៍សំណើ"}}diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 72e0fcf7..4a0b51c3 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "ನಿರ್ಧಾರ",+ "pageDesc": "ನಿರ್ಧಾರ ಮಾದರಿಗಳು ನಿಮ್ಮ ಪಠ್ಯದ ಕುರಿತಾದ ಪ್ರಶ್ನೆಗೆ ಒಂದು ಆಯ್ಕೆ, ಹೌದು ಅಥವಾ ಇಲ್ಲ, ಅಥವಾ ಅಂಕದೊಂದಿಗೆ ಉತ್ತರಿಸುತ್ತವೆ ಮತ್ತು ಅವು ಎಷ್ಟು ಖಚಿತವಾಗಿವೆ ಎಂದು ಹೇಳುತ್ತವೆ. ಅವು ನಿಮ್ಮ Cloudflare ಮತ್ತು OpenRouter ಕೀಲಿಗಳಲ್ಲಿ ಚಲಿಸುತ್ತವೆ.",+ "endpointHint": "ಮೂಲಕ ಕರೆ ಮಾಡಿ",+ "notRoutingHint": "— ಚಾಟ್ನಿಂದ ಪ್ರತ್ಯೇಕ. ಚಾಟ್ ರೂಟಿಂಗ್ ಈ ಮಾದರಿಗಳನ್ನು ಎಂದಿಗೂ ಬಳಸುವುದಿಲ್ಲ.",+ "empty": "ಇನ್ನೂ ಯಾವುದೇ ನಿರ್ಧಾರ ಮಾದರಿಗಳಿಲ್ಲ. ಅವು ಕ್ಯಾಟಲಾಗ್ನಿಂದ ಸಿಂಕ್ ಆಗುತ್ತವೆ.",+ "thisMonth": "ಈ ತಿಂಗಳು {count}",+ "tryTitle": "ಪ್ರಯತ್ನಿಸಿ",+ "tryText": "ಪಠ್ಯ",+ "tryTextPlaceholder": "ನನ್ನ react useEffect ಎರಡು ಬಾರಿ ಚಲಿಸುತ್ತದೆ, ಏಕೆ?",+ "tryQuestion": "ಪ್ರಶ್ನೆ",+ "tryQuestionPlaceholder": "ಇದಕ್ಕೆ ಯಾವ ರೀತಿಯ ಮಾದರಿ ಉತ್ತರಿಸಬೇಕು?",+ "tryOptions": "ಆಯ್ಕೆಗಳು, ಅಲ್ಪವಿರಾಮದಿಂದ ಬೇರ್ಪಡಿಸಿ",+ "tryOptionsPlaceholder": "ಚಾಟ್, ಕೋಡ್, ತರ್ಕ, ಬರವಣಿಗೆ",+ "tryModel": "ಮಾದರಿ",+ "tryAuto": "ಸ್ವಯಂ",+ "tryRun": "ನಿರ್ಧರಿಸಿ",+ "tryRunning": "ನಿರ್ಧರಿಸಲಾಗುತ್ತಿದೆ…",+ "tryNeedOptions": "ಕನಿಷ್ಠ ಎರಡು ಆಯ್ಕೆಗಳನ್ನು ಸೇರಿಸಿ.",+ "tryAnswer": "ಉತ್ತರ: {choice}",+ "tryConfidence": "{value}% ಖಚಿತ",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ಉದಾಹರಣೆ ವಿನಂತಿ"}}diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex ffb4a88d..ce7db080 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "결정",+ "pageDesc": "결정 모델은 텍스트에 대한 질문에 선택지, 예 또는 아니요, 또는 점수로 답하고 얼마나 확신하는지 알려 줍니다. Cloudflare 및 OpenRouter 키로 실행됩니다.",+ "endpointHint": "호출 경로",+ "notRoutingHint": "— 채팅과는 별개입니다. 채팅 라우팅은 이 모델을 절대 사용하지 않습니다.",+ "empty": "아직 결정 모델이 없습니다. 카탈로그에서 동기화됩니다.",+ "thisMonth": "이번 달 {count}회",+ "tryTitle": "사용해 보기",+ "tryText": "텍스트",+ "tryTextPlaceholder": "react useEffect가 두 번 실행돼요, 왜 그런가요?",+ "tryQuestion": "질문",+ "tryQuestionPlaceholder": "어떤 종류의 모델이 이 질문에 답해야 할까요?",+ "tryOptions": "옵션(쉼표로 구분)",+ "tryOptionsPlaceholder": "채팅, 코드, 추론, 글쓰기",+ "tryModel": "모델",+ "tryAuto": "자동",+ "tryRun": "결정하기",+ "tryRunning": "결정 중…",+ "tryNeedOptions": "옵션을 두 개 이상 추가하세요.",+ "tryAnswer": "답변: {choice}",+ "tryConfidence": "확신도 {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "요청 예시"}}diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex f73ab3fa..609a3a51 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Sprendimas",+ "pageDesc": "Sprendimų modeliai atsako į klausimą apie jūsų tekstą pasirinkimu, „taip“ arba „ne“ arba įvertinimu ir nurodo, kiek yra tikri. Jie veikia jūsų Cloudflare ir OpenRouter raktais.",+ "endpointHint": "Kvieskite per",+ "notRoutingHint": "— atskirai nuo pokalbių. Pokalbių maršrutizavimas niekada nenaudoja šių modelių.",+ "empty": "Sprendimų modelių dar nėra. Jie sinchronizuojami iš katalogo.",+ "thisMonth": "{count} šį mėnesį",+ "tryTitle": "Išbandykite",+ "tryText": "Tekstas",+ "tryTextPlaceholder": "mano react useEffect paleidžiamas du kartus, kodėl?",+ "tryQuestion": "Klausimas",+ "tryQuestionPlaceholder": "Koks modelis turėtų į tai atsakyti?",+ "tryOptions": "Parinktys, atskirtos kableliais",+ "tryOptionsPlaceholder": "pokalbis, kodas, samprotavimas, rašymas",+ "tryModel": "Modelis",+ "tryAuto": "Automatiškai",+ "tryRun": "Spręsti",+ "tryRunning": "Sprendžiama…",+ "tryNeedOptions": "Pridėkite bent dvi parinktis.",+ "tryAnswer": "Atsakymas: {choice}",+ "tryConfidence": "Tikrumas {value} %",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Užklausos pavyzdys"}}diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex ae56507f..b75ddf8f 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "തീരുമാനം",+ "pageDesc": "തീരുമാന മോഡലുകൾ നിങ്ങളുടെ ടെക്സ്റ്റിനെക്കുറിച്ചുള്ള ചോദ്യത്തിന് ഒരു തിരഞ്ഞെടുപ്പ്, അതെ അല്ലെങ്കിൽ അല്ല, അല്ലെങ്കിൽ ഒരു സ്കോർ ഉപയോഗിച്ച് ഉത്തരം നൽകുകയും എത്രത്തോളം ഉറപ്പുണ്ടെന്ന് പറയുകയും ചെയ്യുന്നു. ഇവ നിങ്ങളുടെ Cloudflare, OpenRouter കീകളിൽ പ്രവർത്തിക്കുന്നു.",+ "endpointHint": "ഇതുവഴി വിളിക്കുക",+ "notRoutingHint": "— ചാറ്റിൽ നിന്ന് വേറിട്ടത്. ചാറ്റ് റൂട്ടിംഗ് ഈ മോഡലുകൾ ഒരിക്കലും ഉപയോഗിക്കില്ല.",+ "empty": "ഇതുവരെ തീരുമാന മോഡലുകളൊന്നുമില്ല. കാറ്റലോഗിൽ നിന്ന് അവ സമന്വയിപ്പിക്കുന്നു.",+ "thisMonth": "ഈ മാസം {count}",+ "tryTitle": "പരീക്ഷിക്കുക",+ "tryText": "ടെക്സ്റ്റ്",+ "tryTextPlaceholder": "എന്റെ react useEffect രണ്ടുതവണ പ്രവർത്തിക്കുന്നു, എന്തുകൊണ്ട്?",+ "tryQuestion": "ചോദ്യം",+ "tryQuestionPlaceholder": "ഏതുതരം മോഡലാണ് ഇതിന് ഉത്തരം നൽകേണ്ടത്?",+ "tryOptions": "ഓപ്ഷനുകൾ, കോമ ഉപയോഗിച്ച് വേർതിരിക്കുക",+ "tryOptionsPlaceholder": "ചാറ്റ്, കോഡ്, യുക്തി, എഴുത്ത്",+ "tryModel": "മോഡൽ",+ "tryAuto": "ഓട്ടോ",+ "tryRun": "തീരുമാനിക്കുക",+ "tryRunning": "തീരുമാനിക്കുന്നു…",+ "tryNeedOptions": "കുറഞ്ഞത് രണ്ട് ഓപ്ഷനുകൾ ചേർക്കുക.",+ "tryAnswer": "ഉത്തരം: {choice}",+ "tryConfidence": "{value}% ഉറപ്പ്",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ഉദാഹരണ അഭ്യർത്ഥന"}}diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex 023978a1..60fe8a10 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "निर्णय",+ "pageDesc": "निर्णय मॉडेल्स तुमच्या मजकुराबद्दलच्या प्रश्नाचे उत्तर एखादा पर्याय, होय किंवा नाही, किंवा गुण देऊन देतात आणि ते किती खात्रीशीर आहेत ते सांगतात. ते तुमच्या Cloudflare आणि OpenRouter कळांवर चालतात.",+ "endpointHint": "द्वारे कॉल करा",+ "notRoutingHint": "— चॅटपासून वेगळे. चॅट राउटिंग ही मॉडेल्स कधीही वापरत नाही.",+ "empty": "अद्याप कोणतेही निर्णय मॉडेल नाहीत. ते कॅटलॉगमधून समक्रमित होतात.",+ "thisMonth": "या महिन्यात {count}",+ "tryTitle": "वापरून पहा",+ "tryText": "मजकूर",+ "tryTextPlaceholder": "माझा react useEffect दोनदा चालतो, का?",+ "tryQuestion": "प्रश्न",+ "tryQuestionPlaceholder": "याचे उत्तर कोणत्या प्रकारच्या मॉडेलने द्यावे?",+ "tryOptions": "पर्याय, स्वल्पविरामाने वेगळे करा",+ "tryOptionsPlaceholder": "चॅट, कोड, तर्क, लेखन",+ "tryModel": "मॉडेल",+ "tryAuto": "स्वयंचलित",+ "tryRun": "निर्णय घ्या",+ "tryRunning": "निर्णय घेत आहे…",+ "tryNeedOptions": "किमान दोन पर्याय जोडा.",+ "tryAnswer": "उत्तर: {choice}",+ "tryConfidence": "{value}% खात्री",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "उदाहरण विनंती"}}diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex 4a5d44ed..26749d89 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Keputusan",+ "pageDesc": "Model keputusan menjawab soalan tentang teks anda dengan pilihan, ya atau tidak, atau skor, dan menyatakan tahap keyakinannya. Ia berjalan menggunakan kunci Cloudflare dan OpenRouter anda.",+ "endpointHint": "Panggil melalui",+ "notRoutingHint": "— berasingan daripada sembang. Penghalaan sembang tidak pernah menggunakan model ini.",+ "empty": "Belum ada model keputusan. Ia diselaraskan dari katalog.",+ "thisMonth": "{count} bulan ini",+ "tryTitle": "Cuba",+ "tryText": "Teks",+ "tryTextPlaceholder": "react useEffect saya berjalan dua kali, kenapa?",+ "tryQuestion": "Soalan",+ "tryQuestionPlaceholder": "Jenis model apakah yang patut menjawab ini?",+ "tryOptions": "Pilihan, dipisahkan dengan koma",+ "tryOptionsPlaceholder": "sembang, kod, penaakulan, penulisan",+ "tryModel": "Model",+ "tryAuto": "Auto",+ "tryRun": "Putuskan",+ "tryRunning": "Sedang memutuskan…",+ "tryNeedOptions": "Tambah sekurang-kurangnya dua pilihan.",+ "tryAnswer": "Jawapan: {choice}",+ "tryConfidence": "{value}% yakin",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Contoh permintaan"}}diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 2ba5f4e4..730c5a06 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "ဆုံးဖြတ်ချက်",+ "pageDesc": "ဆုံးဖြတ်ချက် မော်ဒယ်များသည် သင့်စာသားနှင့်ပတ်သက်သော မေးခွန်းကို ရွေးချယ်မှုတစ်ခု၊ ဟုတ်/မဟုတ် သို့မဟုတ် ရမှတ်ဖြင့် ဖြေကြားပြီး မည်မျှ ယုံကြည်ကြောင်း ပြောပြပါသည်။ ၎င်းတို့သည် သင့် Cloudflare နှင့် OpenRouter သော့များဖြင့် လည်ပတ်ပါသည်။",+ "endpointHint": "ခေါ်ဆိုရန်",+ "notRoutingHint": "— Chat နှင့် သီးခြားဖြစ်သည်။ Chat routing သည် ဤမော်ဒယ်များကို ဘယ်တော့မှ မသုံးပါ။",+ "empty": "ဆုံးဖြတ်ချက် မော်ဒယ် မရှိသေးပါ။ Catalog ကနေ sync လုပ်ကြပါတယ်။",+ "thisMonth": "ဤလ {count}",+ "tryTitle": "စမ်းကြည့်ပါ",+ "tryText": "စာသား",+ "tryTextPlaceholder": "ကျွန်တော့် react useEffect နှစ်ကြိမ် run နေတယ်၊ ဘာကြောင့်လဲ?",+ "tryQuestion": "မေးခွန်း",+ "tryQuestionPlaceholder": "ဒါကို ဘယ်လို မော်ဒယ်မျိုးက ဖြေသင့်သလဲ?",+ "tryOptions": "ရွေးချယ်စရာများ၊ ကော်မာဖြင့် ခွဲပါ",+ "tryOptionsPlaceholder": "chat, ကုဒ်, ကျိုးကြောင်းဆင်ခြင်ခြင်း, စာရေးခြင်း",+ "tryModel": "မော်ဒယ်",+ "tryAuto": "အလိုအလျောက်",+ "tryRun": "ဆုံးဖြတ်ပါ",+ "tryRunning": "ဆုံးဖြတ်နေသည်…",+ "tryNeedOptions": "ရွေးချယ်စရာ အနည်းဆုံး နှစ်ခု ထည့်ပါ။",+ "tryAnswer": "အဖြေ: {choice}",+ "tryConfidence": "{value}% ယုံကြည်",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "တောင်းဆိုမှု ဥပမာ"}}diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex 31b7581d..eeafa1ce 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "निर्णय",+ "pageDesc": "निर्णय मोडेलहरूले तपाईंको पाठबारे सोधिएको प्रश्नको उत्तर एउटा विकल्प, हो वा होइन, वा अङ्कसहित दिन्छन् र तिनीहरू कति विश्वस्त छन् भनेर बताउँछन्। यिनीहरू तपाईंका Cloudflare र OpenRouter कुञ्जीहरूमा चल्छन्।",+ "endpointHint": "यसबाट कल गर्नुहोस्",+ "notRoutingHint": "— कुराकानीबाट अलग। कुराकानी रूटिङले यी मोडेलहरू कहिल्यै प्रयोग गर्दैन।",+ "empty": "अहिलेसम्म कुनै निर्णय मोडेल छैन। तिनीहरू क्याटलगबाट समक्रमण हुन्छन्।",+ "thisMonth": "यो महिना {count}",+ "tryTitle": "प्रयास गर्नुहोस्",+ "tryText": "पाठ",+ "tryTextPlaceholder": "मेरो react useEffect दुई पटक चल्छ, किन?",+ "tryQuestion": "प्रश्न",+ "tryQuestionPlaceholder": "यसको उत्तर कस्तो प्रकारको मोडेलले दिनुपर्छ?",+ "tryOptions": "विकल्पहरू, अल्पविरामले छुट्याउनुहोस्",+ "tryOptionsPlaceholder": "कुराकानी, कोड, तर्क, लेखन",+ "tryModel": "मोडेल",+ "tryAuto": "स्वचालित",+ "tryRun": "निर्णय गर्नुहोस्",+ "tryRunning": "निर्णय गर्दै…",+ "tryNeedOptions": "कम्तीमा दुई विकल्प थप्नुहोस्।",+ "tryAnswer": "उत्तर: {choice}",+ "tryConfidence": "{value}% विश्वस्त",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "उदाहरण अनुरोध"}}diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex 64e07d7c..68da0479 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Beslissing",+ "pageDesc": "Beslissingsmodellen beantwoorden een vraag over je tekst met een keuze, een ja of nee, of een score, en geven aan hoe zeker ze zijn. Ze draaien op je Cloudflare- en OpenRouter-sleutels.",+ "endpointHint": "Aanroepen via",+ "notRoutingHint": "— los van chat. Chatroutering gebruikt deze modellen nooit.",+ "empty": "Nog geen beslissingsmodellen. Ze synchroniseren vanuit de catalogus.",+ "thisMonth": "{count} deze maand",+ "tryTitle": "Probeer het",+ "tryText": "Tekst",+ "tryTextPlaceholder": "mijn react useEffect draait twee keer, waarom?",+ "tryQuestion": "Vraag",+ "tryQuestionPlaceholder": "Welk soort model moet dit beantwoorden?",+ "tryOptions": "Opties, gescheiden door komma's",+ "tryOptionsPlaceholder": "chat, code, redeneren, schrijven",+ "tryModel": "Model",+ "tryAuto": "Automatisch",+ "tryRun": "Beslissen",+ "tryRunning": "Bezig met beslissen…",+ "tryNeedOptions": "Voeg minstens twee opties toe.",+ "tryAnswer": "Antwoord: {choice}",+ "tryConfidence": "{value}% zeker",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Voorbeeldverzoek"}}diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex 8b8c8cbf..b399eb55 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Beslutning",+ "pageDesc": "Beslutningsmodeller svarer på et spørsmål om teksten din med et valg, et ja eller nei eller en poengsum, og sier hvor sikre de er. De kjører på Cloudflare- og OpenRouter-nøklene dine.",+ "endpointHint": "Kall via",+ "notRoutingHint": "— atskilt fra chat. Chat-ruting bruker aldri disse modellene.",+ "empty": "Ingen beslutningsmodeller ennå. De synkroniserer fra katalogen.",+ "thisMonth": "{count} denne måneden",+ "tryTitle": "Prøv det",+ "tryText": "Tekst",+ "tryTextPlaceholder": "react useEffect-en min kjører to ganger, hvorfor?",+ "tryQuestion": "Spørsmål",+ "tryQuestionPlaceholder": "Hva slags modell bør svare på dette?",+ "tryOptions": "Alternativer, adskilt med komma",+ "tryOptionsPlaceholder": "chat, kode, resonnering, skriving",+ "tryModel": "Modell",+ "tryAuto": "Auto",+ "tryRun": "Bestem",+ "tryRunning": "Bestemmer…",+ "tryNeedOptions": "Legg til minst to alternativer.",+ "tryAnswer": "Svar: {choice}",+ "tryConfidence": "{value} % sikker",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Eksempelforespørsel"}}diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex 56d67fa7..08d0a58b 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "ନିଷ୍ପତ୍ତି",+ "pageDesc": "ନିଷ୍ପତ୍ତି ମଡେଲଗୁଡିକ ଆପଣଙ୍କ ପାଠ୍ୟ ବିଷୟରେ ଏକ ପ୍ରଶ୍ନର ଉତ୍ତର ଏକ ବିକଳ୍ପ, ହଁ କିମ୍ବା ନା, କିମ୍ବା ସ୍କୋର ସହିତ ଦିଅନ୍ତି ଏବଂ ସେମାନେ କେତେ ନିଶ୍ଚିତ ତାହା କହନ୍ତି। ସେଗୁଡିକ ଆପଣଙ୍କ Cloudflare ଏବଂ OpenRouter ଚାବିରେ ଚାଲେ।",+ "endpointHint": "ମାଧ୍ୟମରେ କଲ୍ କରନ୍ତୁ",+ "notRoutingHint": "— ଚାଟ୍ ଠାରୁ ଅଲଗା। ଚାଟ୍ ରାଉଟିଂ କେବେ ବି ଏହି ମଡେଲଗୁଡିକ ବ୍ୟବହାର କରେ ନାହିଁ।",+ "empty": "ଏପର୍ଯ୍ୟନ୍ତ କୌଣସି ନିଷ୍ପତ୍ତି ମଡେଲ୍ ନାହିଁ। ସେଗୁଡିକ କ୍ୟାଟଲଗ୍ ରୁ ସିଙ୍କ୍ ହୁଏ।",+ "thisMonth": "ଏହି ମାସରେ {count}",+ "tryTitle": "ଚେଷ୍ଟା କରନ୍ତୁ",+ "tryText": "ପାଠ୍ୟ",+ "tryTextPlaceholder": "ମୋର react useEffect ଦୁଇଥର ଚାଲୁଛି, କାହିଁକି?",+ "tryQuestion": "ପ୍ରଶ୍ନ",+ "tryQuestionPlaceholder": "ଏହାର ଉତ୍ତର କେଉଁ ପ୍ରକାରର ମଡେଲ୍ ଦେବା ଉଚିତ?",+ "tryOptions": "ବିକଳ୍ପଗୁଡିକ, କମା ଦ୍ୱାରା ଅଲଗା କରନ୍ତୁ",+ "tryOptionsPlaceholder": "ଚାଟ୍, କୋଡ୍, ଯୁକ୍ତି, ଲେଖା",+ "tryModel": "ମଡେଲ୍",+ "tryAuto": "ସ୍ୱୟଂଚାଳିତ",+ "tryRun": "ନିଷ୍ପତ୍ତି ନିଅନ୍ତୁ",+ "tryRunning": "ନିଷ୍ପତ୍ତି ନିଆଯାଉଛି…",+ "tryNeedOptions": "ଅତି କମରେ ଦୁଇଟି ବିକଳ୍ପ ଯୋଡନ୍ତୁ।",+ "tryAnswer": "ଉତ୍ତର: {choice}",+ "tryConfidence": "{value}% ନିଶ୍ଚିତ",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ଉଦାହରଣ ଅନୁରୋଧ"}}diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex 8b5766c4..df67d6ba 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "ਫ਼ੈਸਲਾ",+ "pageDesc": "ਫ਼ੈਸਲਾ ਮਾਡਲ ਤੁਹਾਡੇ ਟੈਕਸਟ ਬਾਰੇ ਸਵਾਲ ਦਾ ਜਵਾਬ ਇੱਕ ਚੋਣ, ਹਾਂ ਜਾਂ ਨਾਂਹ, ਜਾਂ ਸਕੋਰ ਨਾਲ ਦਿੰਦੇ ਹਨ ਅਤੇ ਦੱਸਦੇ ਹਨ ਕਿ ਉਹ ਕਿੰਨੇ ਯਕੀਨੀ ਹਨ। ਇਹ ਤੁਹਾਡੀਆਂ Cloudflare ਅਤੇ OpenRouter ਕੁੰਜੀਆਂ 'ਤੇ ਚੱਲਦੇ ਹਨ।",+ "endpointHint": "ਰਾਹੀਂ ਕਾਲ ਕਰੋ",+ "notRoutingHint": "— ਚੈਟ ਤੋਂ ਵੱਖਰਾ। ਚੈਟ ਰੂਟਿੰਗ ਕਦੇ ਵੀ ਇਹ ਮਾਡਲ ਨਹੀਂ ਵਰਤਦੀ।",+ "empty": "ਅਜੇ ਤੱਕ ਕੋਈ ਫ਼ੈਸਲਾ ਮਾਡਲ ਨਹੀਂ ਹਨ। ਉਹ ਕੈਟਾਲਾਗ ਤੋਂ ਸਿੰਕ ਹੁੰਦੇ ਹਨ।",+ "thisMonth": "ਇਸ ਮਹੀਨੇ {count}",+ "tryTitle": "ਅਜ਼ਮਾਓ",+ "tryText": "ਟੈਕਸਟ",+ "tryTextPlaceholder": "ਮੇਰਾ react useEffect ਦੋ ਵਾਰ ਚੱਲਦਾ ਹੈ, ਕਿਉਂ?",+ "tryQuestion": "ਸਵਾਲ",+ "tryQuestionPlaceholder": "ਇਸ ਦਾ ਜਵਾਬ ਕਿਸ ਕਿਸਮ ਦੇ ਮਾਡਲ ਨੂੰ ਦੇਣਾ ਚਾਹੀਦਾ ਹੈ?",+ "tryOptions": "ਵਿਕਲਪ, ਕੌਮਿਆਂ ਨਾਲ ਵੱਖ ਕਰੋ",+ "tryOptionsPlaceholder": "ਚੈਟ, ਕੋਡ, ਤਰਕ, ਲਿਖਣਾ",+ "tryModel": "ਮਾਡਲ",+ "tryAuto": "ਆਟੋ",+ "tryRun": "ਫ਼ੈਸਲਾ ਕਰੋ",+ "tryRunning": "ਫ਼ੈਸਲਾ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ…",+ "tryNeedOptions": "ਘੱਟੋ-ਘੱਟ ਦੋ ਵਿਕਲਪ ਸ਼ਾਮਲ ਕਰੋ।",+ "tryAnswer": "ਜਵਾਬ: {choice}",+ "tryConfidence": "{value}% ਯਕੀਨੀ",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ਉਦਾਹਰਨ ਬੇਨਤੀ"}}diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex 93504cac..1bf2f9a3 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Decyzja",+ "pageDesc": "Modele decyzyjne odpowiadają na pytanie o Twój tekst wyborem, odpowiedzią tak lub nie albo oceną i podają, jak bardzo są pewne. Działają na Twoich kluczach Cloudflare i OpenRouter.",+ "endpointHint": "Wywołaj przez",+ "notRoutingHint": "— oddzielnie od czatu. Routing czatu nigdy nie używa tych modeli.",+ "empty": "Nie ma jeszcze modeli decyzyjnych. Synchronizują się z katalogiem.",+ "thisMonth": "{count} w tym miesiącu",+ "tryTitle": "Wypróbuj",+ "tryText": "Tekst",+ "tryTextPlaceholder": "mój react useEffect uruchamia się dwa razy, dlaczego?",+ "tryQuestion": "Pytanie",+ "tryQuestionPlaceholder": "Jaki rodzaj modelu powinien na to odpowiedzieć?",+ "tryOptions": "Opcje oddzielone przecinkami",+ "tryOptionsPlaceholder": "czat, kod, rozumowanie, pisanie",+ "tryModel": "Model",+ "tryAuto": "Automatycznie",+ "tryRun": "Zdecyduj",+ "tryRunning": "Decydowanie…",+ "tryNeedOptions": "Dodaj co najmniej dwie opcje.",+ "tryAnswer": "Odpowiedź: {choice}",+ "tryConfidence": "Pewność: {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Przykładowe żądanie"}}diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex db5f5a9d..2bc770c2 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Decisão",+ "pageDesc": "Modelos de decisão respondem a uma pergunta sobre o seu texto com uma escolha, um sim ou não, ou uma pontuação, e dizem o quanto estão confiantes. Eles rodam com suas chaves do Cloudflare e do OpenRouter.",+ "endpointHint": "Chamar via",+ "notRoutingHint": "— separado do chat. O roteamento do chat nunca usa esses modelos.",+ "empty": "Ainda sem modelos de decisão. Eles sincronizam do catálogo.",+ "thisMonth": "{count} este mês",+ "tryTitle": "Experimente",+ "tryText": "Texto",+ "tryTextPlaceholder": "meu react useEffect roda duas vezes, por quê?",+ "tryQuestion": "Pergunta",+ "tryQuestionPlaceholder": "Que tipo de modelo deveria responder isto?",+ "tryOptions": "Opções, separadas por vírgulas",+ "tryOptionsPlaceholder": "chat, código, raciocínio, escrita",+ "tryModel": "Modelo",+ "tryAuto": "Automático",+ "tryRun": "Decidir",+ "tryRunning": "Decidindo…",+ "tryNeedOptions": "Adicione pelo menos duas opções.",+ "tryAnswer": "Resposta: {choice}",+ "tryConfidence": "{value}% de confiança",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Exemplo de requisição"}}diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 6492f12e..804d9a0d 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Decisão",+ "pageDesc": "Os modelos de decisão respondem a uma pergunta sobre o seu texto com uma escolha, um sim ou não, ou uma pontuação, e indicam o seu grau de confiança. Funcionam com as suas chaves Cloudflare e OpenRouter.",+ "endpointHint": "Chamar via",+ "notRoutingHint": "— separado do chat. O encaminhamento do chat nunca utiliza estes modelos.",+ "empty": "Ainda não há modelos de decisão. Eles sincronizam a partir do catálogo.",+ "thisMonth": "{count} este mês",+ "tryTitle": "Experimentar",+ "tryText": "Texto",+ "tryTextPlaceholder": "o meu react useEffect é executado duas vezes, porquê?",+ "tryQuestion": "Pergunta",+ "tryQuestionPlaceholder": "Que tipo de modelo deve responder a isto?",+ "tryOptions": "Opções, separadas por vírgulas",+ "tryOptionsPlaceholder": "chat, código, raciocínio, escrita",+ "tryModel": "Modelo",+ "tryAuto": "Automático",+ "tryRun": "Decidir",+ "tryRunning": "A decidir…",+ "tryNeedOptions": "Adicione pelo menos duas opções.",+ "tryAnswer": "Resposta: {choice}",+ "tryConfidence": "{value}% de confiança",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Exemplo de pedido"}}diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex 7c6fdca5..c370a18d 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Decizie",+ "pageDesc": "Modelele de decizie răspund la o întrebare despre textul tău cu o alegere, un da sau nu, ori un scor și spun cât de sigure sunt. Rulează pe cheile tale Cloudflare și OpenRouter.",+ "endpointHint": "Apelează prin",+ "notRoutingHint": "— separat de chat. Rutarea chatului nu folosește niciodată aceste modele.",+ "empty": "Încă nu există modele de decizie. Se sincronizează din catalog.",+ "thisMonth": "{count} luna aceasta",+ "tryTitle": "Încearcă",+ "tryText": "Text",+ "tryTextPlaceholder": "react useEffect-ul meu rulează de două ori, de ce?",+ "tryQuestion": "Întrebare",+ "tryQuestionPlaceholder": "Ce tip de model ar trebui să răspundă la asta?",+ "tryOptions": "Opțiuni, separate prin virgule",+ "tryOptionsPlaceholder": "chat, cod, raționament, scriere",+ "tryModel": "Model",+ "tryAuto": "Automat",+ "tryRun": "Decide",+ "tryRunning": "Se decide…",+ "tryNeedOptions": "Adaugă cel puțin două opțiuni.",+ "tryAnswer": "Răspuns: {choice}",+ "tryConfidence": "Încredere {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Exemplu de cerere"}}diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex 631cb427..491fd13a 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Решения",+ "pageDesc": "Модели решений отвечают на вопрос о вашем тексте выбором, ответом «да» или «нет» либо оценкой и сообщают, насколько они уверены. Они работают на ваших ключах Cloudflare и OpenRouter.",+ "endpointHint": "Вызов через",+ "notRoutingHint": "— отдельно от чата. Маршрутизация чата никогда не использует эти модели.",+ "empty": "Моделей решений пока нет. Они синхронизируются из каталога.",+ "thisMonth": "{count} в этом месяце",+ "tryTitle": "Попробовать",+ "tryText": "Текст",+ "tryTextPlaceholder": "мой react useEffect запускается дважды, почему?",+ "tryQuestion": "Вопрос",+ "tryQuestionPlaceholder": "Какая модель должна ответить на это?",+ "tryOptions": "Варианты через запятую",+ "tryOptionsPlaceholder": "чат, код, рассуждение, письмо",+ "tryModel": "Модель",+ "tryAuto": "Авто",+ "tryRun": "Решить",+ "tryRunning": "Принимаем решение…",+ "tryNeedOptions": "Добавьте как минимум два варианта.",+ "tryAnswer": "Ответ: {choice}",+ "tryConfidence": "Уверенность {value}%",+ "tryServedBy": "{model} · {latency} мс",+ "exampleTitle": "Пример запроса"}}diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 0eafbae5..c03d47c9 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "තීරණය",+ "pageDesc": "තීරණ ආකෘති ඔබේ පෙළ පිළිබඳ ප්රශ්නයකට තේරීමක්, ඔව් හෝ නැත, හෝ ලකුණක් මඟින් පිළිතුරු දී ඒවා කෙතරම් විශ්වාසද යන්න පවසයි. ඒවා ඔබේ Cloudflare සහ OpenRouter යතුරු මත ධාවනය වේ.",+ "endpointHint": "හරහා අමතන්න",+ "notRoutingHint": "— කතාබසින් වෙන්ව. කතාබස් මාර්ගගත කිරීම කිසිවිටෙක මෙම ආකෘති භාවිත නොකරයි.",+ "empty": "තවමත් තීරණ ආකෘති නොමැත. ඒවා නාමාවලියෙන් සමමුහුර්ත වේ.",+ "thisMonth": "මෙම මාසයේ {count}",+ "tryTitle": "උත්සාහ කරන්න",+ "tryText": "පෙළ",+ "tryTextPlaceholder": "මගේ react useEffect දෙවරක් ධාවනය වේ, ඇයි?",+ "tryQuestion": "ප්රශ්නය",+ "tryQuestionPlaceholder": "මෙයට පිළිතුරු දිය යුත්තේ කුමන වර්ගයේ ආකෘතියක්ද?",+ "tryOptions": "විකල්ප, කොමා මඟින් වෙන් කරන්න",+ "tryOptionsPlaceholder": "කතාබස්, කේතය, තර්කනය, ලිවීම",+ "tryModel": "ආකෘතිය",+ "tryAuto": "ස්වයංක්රීය",+ "tryRun": "තීරණය කරන්න",+ "tryRunning": "තීරණය කරමින්…",+ "tryNeedOptions": "අවම වශයෙන් විකල්ප දෙකක් එක් කරන්න.",+ "tryAnswer": "පිළිතුර: {choice}",+ "tryConfidence": "{value}% විශ්වාසයි",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "උදාහරණ ඉල්ලීම"}}diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex 81d1f21d..7ba5782c 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Rozhodnutie",+ "pageDesc": "Rozhodovacie modely odpovedajú na otázku k vášmu textu voľbou, áno alebo nie, alebo skóre a uvádzajú, nakoľko sú si isté. Bežia na vašich kľúčoch Cloudflare a OpenRouter.",+ "endpointHint": "Volajte cez",+ "notRoutingHint": "— oddelene od chatu. Smerovanie chatu tieto modely nikdy nepoužíva.",+ "empty": "Zatiaľ žiadne rozhodovacie modely. Synchronizujú sa z katalógu.",+ "thisMonth": "{count} tento mesiac",+ "tryTitle": "Vyskúšať",+ "tryText": "Text",+ "tryTextPlaceholder": "môj react useEffect sa spúšťa dvakrát, prečo?",+ "tryQuestion": "Otázka",+ "tryQuestionPlaceholder": "Aký typ modelu by na to mal odpovedať?",+ "tryOptions": "Možnosti oddelené čiarkami",+ "tryOptionsPlaceholder": "chat, kód, uvažovanie, písanie",+ "tryModel": "Model",+ "tryAuto": "Automaticky",+ "tryRun": "Rozhodnúť",+ "tryRunning": "Rozhodujem…",+ "tryNeedOptions": "Pridajte aspoň dve možnosti.",+ "tryAnswer": "Odpoveď: {choice}",+ "tryConfidence": "Istota {value} %",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Ukážková požiadavka"}}diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex 4c56df91..285cb6e9 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Одлука",+ "pageDesc": "Модели одлуке одговарају на питање о вашем тексту избором, са да или не, или оценом, и наводе колико су сигурни. Раде на вашим Cloudflare и OpenRouter кључевима.",+ "endpointHint": "Позовите преко",+ "notRoutingHint": "— одвојено од ћаскања. Рутирање ћаскања никада не користи ове моделе.",+ "empty": "Још нема модела одлуке. Они се синхронизују из каталога.",+ "thisMonth": "{count} овог месеца",+ "tryTitle": "Испробајте",+ "tryText": "Текст",+ "tryTextPlaceholder": "мој react useEffect се покреће двапут, зашто?",+ "tryQuestion": "Питање",+ "tryQuestionPlaceholder": "Која врста модела треба да одговори на ово?",+ "tryOptions": "Опције, одвојене зарезима",+ "tryOptionsPlaceholder": "ћаскање, код, резоновање, писање",+ "tryModel": "Модел",+ "tryAuto": "Аутоматски",+ "tryRun": "Одлучи",+ "tryRunning": "Одлучује се…",+ "tryNeedOptions": "Додајте најмање две опције.",+ "tryAnswer": "Одговор: {choice}",+ "tryConfidence": "Сигурност {value}%",+ "tryServedBy": "{model} · {latency} мс",+ "exampleTitle": "Пример захтева"}}diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex 30095e57..d4d81172 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Beslut",+ "pageDesc": "Beslutsmodeller besvarar en fråga om din text med ett val, ett ja eller nej, eller ett betyg, och anger hur säkra de är. De körs på dina Cloudflare- och OpenRouter-nycklar.",+ "endpointHint": "Anropa via",+ "notRoutingHint": "— separat från chatten. Chattroutningen använder aldrig dessa modeller.",+ "empty": "Inga beslutsmodeller än. De synkar från katalogen.",+ "thisMonth": "{count} denna månad",+ "tryTitle": "Prova",+ "tryText": "Text",+ "tryTextPlaceholder": "min react useEffect körs två gånger, varför?",+ "tryQuestion": "Fråga",+ "tryQuestionPlaceholder": "Vilken typ av modell borde svara på detta?",+ "tryOptions": "Alternativ, separerade med kommatecken",+ "tryOptionsPlaceholder": "chatt, kod, resonemang, skrivande",+ "tryModel": "Modell",+ "tryAuto": "Auto",+ "tryRun": "Besluta",+ "tryRunning": "Beslutar…",+ "tryNeedOptions": "Lägg till minst två alternativ.",+ "tryAnswer": "Svar: {choice}",+ "tryConfidence": "{value} % säker",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Exempelförfrågan"}}diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 4f5b4e0e..25099042 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Uamuzi",+ "pageDesc": "Mifano ya uamuzi hujibu swali kuhusu maandishi yako kwa chaguo, ndiyo au hapana, au alama, na kueleza jinsi ilivyo na uhakika. Inaendeshwa kwa funguo zako za Cloudflare na OpenRouter.",+ "endpointHint": "Piga kupitia",+ "notRoutingHint": "— tofauti na gumzo. Uelekezaji wa gumzo hautumii kamwe mifano hii.",+ "empty": "Hakuna mifano ya uamuzi bado. Inasawazishwa kutoka kwa katalogi.",+ "thisMonth": "{count} mwezi huu",+ "tryTitle": "Ijaribu",+ "tryText": "Maandishi",+ "tryTextPlaceholder": "react useEffect yangu inaendeshwa mara mbili, kwa nini?",+ "tryQuestion": "Swali",+ "tryQuestionPlaceholder": "Ni aina gani ya mfano inapaswa kujibu hili?",+ "tryOptions": "Chaguo, zilizotenganishwa kwa koma",+ "tryOptionsPlaceholder": "gumzo, msimbo, hoja, uandishi",+ "tryModel": "Mfano",+ "tryAuto": "Otomatiki",+ "tryRun": "Amua",+ "tryRunning": "Inaamua…",+ "tryNeedOptions": "Ongeza angalau chaguo mbili.",+ "tryAnswer": "Jibu: {choice}",+ "tryConfidence": "Uhakika wa {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Mfano wa ombi"}}diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex 0d467189..ab0d26b2 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "முடிவு",+ "pageDesc": "முடிவு மாதிரிகள் உங்கள் உரையைப் பற்றிய ஒரு கேள்விக்கு ஒரு தேர்வு, ஆம் அல்லது இல்லை, அல்லது ஒரு மதிப்பெண்ணுடன் பதிலளித்து, எவ்வளவு உறுதியாக உள்ளன என்பதைக் கூறுகின்றன. அவை உங்கள் Cloudflare மற்றும் OpenRouter விசைகளில் இயங்குகின்றன.",+ "endpointHint": "இதன் மூலம் அழைக்கவும்",+ "notRoutingHint": "— அரட்டையிலிருந்து தனி. அரட்டை வழித்தடம் இந்த மாதிரிகளை ஒருபோதும் பயன்படுத்தாது.",+ "empty": "இன்னும் முடிவு மாதிரிகள் இல்லை. அவை அட்டவணையில் இருந்து ஒத்திசைக்கப்படுகின்றன.",+ "thisMonth": "இந்த மாதம் {count}",+ "tryTitle": "முயற்சிக்கவும்",+ "tryText": "உரை",+ "tryTextPlaceholder": "என் react useEffect இரண்டு முறை இயங்குகிறது, ஏன்?",+ "tryQuestion": "கேள்வி",+ "tryQuestionPlaceholder": "இதற்கு எந்த வகை மாதிரி பதிலளிக்க வேண்டும்?",+ "tryOptions": "விருப்பங்கள், காற்புள்ளிகளால் பிரிக்கவும்",+ "tryOptionsPlaceholder": "அரட்டை, குறியீடு, பகுத்தறிவு, எழுதுதல்",+ "tryModel": "மாதிரி",+ "tryAuto": "தானியங்கு",+ "tryRun": "முடிவு செய்",+ "tryRunning": "முடிவு செய்கிறது…",+ "tryNeedOptions": "குறைந்தது இரண்டு விருப்பங்களைச் சேர்க்கவும்.",+ "tryAnswer": "பதில்: {choice}",+ "tryConfidence": "{value}% உறுதி",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "எடுத்துக்காட்டு கோரிக்கை"}}diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex 08285b72..c953b212 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "నిర్ణయం",+ "pageDesc": "నిర్ణయ మోడల్స్ మీ టెక్స్ట్ గురించిన ప్రశ్నకు ఒక ఎంపిక, అవును లేదా కాదు, లేదా స్కోరుతో సమాధానం ఇస్తాయి మరియు అవి ఎంత నమ్మకంగా ఉన్నాయో చెబుతాయి. ఇవి మీ Cloudflare మరియు OpenRouter కీలపై నడుస్తాయి.",+ "endpointHint": "దీని ద్వారా కాల్ చేయండి",+ "notRoutingHint": "— చాట్ నుండి వేరు. చాట్ రూటింగ్ ఈ మోడల్స్ను ఎప్పుడూ ఉపయోగించదు.",+ "empty": "ఇంకా నిర్ణయ మోడల్స్ లేవు. అవి కేటలాగ్ నుండి సమకాలీకరించబడతాయి.",+ "thisMonth": "ఈ నెల {count}",+ "tryTitle": "ప్రయత్నించండి",+ "tryText": "టెక్స్ట్",+ "tryTextPlaceholder": "నా react useEffect రెండుసార్లు నడుస్తోంది, ఎందుకు?",+ "tryQuestion": "ప్రశ్న",+ "tryQuestionPlaceholder": "దీనికి ఏ రకమైన మోడల్ సమాధానం ఇవ్వాలి?",+ "tryOptions": "ఎంపికలు, కామాలతో వేరు చేయండి",+ "tryOptionsPlaceholder": "చాట్, కోడ్, తార్కికం, రచన",+ "tryModel": "మోడల్",+ "tryAuto": "ఆటో",+ "tryRun": "నిర్ణయించు",+ "tryRunning": "నిర్ణయిస్తోంది…",+ "tryNeedOptions": "కనీసం రెండు ఎంపికలను జోడించండి.",+ "tryAnswer": "సమాధానం: {choice}",+ "tryConfidence": "{value}% నమ్మకం",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ఉదాహరణ అభ్యర్థన"}}diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex 79d63ce9..4e67d295 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "การตัดสินใจ",+ "pageDesc": "โมเดลการตัดสินใจจะตอบคำถามเกี่ยวกับข้อความของคุณด้วยตัวเลือก ใช่หรือไม่ หรือคะแนน พร้อมบอกระดับความมั่นใจ โดยทำงานด้วยคีย์ Cloudflare และ OpenRouter ของคุณ",+ "endpointHint": "เรียกผ่าน",+ "notRoutingHint": "— แยกจากแชท การกำหนดเส้นทางแชทจะไม่ใช้โมเดลเหล่านี้",+ "empty": "ยังไม่มีโมเดลการตัดสินใจ ระบบจะซิงค์จากแคตตาล็อก",+ "thisMonth": "{count} ในเดือนนี้",+ "tryTitle": "ลองใช้",+ "tryText": "ข้อความ",+ "tryTextPlaceholder": "react useEffect ของฉันทำงานสองครั้ง ทำไม?",+ "tryQuestion": "คำถาม",+ "tryQuestionPlaceholder": "โมเดลประเภทใดควรตอบคำถามนี้?",+ "tryOptions": "ตัวเลือก คั่นด้วยเครื่องหมายจุลภาค",+ "tryOptionsPlaceholder": "แชท, โค้ด, การให้เหตุผล, การเขียน",+ "tryModel": "โมเดล",+ "tryAuto": "อัตโนมัติ",+ "tryRun": "ตัดสินใจ",+ "tryRunning": "กำลังตัดสินใจ…",+ "tryNeedOptions": "เพิ่มตัวเลือกอย่างน้อยสองรายการ",+ "tryAnswer": "คำตอบ: {choice}",+ "tryConfidence": "มั่นใจ {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "ตัวอย่างคำขอ"}}diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 0ec2a34d..963dd2fe 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Desisyon",+ "pageDesc": "Sinasagot ng mga modelo ng desisyon ang isang tanong tungkol sa iyong teksto gamit ang isang pagpipilian, oo o hindi, o isang iskor, at sinasabi kung gaano sila kasigurado. Tumatakbo sila sa iyong mga susi ng Cloudflare at OpenRouter.",+ "endpointHint": "Tawagan sa pamamagitan ng",+ "notRoutingHint": "— hiwalay sa chat. Hindi kailanman ginagamit ng chat routing ang mga modelong ito.",+ "empty": "Wala pang modelo ng desisyon. Nagse-sync sila mula sa katalogo.",+ "thisMonth": "{count} ngayong buwan",+ "tryTitle": "Subukan",+ "tryText": "Teksto",+ "tryTextPlaceholder": "dalawang beses tumatakbo ang react useEffect ko, bakit?",+ "tryQuestion": "Tanong",+ "tryQuestionPlaceholder": "Anong uri ng modelo ang dapat sumagot dito?",+ "tryOptions": "Mga pagpipilian, pinaghihiwalay ng kuwit",+ "tryOptionsPlaceholder": "chat, code, pangangatwiran, pagsusulat",+ "tryModel": "Modelo",+ "tryAuto": "Awtomatiko",+ "tryRun": "Magpasya",+ "tryRunning": "Nagpapasya…",+ "tryNeedOptions": "Magdagdag ng hindi bababa sa dalawang pagpipilian.",+ "tryAnswer": "Sagot: {choice}",+ "tryConfidence": "{value}% sigurado",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Halimbawang request"}}diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex c51079f4..8ff6a367 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Karar",+ "pageDesc": "Karar modelleri metninizle ilgili bir soruyu bir seçimle, evet ya da hayırla veya bir puanla yanıtlar ve ne kadar emin olduklarını söyler. Cloudflare ve OpenRouter anahtarlarınızla çalışırlar.",+ "endpointHint": "Şununla çağır:",+ "notRoutingHint": "— sohbetten ayrı. Sohbet yönlendirmesi bu modelleri asla kullanmaz.",+ "empty": "Henüz karar modeli yok. Katalogdan senkronize edilirler.",+ "thisMonth": "Bu ay {count}",+ "tryTitle": "Deneyin",+ "tryText": "Metin",+ "tryTextPlaceholder": "react useEffect'im iki kez çalışıyor, neden?",+ "tryQuestion": "Soru",+ "tryQuestionPlaceholder": "Bunu hangi tür model yanıtlamalı?",+ "tryOptions": "Virgülle ayrılmış seçenekler",+ "tryOptionsPlaceholder": "sohbet, kod, akıl yürütme, yazma",+ "tryModel": "Model",+ "tryAuto": "Otomatik",+ "tryRun": "Karar ver",+ "tryRunning": "Karar veriliyor…",+ "tryNeedOptions": "En az iki seçenek ekleyin.",+ "tryAnswer": "Yanıt: {choice}",+ "tryConfidence": "%{value} emin",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Örnek istek"}}diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex 24232f55..b3369eab 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Рішення",+ "pageDesc": "Моделі рішень відповідають на запитання про ваш текст вибором, відповіддю «так» чи «ні» або оцінкою та повідомляють, наскільки вони впевнені. Вони працюють на ваших ключах Cloudflare і OpenRouter.",+ "endpointHint": "Виклик через",+ "notRoutingHint": "— окремо від чату. Маршрутизація чату ніколи не використовує ці моделі.",+ "empty": "Моделей рішень ще немає. Вони синхронізуються з каталогу.",+ "thisMonth": "{count} цього місяця",+ "tryTitle": "Спробувати",+ "tryText": "Текст",+ "tryTextPlaceholder": "мій react useEffect запускається двічі, чому?",+ "tryQuestion": "Запитання",+ "tryQuestionPlaceholder": "Яка модель має відповісти на це?",+ "tryOptions": "Варіанти через кому",+ "tryOptionsPlaceholder": "чат, код, міркування, письмо",+ "tryModel": "Модель",+ "tryAuto": "Авто",+ "tryRun": "Вирішити",+ "tryRunning": "Вирішуємо…",+ "tryNeedOptions": "Додайте щонайменше два варіанти.",+ "tryAnswer": "Відповідь: {choice}",+ "tryConfidence": "Впевненість {value}%",+ "tryServedBy": "{model} · {latency} мс",+ "exampleTitle": "Приклад запиту"}}diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex 5bd99677..bdc051ef 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "فیصلہ",+ "pageDesc": "فیصلہ ماڈلز آپ کے متن کے بارے میں سوال کا جواب کسی انتخاب، ہاں یا نہیں، یا اسکور سے دیتے ہیں اور بتاتے ہیں کہ وہ کتنے پراعتماد ہیں۔ یہ آپ کی Cloudflare اور OpenRouter چابیوں پر چلتے ہیں۔",+ "endpointHint": "کے ذریعے کال کریں",+ "notRoutingHint": "— چیٹ سے الگ۔ چیٹ روٹنگ کبھی ان ماڈلز کو استعمال نہیں کرتی۔",+ "empty": "ابھی تک کوئی فیصلہ ماڈل نہیں۔ وہ کیٹلاگ سے مطابقت پذیر ہوتے ہیں۔",+ "thisMonth": "اس مہینے {count}",+ "tryTitle": "آزمائیں",+ "tryText": "متن",+ "tryTextPlaceholder": "میرا react useEffect دو بار چلتا ہے، کیوں؟",+ "tryQuestion": "سوال",+ "tryQuestionPlaceholder": "اس کا جواب کس قسم کے ماڈل کو دینا چاہیے؟",+ "tryOptions": "اختیارات، کوما سے الگ کریں",+ "tryOptionsPlaceholder": "چیٹ, کوڈ, استدلال, تحریر",+ "tryModel": "ماڈل",+ "tryAuto": "خودکار",+ "tryRun": "فیصلہ کریں",+ "tryRunning": "فیصلہ ہو رہا ہے…",+ "tryNeedOptions": "کم از کم دو اختیارات شامل کریں۔",+ "tryAnswer": "جواب: {choice}",+ "tryConfidence": "{value}% اعتماد",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "مثالی درخواست"}}diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex 0665d5bc..a7fb0f5e 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Qaror",+ "pageDesc": "Qaror modellari matningiz haqidagi savolga tanlov, ha yoki yoʻq, yoki ball bilan javob beradi va qanchalik ishonchli ekanini aytadi. Ular Cloudflare va OpenRouter kalitlaringizda ishlaydi.",+ "endpointHint": "Chaqirish manzili",+ "notRoutingHint": "— chatdan alohida. Chat yoʻnaltirish bu modellardan hech qachon foydalanmaydi.",+ "empty": "Hozircha qaror modellari yoʻq. Ular katalogdan sinxronlashtiriladi.",+ "thisMonth": "Bu oy {count}",+ "tryTitle": "Sinab koʻring",+ "tryText": "Matn",+ "tryTextPlaceholder": "react useEffect ikki marta ishlayapti, nega?",+ "tryQuestion": "Savol",+ "tryQuestionPlaceholder": "Bunga qanday model javob berishi kerak?",+ "tryOptions": "Vergul bilan ajratilgan variantlar",+ "tryOptionsPlaceholder": "chat, kod, mulohaza, yozish",+ "tryModel": "Model",+ "tryAuto": "Avto",+ "tryRun": "Qaror qilish",+ "tryRunning": "Qaror qilinmoqda…",+ "tryNeedOptions": "Kamida ikkita variant qoʻshing.",+ "tryAnswer": "Javob: {choice}",+ "tryConfidence": "{value}% ishonch",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Namuna soʻrov"}}diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex 91c731f9..7a8481cf 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Quyết định",+ "pageDesc": "Mô hình quyết định trả lời một câu hỏi về văn bản của bạn bằng một lựa chọn, có hoặc không, hoặc một điểm số, và cho biết mức độ tự tin. Chúng chạy bằng khóa Cloudflare và OpenRouter của bạn.",+ "endpointHint": "Gọi qua",+ "notRoutingHint": "— tách biệt với trò chuyện. Định tuyến trò chuyện không bao giờ dùng các mô hình này.",+ "empty": "Chưa có mô hình quyết định nào. Chúng được đồng bộ từ danh mục.",+ "thisMonth": "{count} tháng này",+ "tryTitle": "Dùng thử",+ "tryText": "Văn bản",+ "tryTextPlaceholder": "react useEffect của tôi chạy hai lần, tại sao?",+ "tryQuestion": "Câu hỏi",+ "tryQuestionPlaceholder": "Loại mô hình nào nên trả lời câu này?",+ "tryOptions": "Tùy chọn, phân tách bằng dấu phẩy",+ "tryOptionsPlaceholder": "trò chuyện, mã, suy luận, viết",+ "tryModel": "Mô hình",+ "tryAuto": "Tự động",+ "tryRun": "Quyết định",+ "tryRunning": "Đang quyết định…",+ "tryNeedOptions": "Hãy thêm ít nhất hai tùy chọn.",+ "tryAnswer": "Câu trả lời: {choice}",+ "tryConfidence": "Tự tin {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Yêu cầu mẫu"}}diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex da8ca7c1..6be0b5ab 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "Ìpinnu",+ "pageDesc": "Àwọn àwòṣe ìpinnu máa ń dáhùn ìbéèrè nípa ọ̀rọ̀ rẹ pẹ̀lú àṣàyàn kan, bẹ́ẹ̀ni tàbí bẹ́ẹ̀kọ́, tàbí máàkì, wọ́n sì máa ń sọ bí ó ti dá wọn lójú tó. Wọ́n ń ṣiṣẹ́ lórí àwọn bọtini Cloudflare àti OpenRouter rẹ.",+ "endpointHint": "Pè nípasẹ̀",+ "notRoutingHint": "— yàtọ̀ sí iwiregbe. Ìdarí iwiregbe kì í lo àwọn àwòṣe wọ̀nyí rárá.",+ "empty": "Kò sí àwọn àwòṣe ìpinnu síbẹ̀síbẹ̀. Wọ́n ń muṣiṣẹpọ láti katalogi.",+ "thisMonth": "{count} ní oṣù yìí",+ "tryTitle": "Gbìyànjú rẹ̀",+ "tryText": "Ọ̀rọ̀",+ "tryTextPlaceholder": "react useEffect mi ń ṣiṣẹ́ lẹ́ẹ̀mejì, kí ló dé?",+ "tryQuestion": "Ìbéèrè",+ "tryQuestionPlaceholder": "Irú àwòṣe wo ló yẹ kó dáhùn èyí?",+ "tryOptions": "Àwọn àṣàyàn, tí a fi kọ́mà yà sọ́tọ̀",+ "tryOptionsPlaceholder": "iwiregbe, kóòdù, ìrònú, kíkọ",+ "tryModel": "Àwòṣe",+ "tryAuto": "Aládàáṣe",+ "tryRun": "Pinnu",+ "tryRunning": "Ó ń pinnu…",+ "tryNeedOptions": "Ṣàfikún ó kéré tán àṣàyàn méjì.",+ "tryAnswer": "Ìdáhùn: {choice}",+ "tryConfidence": "Ó dá a lójú {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "Àpẹẹrẹ ìbéèrè"}}diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 48082bc9..1db80c72 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "决策",+ "pageDesc": "决策模型针对你的文本回答一个问题,给出一个选项、是或否,或一个评分,并说明其置信度。它们使用你的 Cloudflare 和 OpenRouter 密钥运行。",+ "endpointHint": "调用端点",+ "notRoutingHint": "— 与对话分开。对话路由从不使用这些模型。",+ "empty": "暂无决策模型,将从目录同步。",+ "thisMonth": "本月 {count} 次",+ "tryTitle": "试一试",+ "tryText": "文本",+ "tryTextPlaceholder": "我的 react useEffect 运行了两次,为什么?",+ "tryQuestion": "问题",+ "tryQuestionPlaceholder": "应该由哪类模型来回答这个问题?",+ "tryOptions": "选项,用逗号分隔",+ "tryOptionsPlaceholder": "对话, 代码, 推理, 写作",+ "tryModel": "模型",+ "tryAuto": "自动",+ "tryRun": "决策",+ "tryRunning": "决策中…",+ "tryNeedOptions": "请至少添加两个选项。",+ "tryAnswer": "答案:{choice}",+ "tryConfidence": "置信度 {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "请求示例"}}diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 1bfbfb7e..a3760add 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -1264,5 +1264,29 @@"analyticsToday": "Today","agentsBadgeClaude": "Web search: WebSearch tool served by your search keys","agentsBadgeCodex": "Web search: web_search tool served by your search keys"+ },+ "decision": {+ "tab": "決策",+ "pageDesc": "決策模型針對你的文字回答一個問題,給出一個選項、是或否,或一個分數,並說明其信心程度。它們使用你的 Cloudflare 和 OpenRouter 金鑰執行。",+ "endpointHint": "呼叫端點",+ "notRoutingHint": "— 與對話分開。對話路由從不使用這些模型。",+ "empty": "尚無決策模型,將從目錄同步。",+ "thisMonth": "本月 {count} 次",+ "tryTitle": "試試看",+ "tryText": "文字",+ "tryTextPlaceholder": "我的 react useEffect 執行了兩次,為什麼?",+ "tryQuestion": "問題",+ "tryQuestionPlaceholder": "應該由哪類模型來回答這個問題?",+ "tryOptions": "選項,以逗號分隔",+ "tryOptionsPlaceholder": "對話, 程式碼, 推理, 寫作",+ "tryModel": "模型",+ "tryAuto": "自動",+ "tryRun": "決策",+ "tryRunning": "決策中…",+ "tryNeedOptions": "請至少新增兩個選項。",+ "tryAnswer": "答案:{choice}",+ "tryConfidence": "信心 {value}%",+ "tryServedBy": "{model} · {latency} ms",+ "exampleTitle": "請求範例"}}diff --git a/client/src/lib/decision.test.ts b/client/src/lib/decision.test.tsnew file mode 100644index 00000000..e8f56e7e--- /dev/null+++ b/client/src/lib/decision.test.ts@@ -0,0 +1,20 @@+import { describe, expect, it } from 'vitest'+import { decisionExampleCurl, parseOptions, topProbabilities } from './decision'++describe('decision helpers', () => {+ it('parses comma-separated options', () => {+ expect(parseOptions(' a, b ,c,, b ')).toEqual(['a', 'b', 'c'])+ expect(parseOptions('')).toEqual([])+ })++ it('sorts probabilities highest first and drops junk', () => {+ expect(topProbabilities({ a: 0.1, b: 0.7, c: Number.NaN, d: 0.2 })).toEqual([['b', 0.7], ['d', 0.2], ['a', 0.1]])+ expect(topProbabilities(undefined)).toEqual([])+ })++ it('builds a runnable curl example against this origin', () => {+ const curl = decisionExampleCurl('http://localhost:3001')+ expect(curl).toContain('curl http://localhost:3001/v1/decisions')+ expect(curl).toContain('"type": "choice"')+ })+})diff --git a/client/src/lib/decision.ts b/client/src/lib/decision.tsnew file mode 100644index 00000000..9760197b--- /dev/null+++ b/client/src/lib/decision.ts@@ -0,0 +1,54 @@+// Models → Decision page helpers. Mirrors server/src/services/decision.ts.++export interface DecisionModel {+ id: number+ platform: string+ modelId: string+ displayName: string+ priority: number+ enabled: boolean+ quotaLabel: string+ contextWindow: number | null+ keyCount: number+ healthyKeyCount: number+ decisionsThisMonth: number+}++export interface DecisionResult {+ model: string+ provider: string+ answers: Record<string, unknown>+ usage: { input_tokens: number; output_tokens: number }+}++/** "a, b ,c,,b" → ['a', 'b', 'c']: trimmed, non-empty, de-duplicated. */+export function parseOptions(raw: string): string[] {+ return [...new Set(raw.split(',').map(s => s.trim()).filter(Boolean))]+}++/** Option probabilities, highest first. */+export function topProbabilities(probabilities: Record<string, number> | undefined): Array<[string, number]> {+ if (!probabilities) return []+ return Object.entries(probabilities)+ .filter(([, p]) => typeof p === 'number' && Number.isFinite(p))+ .sort((a, b) => b[1] - a[1])+}++export function decisionExampleCurl(origin: string): string {+ const body = {+ state: 'my react useEffect runs twice, why?',+ questions: {+ tier: {+ type: 'choice',+ instructions: 'Which kind of model should answer this?',+ criteria: { chat: 'Casual chat', code: 'Coding', reasoning: 'Maths and logic' },+ },+ },+ }+ return [+ `curl ${origin}/v1/decisions \\`,+ ` -H "Authorization: Bearer $FREELLMAPI_KEY" \\`,+ ` -H "Content-Type: application/json" \\`,+ ` -d '${JSON.stringify(body, null, 2).replace(/\n/g, '\n ')}'`,+ ].join('\n')+}diff --git a/client/src/pages/DecisionPage.tsx b/client/src/pages/DecisionPage.tsxnew file mode 100644index 00000000..4ad36f3b--- /dev/null+++ b/client/src/pages/DecisionPage.tsx@@ -0,0 +1,5 @@+import { DecisionModelsView } from '@/components/decision-models'++export default function DecisionPage() {+ return <DecisionModelsView />+}diff --git a/server/src/__tests__/db/migrate/roundtrip.test.ts b/server/src/__tests__/db/migrate/roundtrip.test.tsindex 841e5c5e..2ae1f376 100644--- a/server/src/__tests__/db/migrate/roundtrip.test.ts+++ b/server/src/__tests__/db/migrate/roundtrip.test.ts@@ -44,6 +44,7 @@ const KEY_MONTHLY_USAGE_FILENAME = '20260914_000001_key_monthly_usage.ts';const QUOTA_SNAPSHOT_FRESHNESS_FILENAME = '20260915_000001_quota_snapshot_freshness.ts';const CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME = '20260930_000001_custom_endpoint_group_label.ts';const SEARCH_ENGINES_FILENAME = '20261013_000001_search_engines.ts';+const DECISION_REQUESTS_FILENAME = '20261016_000001_decision_requests.ts';interface SchemaRow {type: string;@@ -134,6 +135,7 @@ describe('migration round trip', () => {QUOTA_SNAPSHOT_FRESHNESS_FILENAME,CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME,SEARCH_ENGINES_FILENAME,+ DECISION_REQUESTS_FILENAME,]);} finally {db.close();diff --git a/server/src/__tests__/helpers/decision-models.ts b/server/src/__tests__/helpers/decision-models.tsnew file mode 100644index 00000000..73c69dca--- /dev/null+++ b/server/src/__tests__/helpers/decision-models.ts@@ -0,0 +1,16 @@+import { getDb } from '../../db/index.js';++// Decision models only arrive through the catalog's `decisionModels` registry,+// so tests that exercise routing seed the two launch models in catalog order.+export const DECISION_MODELS = [+ { platform: 'cloudflare', modelId: '@cf/cloudflare/clef-flash', displayName: 'Clef Flash', quotaLabel: 'Workers AI free daily neurons', meta: { contextWindow: 24576 } },+ { platform: 'openrouter', modelId: 'inception/mercury-decide:free', displayName: 'Mercury Decide (free)', quotaLabel: 'Free model, 50 or 1,000 requests/day', meta: { contextWindow: 65536 } },+];++export function seedDecisionModels(): void {+ const insert = getDb().prepare(`+ INSERT OR IGNORE INTO media_models (platform, model_id, display_name, modality, priority, enabled, quota_label, meta_json)+ VALUES (?, ?, ?, 'decision', ?, 1, ?, ?)+ `);+ DECISION_MODELS.forEach((m, i) => insert.run(m.platform, m.modelId, m.displayName, i, m.quotaLabel, JSON.stringify(m.meta)));+}diff --git a/server/src/__tests__/routes/decisions.test.ts b/server/src/__tests__/routes/decisions.test.tsnew file mode 100644index 00000000..1dac4c11--- /dev/null+++ b/server/src/__tests__/routes/decisions.test.ts@@ -0,0 +1,145 @@+import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';+import type { Express } from 'express';+import { createApp } from '../../app.js';+import { initDb, getDb, getUnifiedApiKey } from '../../db/index.js';+import { encrypt } from '../../lib/crypto.js';+import { clearAllCooldowns } from '../../services/ratelimit.js';+import { mintDashboardToken } from '../helpers/auth.js';+import { seedDecisionModels } from '../helpers/decision-models.js';++// HTTP surface of decision models: POST /v1/decisions (and the /v1/systemone+// alias) and GET /v1/decisions/models for API callers, /api/decisions/* for the+// dashboard's Models → Decision page.++const realFetch = globalThis.fetch;+let dashToken = '';++function addKey(platform: string, raw: string): number {+ const { encrypted, iv, authTag } = encrypt(raw);+ const row = getDb().prepare(`+ INSERT INTO api_keys (platform, label, encrypted_key, iv, auth_tag, status, enabled)+ VALUES (?, 'test', ?, ?, ?, 'healthy', 1)+ `).run(platform, encrypted, iv, authTag);+ return Number(row.lastInsertRowid);+}++async function call(app: Express, method: string, path: string, opts: { body?: unknown; auth?: 'dash' | 'api' | null } = {}) {+ 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 headers: Record<string, string> = { 'Content-Type': 'application/json' };+ const auth = opts.auth === undefined ? (path.startsWith('/api') ? 'dash' : 'api') : opts.auth;+ if (auth === 'dash') headers.Authorization = `Bearer ${dashToken}`;+ if (auth === 'api') headers.Authorization = `Bearer ${getUnifiedApiKey()}`;+ const res = await realFetch(`http://127.0.0.1:${addr.port}${path}`, {+ method,+ headers,+ body: opts.body === undefined ? undefined : JSON.stringify(opts.body),+ });+ const body = await res.json().catch(() => null);+ server.close();+ return { status: res.status, body };+}++const ANSWERS = { tier: { type: 'choice', choice: 'code', probabilities: { light: 0.1, code: 0.9 }, confidence: 0.8 } };+const BODY = {+ state: 'fix: TypeError: Cannot read properties of undefined',+ questions: { tier: { type: 'choice', instructions: 'Which tier?', criteria: { light: 'chat', code: 'coding' } } },+};++describe('decision routes', () => {+ let app: Express;++ beforeEach(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ seedDecisionModels();+ clearAllCooldowns(Number.MAX_SAFE_INTEGER);+ app = createApp();+ dashToken = mintDashboardToken();+ addKey('cloudflare', 'acct:tok');+ globalThis.fetch = vi.fn(() => Promise.resolve(new Response(+ JSON.stringify({ success: true, result: { answers: ANSWERS, usage: { input_tokens: 42, output_tokens: 0 } } }),+ { status: 200, headers: { 'content-type': 'application/json' } },+ ))) as unknown as typeof fetch;+ });++ afterEach(() => {+ globalThis.fetch = realFetch;+ vi.restoreAllMocks();+ });++ it('POST /v1/decisions needs the unified key', async () => {+ const res = await call(app, 'POST', '/v1/decisions', { body: BODY, auth: null });+ expect(res.status).toBe(401);+ });++ it('POST /v1/decisions returns the answers and the model that served them', async () => {+ const res = await call(app, 'POST', '/v1/decisions', { body: BODY });+ expect(res.status).toBe(200);+ expect(res.body).toEqual({+ object: 'decision',+ model: '@cf/cloudflare/clef-flash',+ provider: 'cloudflare',+ answers: ANSWERS,+ usage: { input_tokens: 42, output_tokens: 0 },+ });+ });++ it('POST /v1/systemone is an alias', async () => {+ const res = await call(app, 'POST', '/v1/systemone', { body: BODY });+ expect(res.status).toBe(200);+ expect(res.body.answers).toEqual(ANSWERS);+ });++ it('validates the body', async () => {+ const noState = await call(app, 'POST', '/v1/decisions', { body: { questions: BODY.questions } });+ expect(noState.status).toBe(400);+ const badType = await call(app, 'POST', '/v1/decisions', {+ body: { state: 'x', questions: { q: { type: 'essay', instructions: 'write' } } },+ });+ expect(badType.status).toBe(400);+ const noQuestions = await call(app, 'POST', '/v1/decisions', { body: { state: 'x', questions: {} } });+ expect(noQuestions.status).toBe(400);+ });++ it('GET /v1/decisions/models lists the enabled models and whether a key exists', async () => {+ const res = await call(app, 'GET', '/v1/decisions/models');+ expect(res.status).toBe(200);+ expect(res.body.data).toEqual([+ { id: '@cf/cloudflare/clef-flash', object: 'decision_model', provider: 'cloudflare', name: 'Clef Flash', context_window: 24576, available: true },+ { id: 'inception/mercury-decide:free', object: 'decision_model', provider: 'openrouter', name: 'Mercury Decide (free)', context_window: 65536, available: false },+ ]);+ });++ it('decision models never show up in the chat model list', async () => {+ const res = await call(app, 'GET', '/v1/models');+ expect(res.status).toBe(200);+ const ids = (res.body.data as Array<{ id: string }>).map(m => m.id);+ expect(ids).not.toContain('@cf/cloudflare/clef-flash');+ expect(ids).not.toContain('inception/mercury-decide:free');+ });++ it('dashboard lists, toggles and tries decision models', async () => {+ const list = await call(app, 'GET', '/api/decisions/models');+ expect(list.status).toBe(200);+ expect(list.body).toHaveLength(2);+ const id = list.body[1].id;+ const patched = await call(app, 'PATCH', `/api/decisions/models/${id}`, { body: { enabled: false } });+ expect(patched.status).toBe(200);+ expect(patched.body.enabled).toBe(false);++ const tried = await call(app, 'POST', '/api/decisions/try', {+ body: { state: 'my react effect runs twice', question: 'Which tier?', options: ['light', 'code'] },+ });+ expect(tried.status).toBe(200);+ expect(tried.body.provider).toBe('cloudflare');+ const sent = JSON.parse(((globalThis.fetch as any).mock.calls[0][1] as RequestInit).body as string);+ expect(sent.questions).toEqual({ answer: { type: 'choice', instructions: 'Which tier?', criteria: { light: null, code: null } } });+ });++ it('dashboard routes need the dashboard session', async () => {+ const res = await call(app, 'GET', '/api/decisions/models', { auth: null });+ expect(res.status).toBe(401);+ });+});diff --git a/server/src/__tests__/services/catalog-sync.test.ts b/server/src/__tests__/services/catalog-sync.test.tsindex 722c6049..70195964 100644--- a/server/src/__tests__/services/catalog-sync.test.ts+++ b/server/src/__tests__/services/catalog-sync.test.ts@@ -852,3 +852,85 @@ describe('applyCatalog: searchEngines', () => {expect(reapplyCachedCatalog().reapplied).toBe(false);});});++// Decision models ride their own optional registry into media_models with+// modality 'decision', on the same rules as search engines.+describe('applyCatalog: decisionModels', () => {+ type CatalogDecision = NonNullable<AnyCatalog['decisionModels']>[number];++ beforeAll(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ });++ function decisionRoster(): CatalogDecision[] {+ return [+ {+ platform: 'cloudflare', modelId: '@cf/cloudflare/clef-flash', displayName: 'Clef Flash', priority: 0, enabled: true,+ quotaLabel: 'Workers AI free daily neurons', contextWindow: 24576, premiumSince: '2026-09-15T00:00:00.000Z',+ },+ {+ platform: 'openrouter', modelId: 'inception/mercury-decide:free', displayName: 'Mercury Decide (free)', priority: 1, enabled: true,+ },+ ];+ }++ function decisionCatalog(entries?: CatalogDecision[]): AnyCatalog {+ const catalog = catalogOf(existingAsCatalogModels());+ if (entries) catalog.decisionModels = entries;+ return catalog;+ }++ function decisionRows(): Array<{ platform: string; model_id: string; enabled: number; quota_label: string; meta_json: string | null }> {+ return getDb().prepare(`+ SELECT platform, model_id, enabled, quota_label, meta_json+ FROM media_models WHERE modality = 'decision' ORDER BY priority, id+ `).all() as any;+ }++ it('ships no decision models until a catalog carries the registry', () => {+ expect(decisionRows()).toEqual([]);+ });++ it('applies the registry as a full snapshot with metadata in meta_json', () => {+ applyCatalog(getDb(), decisionCatalog(decisionRoster()));+ expect(decisionRows().map(r => `${r.platform}:${r.model_id}`))+ .toEqual(['cloudflare:@cf/cloudflare/clef-flash', 'openrouter:inception/mercury-decide:free']);+ expect(JSON.parse(decisionRows()[0].meta_json!)).toEqual({ contextWindow: 24576, premiumSince: '2026-09-15T00:00:00.000Z' });+ });++ it('never adds decision models to the chat models table', () => {+ const chat = getDb().prepare("SELECT COUNT(*) AS n FROM models WHERE model_id IN ('@cf/cloudflare/clef-flash', 'inception/mercury-decide:free')").get() as { n: number };+ expect(chat.n).toBe(0);+ });++ it('keeps existing rows when a catalog omits the registry, prunes on an empty one', () => {+ applyCatalog(getDb(), decisionCatalog(undefined));+ expect(decisionRows()).toHaveLength(2);+ applyCatalog(getDb(), decisionCatalog([]));+ expect(decisionRows()).toEqual([]);+ applyCatalog(getDb(), decisionCatalog(decisionRoster()));+ expect(decisionRows()).toHaveLength(2);+ });++ it('keeps a local disable across catalog applies', () => {+ getDb().prepare("UPDATE media_models SET enabled = 0 WHERE model_id = 'inception/mercury-decide:free'").run();+ applyCatalog(getDb(), decisionCatalog(decisionRoster()));+ expect(decisionRows().find(r => r.platform === 'openrouter')!.enabled).toBe(0);+ });++ it('skips a model whose platform has no decision adapter in this binary', () => {+ const roster = decisionRoster();+ roster.push({ platform: 'groq', modelId: 'some-decider', displayName: 'Nope', priority: 5, enabled: true });+ const counts = applyCatalog(getDb(), decisionCatalog(roster));+ expect(counts.skippedUnknownPlatform).toBeGreaterThanOrEqual(1);+ expect(decisionRows().map(r => r.model_id)).not.toContain('some-decider');+ });++ it('rejects a malformed decisionModels entry before applying the cached catalog', () => {+ const catalog = decisionCatalog(decisionRoster());+ (catalog.decisionModels![0] as any).enabled = 'yes';+ setSetting('catalog_applied_json', JSON.stringify(catalog));+ expect(reapplyCachedCatalog().reapplied).toBe(false);+ });+});diff --git a/server/src/__tests__/services/decision.test.ts b/server/src/__tests__/services/decision.test.tsnew file mode 100644index 00000000..bfcdecb4--- /dev/null+++ b/server/src/__tests__/services/decision.test.ts@@ -0,0 +1,160 @@+import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';+import { initDb, getDb } from '../../db/index.js';+import { encrypt } from '../../lib/crypto.js';+import { clearAllCooldowns, isOnCooldown } from '../../services/ratelimit.js';+import {+ runDecision,+ DecisionError,+ listDecisionModels,+ setDecisionModelEnabled,+ decisionsAvailable,+ DECISION_PLATFORMS,+} from '../../services/decision.js';+import { listAllMediaModels } from '../../services/media.js';+import { seedDecisionModels } from '../helpers/decision-models.js';++const realFetch = globalThis.fetch;++function addKey(platform: string, raw = `${platform}-test-key`): number {+ const { encrypted, iv, authTag } = encrypt(raw);+ const row = getDb().prepare(`+ INSERT INTO api_keys (platform, label, encrypted_key, iv, auth_tag, status, enabled)+ VALUES (?, 'test', ?, ?, ?, 'healthy', 1)+ `).run(platform, encrypted, iv, authTag);+ return Number(row.lastInsertRowid);+}++function json(body: unknown, status = 200, headers: Record<string, string> = {}) {+ return new Response(JSON.stringify(body), { status, headers: { 'content-type': 'application/json', ...headers } });+}++type Call = [string, RequestInit];+function mockFetch(handler: (url: string, init: RequestInit) => Response | Promise<Response>) {+ const fn = vi.fn((url: string, init: RequestInit) => Promise.resolve(handler(String(url), init)));+ globalThis.fetch = fn as unknown as typeof fetch;+ return fn;+}+const calls = (fn: ReturnType<typeof mockFetch>) => fn.mock.calls as unknown as Call[];+const bodyOf = (call: Call) => JSON.parse(call[1].body as string);++const REQUEST = {+ state: 'Write a Python function that merges two sorted lists.',+ questions: {+ tier: { type: 'choice' as const, instructions: 'Which tier should answer?', criteria: { light: 'chat', code: 'coding' } },+ },+};+const ANSWERS = { tier: { type: 'choice', choice: 'code', probabilities: { light: 0.02, code: 0.98 }, confidence: 0.96 } };++function logRows() {+ return getDb().prepare('SELECT model_id, platform, status, question_count, input_tokens FROM decision_requests ORDER BY id').all() as+ Array<{ model_id: string; platform: string; status: string; question_count: number; input_tokens: number }>;+}++describe('decision service', () => {+ beforeEach(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ seedDecisionModels();+ clearAllCooldowns(Number.MAX_SAFE_INTEGER);+ });++ afterEach(() => {+ globalThis.fetch = realFetch;+ vi.restoreAllMocks();+ });++ it('has adapters for exactly the launch platforms', () => {+ expect([...DECISION_PLATFORMS].sort()).toEqual(['cloudflare', 'openrouter']);+ });++ it('calls Cloudflare ai/run with the account from the key and the short model selector', async () => {+ addKey('cloudflare', 'acct123:cf-token');+ const fn = mockFetch(() => json({ success: true, result: { model: 'clef-flash', answers: ANSWERS, usage: { input_tokens: 219, output_tokens: 0 } } }));+ const out = await runDecision(REQUEST, { clientAgent: null });+ expect(out).toEqual({ model: '@cf/cloudflare/clef-flash', provider: 'cloudflare', answers: ANSWERS, usage: { input_tokens: 219, output_tokens: 0 } });+ const [url, init] = calls(fn)[0];+ expect(url).toBe('https://api.cloudflare.com/client/v4/accounts/acct123/ai/run/@cf/cloudflare/clef-flash');+ expect((init.headers as Record<string, string>).Authorization).toBe('Bearer cf-token');+ expect(bodyOf(calls(fn)[0])).toEqual({ model: 'clef-flash', state: REQUEST.state, questions: REQUEST.questions });+ expect(logRows()).toEqual([{ model_id: '@cf/cloudflare/clef-flash', platform: 'cloudflare', status: 'ok', question_count: 1, input_tokens: 219 }]);+ });++ it('calls OpenRouter alpha decisions with the full model id', async () => {+ addKey('openrouter', 'sk-or-test');+ const fn = mockFetch(() => json({ model: 'inception/mercury-decide-20260930', answers: ANSWERS, usage: { input_tokens: 156, output_tokens: 1, cost: 0 } }));+ const out = await runDecision(REQUEST, { model: 'inception/mercury-decide:free', clientAgent: null });+ expect(out.provider).toBe('openrouter');+ expect(out.answers).toEqual(ANSWERS);+ expect(calls(fn)[0][0]).toBe('https://openrouter.ai/api/alpha/decisions');+ expect(bodyOf(calls(fn)[0]).model).toBe('inception/mercury-decide:free');+ });++ it("'auto' falls over to the next model when the first one's key is rate limited", async () => {+ const cfKey = addKey('cloudflare', 'acct:tok');+ addKey('openrouter', 'sk-or');+ const fn = mockFetch(url => url.includes('cloudflare')+ ? json({ errors: [{ message: 'rate limited' }] }, 429, { 'retry-after': '30' })+ : json({ answers: ANSWERS, usage: { input_tokens: 150, output_tokens: 1 } }));+ const out = await runDecision(REQUEST, { model: 'auto', clientAgent: null });+ expect(out.provider).toBe('openrouter');+ expect(calls(fn)).toHaveLength(2);+ expect(isOnCooldown('cloudflare', '@cf/cloudflare/clef-flash', cfKey)).toBe(true);+ expect(logRows().map(r => r.status)).toEqual(['error', 'ok']);+ });++ it('skips models whose platform has no key', async () => {+ addKey('openrouter');+ const fn = mockFetch(() => json({ answers: ANSWERS, usage: {} }));+ const out = await runDecision(REQUEST, { clientAgent: null });+ expect(out.provider).toBe('openrouter');+ expect(calls(fn)).toHaveLength(1);+ });++ it('says how to fix it when no platform key exists', async () => {+ await expect(runDecision(REQUEST, { clientAgent: null })).rejects.toMatchObject({ status: 503, code: 'no_decision_keys' });+ expect(decisionsAvailable()).toBe(false);+ });++ it('rejects an unknown or turned-off model with a 400', async () => {+ addKey('openrouter');+ await expect(runDecision(REQUEST, { model: 'nope', clientAgent: null })).rejects.toMatchObject({ status: 400 });+ const id = listDecisionModels().find(m => m.platform === 'openrouter')!.id;+ expect(setDecisionModelEnabled(id, false)).toBe(true);+ await expect(runDecision(REQUEST, { model: 'inception/mercury-decide:free', clientAgent: null }))+ .rejects.toThrow(/turned off/);+ });++ it('does not pass an upstream 401 through as the caller\'s fault', async () => {+ addKey('cloudflare', 'acct:bad');+ mockFetch(() => json({ errors: [{ message: 'bad token' }] }, 401));+ const err = await runDecision(REQUEST, { model: '@cf/cloudflare/clef-flash', clientAgent: null }).catch(e => e);+ expect(err).toBeInstanceOf(DecisionError);+ expect(err.status).toBe(502);+ });++ it('treats a Cloudflare success:false body as a failure', async () => {+ addKey('cloudflare', 'acct:tok');+ mockFetch(() => json({ success: false, errors: [{ message: 'model error' }] }));+ await expect(runDecision(REQUEST, { model: '@cf/cloudflare/clef-flash', clientAgent: null })).rejects.toMatchObject({ status: 502 });+ });++ it('lists models with key counts and monthly usage', async () => {+ addKey('cloudflare', 'acct:tok');+ mockFetch(() => json({ success: true, result: { answers: ANSWERS, usage: { input_tokens: 10 } } }));+ await runDecision(REQUEST, { clientAgent: null });+ const [cf, or] = listDecisionModels();+ expect(cf).toMatchObject({ modelId: '@cf/cloudflare/clef-flash', enabled: true, keyCount: 1, healthyKeyCount: 1, decisionsThisMonth: 1, contextWindow: 24576 });+ expect(or).toMatchObject({ modelId: 'inception/mercury-decide:free', keyCount: 0, decisionsThisMonth: 0 });+ });++ it('keeps decision models off the image/audio media list', () => {+ expect(listAllMediaModels().some(m => m.modality === 'decision')).toBe(false);+ });++ it('only toggles decision rows', () => {+ getDb().prepare(`INSERT INTO media_models (platform, model_id, display_name, modality, priority, enabled, quota_label)+ VALUES ('cloudflare', 'img', 'Img', 'image', 0, 1, '')`).run();+ const imageId = (getDb().prepare("SELECT id FROM media_models WHERE model_id = 'img'").get() as { id: number }).id;+ expect(setDecisionModelEnabled(imageId, false)).toBe(false);+ });+});diff --git a/server/src/app.ts b/server/src/app.tsindex 581bd442..cf9ce2c1 100644--- a/server/src/app.ts+++ b/server/src/app.ts@@ -17,6 +17,7 @@ import { profilesRouter } from './routes/profiles.js';import { embeddingsRouter } from './routes/embeddings.js';import { mediaRouter } from './routes/media.js';import { searchRouter } from './routes/search.js';+import { decisionsRouter } from './routes/decisions.js';import { analyticsRouter } from './routes/analytics.js';import { healthRouter } from './routes/health.js';import { freeTierRouter } from './routes/free-tier.js';@@ -260,6 +261,7 @@ export function createApp(config?: Config) {app.use('/api/embeddings', requireAuth, embeddingsRouter);app.use('/api/media', requireAuth, mediaRouter);app.use('/api/search', requireAuth, searchRouter);+ app.use('/api/decisions', requireAuth, decisionsRouter);app.use('/api/analytics', requireAuth, analyticsRouter);app.use('/api/health', requireAuth, healthRouter);app.use('/api/free-tier', requireAuth, freeTierRouter);diff --git a/server/src/db/migrate/defaults.ts b/server/src/db/migrate/defaults.tsindex 93d3501f..111ba5b0 100644--- a/server/src/db/migrate/defaults.ts+++ b/server/src/db/migrate/defaults.ts@@ -39,6 +39,7 @@ import * as quotaSnapshotFreshness from '../migrations/20260915_000001_quota_snaimport * as requestModelAttribution from '../migrations/20260913_000001_request_model_attribution.js';import * as customEndpointGroupLabel from '../migrations/20260930_000001_custom_endpoint_group_label.js';import * as searchEngines from '../migrations/20261013_000001_search_engines.js';+import * as decisionRequests from '../migrations/20261016_000001_decision_requests.js';export interface MigrationModule {up(db: Db): void;@@ -90,6 +91,7 @@ export const CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME = '20260930_000001_custom_endpexport const KEY_MONTHLY_USAGE_FILENAME = '20260914_000001_key_monthly_usage.ts';export const QUOTA_SNAPSHOT_FRESHNESS_FILENAME = '20260915_000001_quota_snapshot_freshness.ts';export const SEARCH_ENGINES_FILENAME = '20261013_000001_search_engines.ts';+export const DECISION_REQUESTS_FILENAME = '20261016_000001_decision_requests.ts';export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: LEGACY_BASELINE_FILENAME, module: legacyBaseline },@@ -132,4 +134,5 @@ export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: QUOTA_SNAPSHOT_FRESHNESS_FILENAME, module: quotaSnapshotFreshness },{ filename: CUSTOM_ENDPOINT_GROUP_LABEL_FILENAME, module: customEndpointGroupLabel },{ filename: SEARCH_ENGINES_FILENAME, module: searchEngines },+ { filename: DECISION_REQUESTS_FILENAME, module: decisionRequests },];diff --git a/server/src/db/migrations/20261016_000001_decision_requests.ts b/server/src/db/migrations/20261016_000001_decision_requests.tsnew file mode 100644index 00000000..7c48a6a9--- /dev/null+++ b/server/src/db/migrations/20261016_000001_decision_requests.ts@@ -0,0 +1,42 @@+// Migration: decision request log+// Created: 2026-10-16+//+// DOWN: reversible (drops decision_requests)+//+// Decision models live in media_models with modality = 'decision', maintained+// by the catalog's `decisionModels` registry exactly like search engines.+// Nothing is seeded here: the catalog decides which installs get which models.+//+// decision_requests is its own log rather than more `requests` rows, for the+// same reason as search_requests: a decision has no completion tokens, and+// keeping it out of `requests` keeps chat analytics and success rates clean.++import type { Db } from '../types.js';++export function up(db: Db): void {+ db.exec(`+ CREATE TABLE IF NOT EXISTS decision_requests (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ created_at TEXT NOT NULL DEFAULT (datetime('now')),+ model_id TEXT NOT NULL,+ platform TEXT NOT NULL,+ key_id INTEGER,+ status TEXT NOT NULL CHECK (status IN ('ok', 'error')),+ latency_ms INTEGER NOT NULL DEFAULT 0,+ question_count INTEGER NOT NULL DEFAULT 0,+ input_tokens INTEGER NOT NULL DEFAULT 0,+ client_agent TEXT,+ error TEXT+ );+ CREATE INDEX IF NOT EXISTS idx_decision_requests_created_at ON decision_requests(created_at);+ CREATE INDEX IF NOT EXISTS idx_decision_requests_model_created ON decision_requests(model_id, created_at);+ `);+}++export function down(db: Db): void {+ db.exec(`+ DROP INDEX IF EXISTS idx_decision_requests_model_created;+ DROP INDEX IF EXISTS idx_decision_requests_created_at;+ DROP TABLE IF EXISTS decision_requests;+ `);+}diff --git a/server/src/docs/openapi.ts b/server/src/docs/openapi.tsindex cf9e8024..3f65bbf5 100644--- a/server/src/docs/openapi.ts+++ b/server/src/docs/openapi.ts@@ -36,6 +36,7 @@ export const openapiSpec = {{ name: 'Chat', description: 'OpenAI-compatible chat and completion endpoints' },{ name: 'Media', description: 'Image generation and text-to-speech' },{ name: 'Search', description: 'Web search over Parallel (keyless) and your Tavily, Exa, Firecrawl and Linkup keys' },+ { name: 'Decisions', description: 'Decision models (choice, yes/no, score) over your Cloudflare and OpenRouter keys' },{ name: 'Responses', description: 'OpenAI Responses API (Codex CLI wire format)' },{ name: 'Anthropic', description: 'Anthropic Messages API (Claude Code and the Anthropic SDKs)' },{ name: 'Models', description: 'Model discovery' },@@ -272,6 +273,117 @@ export const openapiSpec = {},},},+ '/v1/decisions': {+ post: {+ tags: ['Decisions'],+ operationId: 'createDecision',+ summary: 'Ask a decision model',+ description:+ 'Ask typed questions about `state` and get probabilities back instead of generated text: pick one option ' ++ '(`choice`), yes/no (`noul`) or a rating on a rubric (`score`). Served by the decision models in the catalog ' ++ '(Cloudflare Clef Flash, OpenRouter Mercury Decide) on your Cloudflare and OpenRouter keys. Omit `model` (or set ' ++ '`auto`) to fail over across models that have a key. `POST /v1/systemone` is an alias. Chat routing never uses these models.',+ requestBody: {+ required: true,+ content: {+ 'application/json': {+ schema: {+ type: 'object',+ required: ['state', 'questions'],+ properties: {+ model: { type: 'string', description: 'A model id from GET /v1/decisions/models, or `auto`.' },+ state: { description: 'The text or structured data (object/array) to decide about.', example: 'my react useEffect runs twice, why?' },+ questions: {+ type: 'object',+ description: '1 to 64 questions keyed by your own id; answers come back under the same ids.',+ additionalProperties: {+ type: 'object',+ required: ['type', 'instructions'],+ properties: {+ type: { type: 'string', enum: ['choice', 'noul', 'score'] },+ instructions: { description: 'The question to answer.' },+ criteria: {+ description: 'choice: a map of option id to description. score: an ordered array of levels, lowest first. noul: optional { true, false } descriptions.',+ },+ },+ },+ example: { tier: { type: 'choice', instructions: 'Which model tier should answer this?', criteria: { light: 'Casual chat', code: 'Coding' } } },+ },+ },+ },+ },+ },+ },+ responses: {+ '200': {+ description: 'Answers from the first decision model that responded.',+ content: {+ 'application/json': {+ schema: {+ type: 'object',+ properties: {+ object: { type: 'string', example: 'decision' },+ model: { type: 'string', example: '@cf/cloudflare/clef-flash' },+ provider: { type: 'string', example: 'cloudflare' },+ answers: {+ type: 'object',+ additionalProperties: { type: 'object' },+ example: { tier: { type: 'choice', choice: 'code', probabilities: { light: 0.01, code: 0.99 }, confidence: 0.95 } },+ },+ usage: {+ type: 'object',+ properties: { input_tokens: { type: 'integer' }, output_tokens: { type: 'integer' } },+ },+ },+ },+ },+ },+ },+ '400': { $ref: '#/components/responses/BadRequest' },+ '401': { $ref: '#/components/responses/Unauthorized' },+ '429': { $ref: '#/components/responses/RateLimited' },+ '502': { $ref: '#/components/responses/UpstreamError' },+ },+ },+ },+ '/v1/decisions/models': {+ get: {+ tags: ['Decisions'],+ operationId: 'listDecisionModels',+ summary: 'List decision models',+ description: 'The enabled decision models, in failover order, and whether each has a usable key.',+ responses: {+ '200': {+ description: 'Decision models.',+ content: {+ 'application/json': {+ schema: {+ type: 'object',+ properties: {+ object: { type: 'string', example: 'list' },+ data: {+ type: 'array',+ items: {+ type: 'object',+ properties: {+ id: { type: 'string', example: '@cf/cloudflare/clef-flash' },+ object: { type: 'string', example: 'decision_model' },+ provider: { type: 'string', example: 'cloudflare' },+ name: { type: 'string' },+ context_window: { type: 'integer', nullable: true },+ available: { type: 'boolean' },+ },+ },+ },+ },+ },+ },+ },+ },+ '401': { $ref: '#/components/responses/Unauthorized' },+ },+ },+ },'/v1/videos/generations': {post: {tags: ['Media'],diff --git a/server/src/lib/proxy.ts b/server/src/lib/proxy.tsindex f0f6d379..2d459aa4 100644--- a/server/src/lib/proxy.ts+++ b/server/src/lib/proxy.ts@@ -560,7 +560,7 @@ async function resolveDispatcher(): Promise<{ dispatcher: unknown; isSocks: bool* written to `requests.request_type` so the abort message and the row* column agree on terminology.*/-export type ProxyRequestType = 'chat' | 'embedding' | 'image' | 'video' | 'audio' | 'transcription' | 'moderation' | 'search' | 'unknown';+export type ProxyRequestType = 'chat' | 'embedding' | 'image' | 'video' | 'audio' | 'transcription' | 'moderation' | 'search' | 'decision' | 'unknown';/*** Build an AbortError DOMException whose `message` carries a compact triagediff --git a/server/src/routes/decisions.ts b/server/src/routes/decisions.tsnew file mode 100644index 00000000..2e2d5a1b--- /dev/null+++ b/server/src/routes/decisions.ts@@ -0,0 +1,65 @@+import { Router } from 'express';+import type { Request, Response } from 'express';+import { z } from 'zod';+import { listDecisionModels, runDecision, setDecisionModelEnabled, DecisionError } from '../services/decision.js';++// Dashboard: the Models → Decision page. Models come from the catalog's+// decisionModels registry; this lists them with key and usage counts, lets the+// operator switch one off, and runs a test decision from the page.+export const decisionsRouter = Router();++decisionsRouter.get('/models', (_req: Request, res: Response) => {+ res.json(listDecisionModels());+});++const patchSchema = z.object({ enabled: z.boolean() });++decisionsRouter.patch('/models/:id', (req: Request, res: Response) => {+ const id = Number(req.params.id);+ if (!Number.isInteger(id) || id <= 0) {+ res.status(400).json({ error: { message: 'Invalid model id' } });+ return;+ }+ const parsed = patchSchema.safeParse(req.body);+ if (!parsed.success) {+ res.status(400).json({ error: { message: 'Provide enabled' } });+ return;+ }+ if (!setDecisionModelEnabled(id, parsed.data.enabled)) {+ res.status(404).json({ error: { message: 'Decision model not found' } });+ return;+ }+ res.json(listDecisionModels().find(m => m.id === id));+});++// "Try it" on the page: one choice question over the text the user typed.+const trySchema = z.object({+ model: z.string().min(1).optional(),+ state: z.string().min(1).max(20_000),+ question: z.string().min(1).max(2_000),+ options: z.array(z.string().min(1).max(200)).min(2).max(20),+});++decisionsRouter.post('/try', async (req: Request, res: Response) => {+ const parsed = trySchema.safeParse(req.body);+ if (!parsed.success) {+ res.status(400).json({ error: { message: 'Provide text, a question and at least two options' } });+ return;+ }+ const { model, state, question, options } = parsed.data;+ try {+ const result = await runDecision(+ {+ state,+ questions: {+ answer: { type: 'choice', instructions: question, criteria: Object.fromEntries(options.map(o => [o, null])) },+ },+ },+ { model, clientAgent: 'dashboard' },+ );+ res.json(result);+ } catch (err: any) {+ const status = err instanceof DecisionError ? err.status : 502;+ res.status(status).json({ error: { message: err?.message ?? 'Decision failed', ...(err?.code ? { code: err.code } : {}) } });+ }+});diff --git a/server/src/routes/proxy.ts b/server/src/routes/proxy.tsindex 50ba050a..e4d69146 100644--- a/server/src/routes/proxy.ts+++ b/server/src/routes/proxy.ts@@ -8,6 +8,7 @@ import { secondsUntilNextMonth } from '../services/key-budget.js';import { runEmbeddings, EmbeddingsError } from '../services/embeddings.js';import { runRerank, RerankError, rerankRetryAfterSec } from '../services/rerank.js';import { runSearch, SearchError, searchRetryAfterSec, listSearchEngines } from '../services/search.js';+import { runDecision, DecisionError, decisionRetryAfterSec, listDecisionModels, DECISION_QUESTION_TYPES } from '../services/decision.js';import { retryAfterSeconds } from '../lib/retry-hint.js';import { runImageGeneration, runVideoGeneration, runSpeech, runTranscription, MediaError, MAX_TRANSCRIPTION_BYTES } from '../services/media.js';import multer from 'multer';@@ -810,6 +811,88 @@ proxyRouter.get('/search/engines', (req: Request, res: Response) => {});});+// Decision models over the key pool. A decision model answers typed questions+// about `state` (pick one option, yes/no, or a score) with probabilities+// instead of generated text. Request shape is "System One":+// { model?, state, questions: { <id>: { type, instructions, criteria? } } }+// Catalog rows only (Cloudflare Clef, OpenRouter Mercury Decide), on the keys+// the user already has for those platforms. Never used by chat routing.+// See services/decision.ts. /v1/systemone is an alias for System One clients.+const DecisionQuestionBody = z.object({+ type: z.enum(DECISION_QUESTION_TYPES),+ instructions: z.unknown().refine(v => v !== undefined && v !== null && v !== '', { message: 'instructions is required' }),+ criteria: z.unknown().optional(),+}).passthrough();++const DecisionBody = z.object({+ model: z.string().min(1).optional(),+ state: z.unknown().refine(v => v !== undefined && v !== null && v !== '', { message: 'state is required' }),+ questions: z.record(z.string().min(1).max(100), DecisionQuestionBody)+ .refine(q => Object.keys(q).length >= 1 && Object.keys(q).length <= 64, { message: 'questions must hold 1 to 64 entries' }),+});++async function handleDecision(req: Request, res: Response): Promise<void> {+ if (!requireInferenceAuth(req, res)) return;+ const parsed = DecisionBody.safeParse(req.body);+ if (!parsed.success) {+ const detail = parsed.error.errors.map(e => `${e.path.join('.') || 'body'}: ${e.message}`).join('; ');+ res.status(400).json({ error: { message: `Invalid request: ${detail}`, type: 'invalid_request_error' } });+ return;+ }+ const abort = new AbortController();+ res.on('close', () => { if (!res.writableFinished) abort.abort(); });+ try {+ const { model, state, questions } = parsed.data;+ const result = await runDecision(+ { state, questions: questions as Parameters<typeof runDecision>[0]['questions'] },+ { model, signal: abort.signal },+ );+ res.json({+ object: 'decision',+ model: result.model,+ provider: result.provider,+ answers: result.answers,+ usage: result.usage,+ });+ } catch (err: any) {+ if (res.headersSent || abort.signal.aborted) return;+ const status = err instanceof DecisionError ? err.status : 502;+ if (err instanceof DecisionError) {+ const retryAfter = decisionRetryAfterSec(err);+ if (retryAfter !== undefined) res.setHeader('Retry-After', String(retryAfter));+ }+ const type = status === 400 ? 'invalid_request_error' : status === 429 ? 'rate_limit_error' : 'server_error';+ res.status(status).json({+ error: {+ message: `decision error: ${err?.message ?? 'unknown'}`,+ type,+ ...(err instanceof DecisionError && err.code ? { code: err.code } : {}),+ },+ });+ }+}++proxyRouter.post('/decisions', handleDecision);+proxyRouter.post('/systemone', handleDecision);++// The decision models a caller can pin with `model` on POST /v1/decisions.+proxyRouter.get('/decisions/models', (req: Request, res: Response) => {+ if (!requireInferenceAuth(req, res)) return;+ res.json({+ object: 'list',+ data: listDecisionModels()+ .filter(m => m.enabled)+ .map(m => ({+ id: m.modelId,+ object: 'decision_model',+ provider: m.platform,+ name: m.displayName,+ context_window: m.contextWindow,+ available: m.healthyKeyCount > 0,+ })),+ });+});+// OpenAI-compatible image generation. Routed through the media catalog (its own// table, never the chat router): `model: "auto"` (or omitted) tries every enabled// image provider in order; a provider model id pins to that one. Failover isdiff --git a/server/src/services/catalog-sync.ts b/server/src/services/catalog-sync.tsindex 63cd7b60..6db3e113 100644--- a/server/src/services/catalog-sync.ts+++ b/server/src/services/catalog-sync.ts@@ -4,6 +4,7 @@ import { getDb, getSetting, setSetting } from '../db/index.js';import { hasProvider } from '../providers/index.js';import { MEDIA_PLATFORMS, TRANSCRIPTION_PLATFORMS, VIDEO_PLATFORMS } from './media.js';import { SEARCH_ENGINE_PLATFORMS, SEARCH_MODALITY } from './search.js';+import { DECISION_MODALITY, DECISION_PLATFORMS } from './decision.js';import { EMBEDDING_PLATFORMS } from './embeddings.js';import type { Platform } from '@freellmapi/shared/types.js';import type { Scheduler } from '../lib/scheduler.js';@@ -179,6 +180,22 @@ interface CatalogSearchEngine {premiumSince?: string;}+interface CatalogDecisionModel {+ platform: string;+ /** Provider model id, stored as media_models.model_id+ * (e.g. '@cf/cloudflare/clef-flash', 'inception/mercury-decide:free'). */+ modelId: string;+ displayName: string;+ /** Order within the decision chain for model 'auto', lower first. */+ priority: number;+ enabled: boolean;+ /** Short display note, mirrored into media_models.quota_label. */+ quotaLabel?: string;+ contextWindow?: number;+ /** When the model entered the live (Premium) tier. */+ premiumSince?: string;+}+interface Catalog {version: string;generatedAt: string;@@ -200,6 +217,10 @@ interface Catalog {* modality='search'. A separate optional key for the same reason as* videoModels: binaries that predate search ignore it. */searchEngines?: CatalogSearchEngine[];+ /** Decision model registry, landing in media_models with+ * modality='decision'. Its own optional key, like searchEngines, so+ * binaries that predate decision models ignore it. */+ decisionModels?: CatalogDecisionModel[];/** Platforms the catalog service manages even when this tier ships no rows* for them (#1348): a provider still inside its Premium window, or one the* audit deliberately keeps at zero rows. Names only, never model rows, so@@ -290,6 +311,19 @@ function isCatalog(value: unknown): value is Catalog {(e.features === undefined || (typeof e.features === 'object' && e.features !== null)) &&(e.premiumSince === undefined || typeof e.premiumSince === 'string'),))) &&+ (c.decisionModels === undefined ||+ (Array.isArray(c.decisionModels) &&+ c.decisionModels.every(+ (m) =>+ typeof m?.platform === 'string' &&+ typeof m?.modelId === 'string' &&+ typeof m?.displayName === 'string' &&+ typeof m?.priority === 'number' &&+ typeof m?.enabled === 'boolean' &&+ (m.quotaLabel === undefined || typeof m.quotaLabel === 'string') &&+ (m.contextWindow === undefined || typeof m.contextWindow === 'number') &&+ (m.premiumSince === undefined || typeof m.premiumSince === 'string'),+ ))) &&(c.managedPlatforms === undefined ||(Array.isArray(c.managedPlatforms) && c.managedPlatforms.every((p) => typeof p === 'string'))) &&c.quirks.every((q) => typeof q?.slug === 'string' && Array.isArray(q?.targets))@@ -331,6 +365,7 @@ function catalogPlatforms(catalog: Catalog): Set<string> {for (const m of catalog.transcriptionModels ?? []) platforms.add(m.platform);for (const m of catalog.videoModels ?? []) platforms.add(m.platform);for (const e of catalog.searchEngines ?? []) platforms.add(e.platform);+ for (const m of catalog.decisionModels ?? []) platforms.add(m.platform);for (const p of catalog.managedPlatforms ?? []) platforms.add(p);return platforms;}@@ -458,6 +493,7 @@ function applyCatalogInner(db: Db, catalog: Catalog): NonNullable<SyncResult['coconst inTranscriptionCatalog = new Set<string>();const inVideoCatalog = new Set<string>();const inSearchCatalog = new Set<string>();+ const inDecisionCatalog = new Set<string>();for (const m of catalog.models) {// Media modalities are gated on MEDIA_PLATFORMS (decoupled from the chat@@ -628,6 +664,38 @@ function applyCatalogInner(db: Db, catalog: Catalog): NonNullable<SyncResult['co}}+ // Decision models: their own optional full snapshot, like search engines.+ // They ride on the platform's existing keys and never enter chat routing.+ if (catalog.decisionModels) {+ for (const m of catalog.decisionModels) {+ if (!DECISION_PLATFORMS.has(m.platform)) {+ counts.skippedUnknownPlatform++;+ continue;+ }+ if (isCatalogModelTombstoned(db, 'media', m.platform, m.modelId)) continue;+ inDecisionCatalog.add(`${m.platform}:${m.modelId}`);+ const meta: Record<string, unknown> = {};+ if (typeof m.contextWindow === 'number') meta.contextWindow = m.contextWindow;+ if (typeof m.premiumSince === 'string') meta.premiumSince = m.premiumSince;+ const fields = {+ displayName: m.displayName,+ modality: DECISION_MODALITY,+ priority: m.priority,+ quotaLabel: m.quotaLabel ?? '',+ metaJson: JSON.stringify(meta),+ };+ const row = selectMedia.get(m.platform, m.modelId) as { id: number; enabled: number } | undefined;+ if (row) {+ const enabled = m.enabled ? row.enabled : 0;+ updateMedia.run({ ...fields, id: row.id, enabled });+ counts.updated++;+ } else {+ insertMedia.run({ ...fields, platform: m.platform, modelId: m.modelId, enabled: m.enabled ? 1 : 0 });+ counts.inserted++;+ }+ }+ }+// Embeddings are their own full snapshot. Older catalogs omit this field;// in that case retain the app's bundled embedding baseline untouched.if (catalog.embeddings) {@@ -823,6 +891,21 @@ function applyCatalogInner(db: Db, catalog: Catalog): NonNullable<SyncResult['co}}+ // Prune decision models only when the catalog carries the decisionModels+ // snapshot (same rule as search engines).+ if (catalog.decisionModels) {+ const decisionCandidates = db+ .prepare('SELECT id, platform, model_id FROM media_models WHERE modality = ?')+ .all(DECISION_MODALITY) as { id: number; platform: string; model_id: string }[];+ for (const c of decisionCandidates) {+ if (!DECISION_PLATFORMS.has(c.platform)) continue;+ if (!inDecisionCatalog.has(`${c.platform}:${c.model_id}`)) {+ deleteMedia.run(c.id);+ counts.removed++;+ }+ }+ }+// Prune transcription rows only when the catalog actually carries the// snapshot (mirrors the embeddings rule), scoped to the modality so// image/audio rows are never touched by it.diff --git a/server/src/services/decision.ts b/server/src/services/decision.tsnew file mode 100644index 00000000..750acead--- /dev/null+++ b/server/src/services/decision.ts@@ -0,0 +1,398 @@+import { getDb } from '../db/index.js';+import { parseRetryAfterMs } from '../providers/base.js';+import { RetryHintTracker } from '../lib/retry-hint.js';+import { getClientContext } from '../lib/client-context.js';+import { proxyFetch } from '../lib/proxy.js';+import { secondsUntilNextMonth } from './key-budget.js';+import { reserveProviderCredential, type ReservedProviderCredential } from './provider-credential.js';+import { isOnCooldown, setCooldown } from './ratelimit.js';++// Decision models over the key pool.+//+// A decision model answers typed questions about a piece of state instead of+// generating text: pick one option (choice), yes/no (noul) or a rating on a+// rubric (score), each with probabilities and a confidence. They speak the+// "System One" request shape: { state, questions: { id: { type, instructions,+// criteria } } }.+//+// Decision models are media_models rows with modality = 'decision', maintained+// only by the catalog's `decisionModels` registry (see catalog-sync). They ride+// on keys the user already has for the hosting platform (Cloudflare Workers AI,+// OpenRouter), so there is no separate key to add. They are exposed on+// POST /v1/decisions and are NOT used by the chat router: routing never+// consults them.+//+// Routing within decisions: the requested model, or every enabled decision+// model in priority order for 'auto', then every healthy enabled key of that+// model's platform. A rate-limited or rejected key cools down for that model+// and the chain moves on. Every attempt is logged to decision_requests.++export const DECISION_MODALITY = 'decision';++const FETCH_TIMEOUT_MS = 30_000;+const RATE_LIMIT_COOLDOWN_MS = 60_000;+const BAD_KEY_COOLDOWN_MS = 60 * 60_000;+const NO_CREDIT_COOLDOWN_MS = 12 * 60 * 60_000;+const ESTIMATED_TOKENS = 500;++export const DECISION_QUESTION_TYPES = ['choice', 'noul', 'score'] as const;+export type DecisionQuestionType = (typeof DECISION_QUESTION_TYPES)[number];++export interface DecisionQuestion {+ type: DecisionQuestionType;+ instructions: unknown;+ criteria?: unknown;+}++export interface DecisionRequest {+ state: unknown;+ questions: Record<string, DecisionQuestion>;+}++export interface DecisionResponse {+ /** The decision model that answered (its catalog id). */+ model: string;+ provider: string;+ answers: Record<string, unknown>;+ usage: { input_tokens: number; output_tokens: number };+}++export class DecisionError extends Error {+ constructor(+ message: string,+ public status: number,+ public code?: string,+ public retryAfterMs?: number,+ ) {+ super(message);+ this.name = 'DecisionError';+ }+}++export interface DecisionOptions {+ /** A decision model id, or 'auto' / undefined for the first one that works. */+ model?: string;+ signal?: AbortSignal;+ /** Overrides the request-scoped client agent (tests, internal callers). */+ clientAgent?: string | null;+}++interface DecisionModelRow {+ id: number;+ platform: string;+ model_id: string;+ display_name: string;+ priority: number;+ enabled: number;+ quota_label: string;+ meta_json: string | null;+}++interface DecisionModelMeta {+ contextWindow?: number;+ premiumSince?: string;+}++function parseMeta(raw: string | null): DecisionModelMeta {+ if (!raw) return {};+ try {+ const parsed = JSON.parse(raw) as DecisionModelMeta;+ return parsed && typeof parsed === 'object' ? parsed : {};+ } catch {+ return {};+ }+}++function allDecisionRows(): DecisionModelRow[] {+ return getDb()+ .prepare(`SELECT id, platform, model_id, display_name, priority, enabled, quota_label, meta_json+ FROM media_models WHERE modality = ? ORDER BY priority, id`)+ .all(DECISION_MODALITY) as DecisionModelRow[];+}++// ── Adapters ────────────────────────────────────────────────────────────────++interface AdapterResult {+ answers: Record<string, unknown>;+ usage: { input_tokens: number; output_tokens: number };+}++type Adapter = (cred: ReservedProviderCredential, modelId: string, body: DecisionRequest, signal?: AbortSignal) => Promise<AdapterResult>;++async function upstream(url: string, platform: string, init: RequestInit, signal?: AbortSignal): Promise<unknown> {+ const timeoutSignal = AbortSignal.timeout(FETCH_TIMEOUT_MS);+ const res = await proxyFetch(+ url,+ { ...init, signal: signal ? AbortSignal.any([timeoutSignal, signal]) : timeoutSignal },+ platform,+ 'decision',+ FETCH_TIMEOUT_MS,+ );+ if (!res.ok) {+ const text = await res.text().catch(() => '');+ throw new DecisionError(+ `${platform} ${res.status}: ${text.slice(0, 200)}`,+ res.status,+ undefined,+ parseRetryAfterMs(res.headers?.get('retry-after') ?? null),+ );+ }+ return res.json();+}++function usageOf(raw: unknown): AdapterResult['usage'] {+ const u = (raw ?? {}) as { input_tokens?: unknown; output_tokens?: unknown };+ return {+ input_tokens: typeof u.input_tokens === 'number' ? u.input_tokens : 0,+ output_tokens: typeof u.output_tokens === 'number' ? u.output_tokens : 0,+ };+}++function answersOf(raw: unknown, platform: string): Record<string, unknown> {+ if (!raw || typeof raw !== 'object' || Array.isArray(raw)) {+ throw new DecisionError(`${platform} returned no answers`, 502);+ }+ return raw as Record<string, unknown>;+}++/** Cloudflare Workers AI keys are stored as "account_id:api_token". */+function cloudflareKey(key: string): { accountId: string; token: string } {+ const sep = key.indexOf(':');+ if (sep === -1) throw new DecisionError('Cloudflare key must be in format "account_id:api_token"', 401);+ return { accountId: key.slice(0, sep), token: key.slice(sep + 1) };+}++const ADAPTERS: Record<string, Adapter> = {+ // Workers AI runs Clef through ai/run, with a short `model` selector+ // ("clef-flash") inside the body. Response: { result: { answers, usage } }.+ cloudflare: async (cred, modelId, body, signal) => {+ const { accountId, token } = cloudflareKey(cred.key);+ const selector = modelId.split('/').pop() ?? modelId;+ const json = await upstream(+ `https://api.cloudflare.com/client/v4/accounts/${encodeURIComponent(accountId)}/ai/run/${modelId}`,+ 'cloudflare',+ {+ method: 'POST',+ headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },+ body: JSON.stringify({ model: selector, state: body.state, questions: body.questions }),+ },+ signal,+ ) as { success?: boolean; result?: { answers?: unknown; usage?: unknown }; errors?: Array<{ message?: string }> };+ if (json?.success === false || !json?.result) {+ throw new DecisionError(`cloudflare: ${json?.errors?.[0]?.message ?? 'no result'}`, 502);+ }+ return { answers: answersOf(json.result.answers, 'cloudflare'), usage: usageOf(json.result.usage) };+ },+ // OpenRouter serves decision models on its alpha decisions endpoint (not+ // under /api/v1), same System One body with the full model id.+ openrouter: async (cred, modelId, body, signal) => {+ const json = await upstream(+ 'https://openrouter.ai/api/alpha/decisions',+ 'openrouter',+ {+ method: 'POST',+ headers: {+ Authorization: `Bearer ${cred.key}`,+ 'Content-Type': 'application/json',+ 'HTTP-Referer': 'http://localhost:3001',+ 'X-Title': 'FreeLLMAPI',+ },+ body: JSON.stringify({ model: modelId, state: body.state, questions: body.questions }),+ },+ signal,+ ) as { answers?: unknown; usage?: unknown; error?: { message?: string } };+ if (json?.error) throw new DecisionError(`openrouter: ${json.error.message ?? 'error'}`, 502);+ return { answers: answersOf(json?.answers, 'openrouter'), usage: usageOf(json?.usage) };+ },+};++/** Platforms with a decision adapter. catalog-sync gates decisionModels rows+ * on this, the way SEARCH_ENGINE_PLATFORMS gates search rows. */+export const DECISION_PLATFORMS = new Set(Object.keys(ADAPTERS));++// ── Routing ─────────────────────────────────────────────────────────────────++function logDecision(row: DecisionModelRow, keyId: number | null, status: 'ok' | 'error', latencyMs: number, questionCount: number, inputTokens: number, clientAgent: string | null, error: string | null): void {+ try {+ getDb()+ .prepare(`INSERT INTO decision_requests (model_id, platform, key_id, status, latency_ms, question_count, input_tokens, client_agent, error)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`)+ .run(row.model_id, row.platform, keyId, status, latencyMs, questionCount, inputTokens, clientAgent, error);+ } catch (e) {+ console.error('Failed to log decision request:', e);+ }+}++function coolDown(row: DecisionModelRow, keyId: number, e: DecisionError): void {+ if (e.status === 401 || e.status === 403) {+ setCooldown(row.platform, row.model_id, keyId, BAD_KEY_COOLDOWN_MS);+ } else if (e.status === 402) {+ setCooldown(row.platform, row.model_id, keyId, NO_CREDIT_COOLDOWN_MS, 'credit');+ } else if (e.status === 429) {+ setCooldown(row.platform, row.model_id, keyId, e.retryAfterMs ?? RATE_LIMIT_COOLDOWN_MS);+ }+}++function hasUsableKey(platform: string): boolean {+ return !!getDb()+ .prepare("SELECT 1 FROM api_keys WHERE platform = ? AND enabled = 1 AND status IN ('healthy', 'unknown') LIMIT 1")+ .get(platform);+}++/** True when at least one enabled decision model has a usable key. */+export function decisionsAvailable(): boolean {+ return allDecisionRows().some(r => r.enabled === 1 && ADAPTERS[r.platform] && hasUsableKey(r.platform));+}++function decisionChain(model: string | undefined): DecisionModelRow[] {+ const enabled = allDecisionRows().filter(r => r.enabled === 1 && ADAPTERS[r.platform]);+ if (!model || model === 'auto') return enabled;+ const pinned = enabled.filter(r => r.model_id === model);+ if (pinned.length === 0) {+ const known = allDecisionRows().some(r => r.model_id === model);+ throw new DecisionError(+ known+ ? `Decision model '${model}' is turned off. Turn it on from Models → Decision, or use 'auto'.`+ : `Unknown decision model '${model}'. Use 'auto' or a model id from GET /v1/decisions/models.`,+ 400,+ );+ }+ return pinned;+}++export async function runDecision(body: DecisionRequest, opts: DecisionOptions = {}): Promise<DecisionResponse> {+ const chain = decisionChain(opts.model);+ const clientAgent = opts.clientAgent !== undefined ? opts.clientAgent : getClientContext().agent;+ const questionCount = Object.keys(body.questions).length;++ let lastError: DecisionError | null = null;+ let attempted = 0;+ const hints = new RetryHintTracker();+ for (const row of chain) {+ const tried = new Set<number>();+ for (;;) {+ if (opts.signal?.aborted) throw new DecisionError('decision cancelled by the client', 499);+ const { credential, budgetBlocked } = reserveProviderCredential(+ { platform: row.platform, key_id: null },+ ESTIMATED_TOKENS,+ keyId => tried.has(keyId) || isOnCooldown(row.platform, row.model_id, keyId),+ );+ if (!credential) {+ if (budgetBlocked) {+ lastError = new DecisionError('Monthly key budget exhausted', 429, 'quota_exceeded');+ hints.record(429, secondsUntilNextMonth() * 1000);+ }+ break;+ }+ tried.add(credential.id);+ attempted++;+ const started = Date.now();+ try {+ const out = await ADAPTERS[row.platform]!(credential, row.model_id, body, opts.signal);+ logDecision(row, credential.id, 'ok', Date.now() - started, questionCount, out.usage.input_tokens, clientAgent, null);+ return { model: row.model_id, provider: row.platform, answers: out.answers, usage: out.usage };+ } catch (err: any) {+ const e = err instanceof DecisionError ? err : new DecisionError(String(err?.message ?? err), 502);+ logDecision(row, credential.id, 'error', Date.now() - started, questionCount, 0, clientAgent, e.message.slice(0, 300));+ coolDown(row, credential.id, e);+ lastError = e;+ hints.record(e.status, e.retryAfterMs);+ if (opts.signal?.aborted) throw new DecisionError('decision cancelled by the client', 499);+ // A malformed request is the caller's problem, not this key's: move to+ // the next model rather than burning every key on it.+ if (e.status === 400 || e.status === 422) break;+ } finally {+ credential.release();+ }+ }+ }++ if (attempted === 0 && !lastError) {+ if (decisionsAvailable()) {+ throw new DecisionError(+ 'Every decision key is cooling down (rate limited or rejected). Try again later.',+ 429,+ 'decision_keys_cooling_down',+ );+ }+ throw new DecisionError(+ 'No decision model is available. Add a Cloudflare or OpenRouter key on the Keys page.',+ 503,+ 'no_decision_keys',+ );+ }+ // Only statuses the caller can act on pass through: an upstream 401 means+ // OUR provider key failed, not the caller's. A 400 from every model is most+ // likely a malformed request, so it is passed through as one.+ const status = lastError?.status === 429 ? 429 : lastError?.status === 400 || lastError?.status === 422 ? 400 : 502;+ throw new DecisionError(+ `All decision models failed${lastError ? ` (last: ${lastError.message.slice(0, 160)})` : ' (no usable keys)'}.`,+ status,+ lastError?.code,+ status === 429 ? hints.retryAfterMs() : undefined,+ );+}++export function decisionRetryAfterSec(err: DecisionError): number | undefined {+ if (err.retryAfterMs !== undefined) return Math.ceil(err.retryAfterMs / 1000);+ if (err.code === 'quota_exceeded') return secondsUntilNextMonth();+ return undefined;+}++// ── Dashboard ───────────────────────────────────────────────────────────────++export interface DecisionModelView {+ id: number;+ platform: string;+ modelId: string;+ displayName: string;+ priority: number;+ enabled: boolean;+ quotaLabel: string;+ contextWindow: number | null;+ keyCount: number;+ healthyKeyCount: number;+ decisionsThisMonth: number;+}++export function listDecisionModels(): DecisionModelView[] {+ const db = getDb();+ const platforms = [...DECISION_PLATFORMS];+ const keyRows = db.prepare(`+ SELECT platform, enabled, status FROM api_keys+ WHERE platform IN (${platforms.map(() => '?').join(', ')})+ `).all(...platforms) as { platform: string; enabled: number; status: string }[];+ const healthy = (k: { enabled: number; status: string }) => k.enabled === 1 && (k.status === 'healthy' || k.status === 'unknown');+ const monthCounts = new Map(+ (db.prepare(`+ SELECT platform, model_id, COUNT(*) AS n FROM decision_requests+ WHERE status = 'ok' AND created_at >= datetime('now', 'start of month')+ GROUP BY platform, model_id+ `).all() as { platform: string; model_id: string; n: number }[]).map(r => [`${r.platform}:${r.model_id}`, r.n]),+ );+ return allDecisionRows().map(row => {+ const meta = parseMeta(row.meta_json);+ const keys = keyRows.filter(k => k.platform === row.platform);+ return {+ id: row.id,+ platform: row.platform,+ modelId: row.model_id,+ displayName: row.display_name,+ priority: row.priority,+ enabled: row.enabled === 1,+ quotaLabel: row.quota_label,+ contextWindow: typeof meta.contextWindow === 'number' ? meta.contextWindow : null,+ keyCount: keys.length,+ healthyKeyCount: keys.filter(healthy).length,+ decisionsThisMonth: monthCounts.get(`${row.platform}:${row.model_id}`) ?? 0,+ };+ });+}++/** Turn a decision model on or off. False when the id is not a decision model. */+export function setDecisionModelEnabled(id: number, enabled: boolean): boolean {+ const info = getDb()+ .prepare('UPDATE media_models SET enabled = ? WHERE id = ? AND modality = ?')+ .run(enabled ? 1 : 0, id, DECISION_MODALITY);+ return info.changes > 0;+}diff --git a/server/src/services/media.ts b/server/src/services/media.tsindex 43374557..34dac773 100644--- a/server/src/services/media.ts+++ b/server/src/services/media.ts@@ -214,11 +214,12 @@ export function listMediaModels(modality: MediaModality): MediaModelRow[] {}/** All media models (every media modality, including disabled) for the- * dashboard. Search engines share the table (modality 'search') but have- * their own page and API (routes/search.ts), so they are left out here. */+ * dashboard. Search engines and decision models share the table (modality+ * 'search' / 'decision') but have their own pages and APIs, so they are left+ * out here. */export function listAllMediaModels(): MediaModelRow[] {return getDb()- .prepare("SELECT * FROM media_models WHERE modality != 'search' ORDER BY modality, priority, id")+ .prepare("SELECT * FROM media_models WHERE modality NOT IN ('search', 'decision') ORDER BY modality, priority, id").all() as MediaModelRow[];}