Skip to content

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(dashboard): automatic update check with release-notes dialog (#782)

suantea (asuan_suan)ba3931820745
diff --git a/.env.example b/.env.example
index 31881102..79b6ea98 100644
--- a/.env.example
+++ b/.env.example
@@ -214,6 +214,8 @@ REQUEST_ANALYTICS_MAX_ROWS=100000
# Manual application update checker. Set to off to hide it from Settings and
# prevent Git discovery or outbound update-check requests. Enabled by default.
+# This also switches off the automatic release reminder, which is a separate
+# dashboard setting (Settings > General) and is off until turned on there.
# FREELLMAPI_UPDATE_CHECK=off
# Optional token used only for update checks against GitHub. The checker is
# anonymous by default; use a narrowly scoped token only if higher rate limits
diff --git a/client/src/App.tsx b/client/src/App.tsx
index 9e13cd74..67b52511 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -20,6 +20,7 @@ import { openCommandPalette } from '@/components/command-palette-state'
import { ErrorBoundary } from '@/components/error-boundary'
import { SettingsDialog } from '@/components/settings-dialog'
import { Toaster } from '@/components/toaster'
+import { UpdateReminder } from '@/components/update-reminder'
import { usePremium } from '@/hooks/use-premium'
import { I18nProvider, useI18n } from '@/i18n'
import { logout } from '@/lib/api'
@@ -373,6 +374,7 @@ function App() {
</main>
<Toaster />
<CommandPalette />
+ <UpdateReminder />
</div>
</AuthGate>
</BrowserRouter>
diff --git a/client/src/components/settings-dialog.tsx b/client/src/components/settings-dialog.tsx
index 13511cd8..4131c4e6 100644
--- a/client/src/components/settings-dialog.tsx
+++ b/client/src/components/settings-dialog.tsx
@@ -28,6 +28,7 @@ import {
DialogTitle,
} from '@/components/ui/dialog'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
+import { UPDATE_CHECK_CHANGED_EVENT } from '@/components/update-reminder'
import { Switch } from '@/components/ui/switch'
import { Tooltip } from '@/components/tooltip'
import { SUPPORTED_LOCALES, type Locale, useI18n } from '@/i18n'
@@ -659,6 +660,37 @@ function UpdateChecker({ active }: { active: boolean }) {
const [error, setError] = useState(false)
const [dialogOpen, setDialogOpen] = useState(false)
const [activity, setActivity] = useState<string[]>([])
+ // Opt-in for the automatic reminder pill (#782). `null` until the server has
+ // answered, so the row never renders a state that isn't the stored one.
+ const [autoCheck, setAutoCheck] = useState<boolean | null>(null)
+
+ useEffect(() => {
+ if (!active) return
+ let cancelled = false
+ apiFetch<{ enabled: boolean }>('/api/settings/update-check')
+ .then(result => {
+ if (!cancelled) setAutoCheck(result.enabled)
+ })
+ .catch(() => { /* leave the row out rather than claim a state */ })
+ return () => { cancelled = true }
+ }, [active])
+
+ async function toggleAutoCheck(enabled: boolean) {
+ const previous = autoCheck
+ setAutoCheck(enabled)
+ try {
+ const result = await apiFetch<{ enabled: boolean }>('/api/settings/update-check', {
+ method: 'PUT',
+ body: JSON.stringify({ enabled }),
+ })
+ setAutoCheck(result.enabled)
+ // The reminder is mounted outside this dialog; tell it to re-check now
+ // instead of leaving a stale pill (or no pill) until the next reload.
+ window.dispatchEvent(new Event(UPDATE_CHECK_CHANGED_EVENT))
+ } catch {
+ setAutoCheck(previous)
+ }
+ }
useEffect(() => {
if (!active) return
@@ -794,6 +826,20 @@ function UpdateChecker({ active }: { active: boolean }) {
)}
/>
+ {autoCheck !== null && (
+ <Row
+ label={t('settings.autoUpdateCheck')}
+ hint={t('settings.autoUpdateCheckHelp')}
+ control={(
+ <Switch
+ aria-label={t('settings.autoUpdateCheck')}
+ checked={autoCheck}
+ onCheckedChange={checked => void toggleAutoCheck(checked)}
+ />
+ )}
+ />
+ )}
+
<Dialog open={dialogOpen} onOpenChange={setDialogOpen}>
<DialogPopup maxWidth="max-w-xl" className="p-0">
<div className="flex items-start justify-between gap-4 border-b px-6 py-5">
diff --git a/client/src/components/update-reminder.tsx b/client/src/components/update-reminder.tsx
new file mode 100644
index 00000000..864bf100
--- /dev/null
+++ b/client/src/components/update-reminder.tsx
@@ -0,0 +1,277 @@
+import { useEffect, useRef, useState } from 'react'
+import { ArrowUpRight, Sparkles, X } from 'lucide-react'
+import {
+ Dialog,
+ DialogClose,
+ DialogPopup,
+ DialogTitle,
+ DialogDescription,
+} from '@/components/ui/dialog'
+import { Markdown } from '@/components/markdown'
+import { apiFetch } from '@/lib/api'
+import { useI18n } from '@/i18n'
+
+const RELEASES_URL = 'https://github.com/tashfeenahmed/freellmapi/releases'
+
+/** How often this browser may ask the server, so a dashboard left open in a
+ * tab isn't re-checking on every navigation. The server caches the upstream
+ * answer for six hours on top of this, and does not call GitHub at all while
+ * the check is switched off. */
+const CHECK_INTERVAL_MS = 24 * 60 * 60 * 1000
+const STORAGE_KEY = 'freellmapi.update_reminder'
+
+/** Fired by Settings when the opt-in is toggled, so the pill appears or
+ * disappears there and then instead of on the next reload. */
+export const UPDATE_CHECK_CHANGED_EVENT = 'freellmapi:update-check-changed'
+
+/** The server's mapped shape (GET /api/update/release). */
+interface LatestRelease {
+ tagName: string
+ body: string | null
+ htmlUrl: string
+ publishedAt: string | null
+}
+
+type ReleaseResponse = LatestRelease | { disabled: true }
+
+interface StoredCheck {
+ checkedAt: number
+ release: LatestRelease | null
+ dismissedTag: string | null
+}
+
+/**
+ * Compare two dotted versions; > 0 when `a` is newer. Missing parts read as 0,
+ * and so does anything that isn't a leading integer — `1.2.0-rc1` compares as
+ * `1.2.0`, which is wrong in the pre-release direction but never throws and
+ * never invents an update out of a tag it cannot read.
+ */
+function compareVersions(a: string, b: string): number {
+ const pa = a.replace(/^v/, '').split('.').map(n => parseInt(n, 10) || 0)
+ const pb = b.replace(/^v/, '').split('.').map(n => parseInt(n, 10) || 0)
+ for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
+ const diff = (pa[i] ?? 0) - (pb[i] ?? 0)
+ if (diff !== 0) return diff
+ }
+ return 0
+}
+
+function readStored(): StoredCheck | null {
+ try {
+ const raw = window.localStorage.getItem(STORAGE_KEY)
+ return raw ? JSON.parse(raw) as StoredCheck : null
+ } catch {
+ return null
+ }
+}
+
+function writeStored(value: StoredCheck): void {
+ try {
+ window.localStorage.setItem(STORAGE_KEY, JSON.stringify(value))
+ } catch { /* ignore */ }
+}
+
+/**
+ * Automatic update reminder: asks the server for the latest release once a day
+ * (not on every load), and when a newer version exists shows a small corner
+ * pill. Clicking it opens a dialog with the release notes (what's new), a link
+ * to the release page, and a per-version dismiss so a release the operator
+ * already saw doesn't nag again.
+ *
+ * Two things are deliberately not done here. GitHub is not contacted from the
+ * browser: the CSP this server sends is `connect-src 'self'`, so a direct
+ * fetch to api.github.com is blocked on every install that isn't the desktop
+ * shell. And nothing is checked at all until the operator opts in from
+ * Settings — the server answers `{ disabled: true }` until then, and never
+ * makes the outbound request.
+ *
+ * Unlike the wordless update row in Settings, this is an explicit notification
+ * the user asked for, so it uses real i18n copy (en is the fallback for every
+ * locale, and the release body itself comes untranslated from GitHub).
+ */
+export function UpdateReminder() {
+ const { t } = useI18n()
+ // Current version: the desktop shell states it outright, so it is read at
+ // render rather than assigned from an effect; a browser or container install
+ // asks the server. Both may be empty → no reminder.
+ const shellVersion = typeof window !== 'undefined'
+ ? (window as { __FREEAPI_VERSION__?: string | null }).__FREEAPI_VERSION__ ?? null
+ : null
+ const [serverVersion, setServerVersion] = useState<string | null>(null)
+ const [release, setRelease] = useState<LatestRelease | null>(null)
+ const [open, setOpen] = useState(false)
+ const [dismissed, setDismissed] = useState<string | null>(null)
+ const [refresh, setRefresh] = useState(0)
+ const version = shellVersion ?? serverVersion
+ const openRef = useRef(false)
+
+ // Read by the async check to decide whether it may replace what the operator
+ // is currently reading. Synced in an effect, not during render.
+ useEffect(() => { openRef.current = open }, [open])
+
+ // Toggling the opt-in in Settings re-runs the check immediately, bypassing
+ // the day throttle: an operator who just switched it on is asking for an
+ // answer now, and one who switched it off expects the pill to go away.
+ useEffect(() => {
+ function onChanged() { setRefresh(count => count + 1) }
+ window.addEventListener(UPDATE_CHECK_CHANGED_EVENT, onChanged)
+ return () => window.removeEventListener(UPDATE_CHECK_CHANGED_EVENT, onChanged)
+ }, [])
+
+ useEffect(() => {
+ if (shellVersion) return
+ let cancelled = false
+ apiFetch<{ version: string | null }>('/api/settings/version')
+ .then(r => { if (!cancelled) setServerVersion(r.version ?? null) })
+ .catch(() => { /* leave hidden */ })
+ return () => { cancelled = true }
+ }, [shellVersion])
+
+ // Throttled automatic check. A dialog already open is left alone; otherwise
+ // the pill appears only when a genuinely newer release exists.
+ useEffect(() => {
+ if (!version) return
+ let cancelled = false
+ const currentVersion = version
+ const forced = refresh > 0
+
+ async function check() {
+ try {
+ const stored = readStored()
+ const freshEnough = !forced
+ && stored != null
+ && Date.now() - stored.checkedAt < CHECK_INTERVAL_MS
+ && stored.release != null
+
+ let latest = freshEnough ? stored!.release : null
+
+ if (!freshEnough) {
+ const data = await apiFetch<ReleaseResponse>('/api/update/release')
+ if (cancelled) return
+ if ('disabled' in data) {
+ // Opted out: drop the cached release too, or the throttle below
+ // would keep showing the old pill for a day after the opt-out.
+ // A null release also means the next load asks again — one
+ // same-origin request that the server answers without contacting
+ // anything.
+ setRelease(null)
+ writeStored({
+ checkedAt: Date.now(),
+ release: null,
+ dismissedTag: stored?.dismissedTag ?? null,
+ })
+ return
+ }
+ latest = { ...data, tagName: data.tagName.replace(/^v/, '') }
+ writeStored({
+ checkedAt: Date.now(),
+ release: latest,
+ dismissedTag: stored?.dismissedTag ?? null,
+ })
+ }
+
+ if (!latest || compareVersions(latest.tagName, currentVersion) <= 0) return
+ if (cancelled || openRef.current) return
+ setDismissed(stored?.dismissedTag ?? null)
+ setRelease(latest)
+ } catch { /* unreachable server or upstream failure → stay silent */ }
+ }
+
+ void check()
+ return () => { cancelled = true }
+ }, [version, refresh])
+
+ // Dismissal is per version and has to survive a reload, or the pill is back
+ // on the next page load for a release the operator already dealt with.
+ function dismiss(tag: string) {
+ setDismissed(tag)
+ const stored = readStored()
+ writeStored({
+ checkedAt: stored?.checkedAt ?? Date.now(),
+ release: stored?.release ?? null,
+ dismissedTag: tag,
+ })
+ }
+
+ if (!release) return null
+ if (dismissed === release.tagName) return null
+
+ const published = release.publishedAt
+ ? new Date(release.publishedAt).toLocaleDateString()
+ : null
+
+ return (
+ <>
+ <button
+ type="button"
+ onClick={() => setOpen(true)}
+ className="fixed bottom-6 left-4 z-[60] flex max-w-[calc(100vw-2rem)] items-center gap-2 rounded-full border bg-card px-4 py-2 text-sm shadow-lg ring-1 ring-foreground/10 outline-none transition-all duration-150 hover:scale-[1.02] hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 sm:left-6"
+ >
+ <Sparkles className="size-4 shrink-0 text-primary" aria-hidden />
+ <span className="truncate">
+ {t('update.available')} <span className="font-semibold tabular-nums">v{version}</span>
+ <ArrowUpRight className="ml-1 inline size-3.5" aria-hidden />
+ <span className="font-semibold tabular-nums">v{release.tagName}</span>
+ </span>
+ <span
+ role="button"
+ tabIndex={0}
+ aria-label={t('update.dismiss')}
+ onClick={event => { event.stopPropagation(); dismiss(release.tagName) }}
+ onKeyDown={event => {
+ if (event.key === 'Enter' || event.key === ' ') {
+ event.stopPropagation()
+ dismiss(release.tagName)
+ }
+ }}
+ className="ml-1 inline-flex shrink-0 rounded-full text-muted-foreground/70 outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"
+ >
+ <X className="size-3.5" aria-hidden />
+ </span>
+ </button>
+
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogPopup maxWidth="max-w-xl">
+ <div className="mb-4 flex items-start justify-between gap-4">
+ <div>
+ <DialogTitle>{t('update.whatsNew', { version: release.tagName })}</DialogTitle>
+ {published && (
+ <DialogDescription className="mt-1">{t('update.publishedOn', { date: published })}</DialogDescription>
+ )}
+ </div>
+ <DialogClose className="rounded-full p-1 text-muted-foreground/70 outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50">
+ <X className="size-4" aria-hidden />
+ </DialogClose>
+ </div>
+
+ {release.body ? (
+ <div className="max-h-[45vh] overflow-y-auto rounded-xl border bg-muted/20 p-4">
+ <Markdown>{release.body}</Markdown>
+ </div>
+ ) : (
+ <p className="text-sm text-muted-foreground">{t('update.noNotes')}</p>
+ )}
+
+ <div className="mt-5 flex flex-wrap items-center gap-3">
+ <a
+ href={release.htmlUrl || RELEASES_URL}
+ target="_blank"
+ rel="noreferrer noopener"
+ className="inline-flex items-center gap-1.5 rounded-lg bg-primary px-3.5 py-2 text-sm font-medium text-primary-foreground outline-none transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50"
+ >
+ {t('update.openRelease')}
+ <ArrowUpRight className="size-4" aria-hidden />
+ </a>
+ <button
+ type="button"
+ onClick={() => dismiss(release.tagName)}
+ className="rounded-lg border px-3.5 py-2 text-sm outline-none transition-colors hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50"
+ >
+ {t('update.dismissVersion')}
+ </button>
+ </div>
+ </DialogPopup>
+ </Dialog>
+ </>
+ )
+}
diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.json
index 37620f72..bdec7148 100644
--- a/client/src/i18n/locales/am.json
+++ b/client/src/i18n/locales/am.json
@@ -159,6 +159,8 @@
"notGitInstall": "ይህ ጭነት የcommit መረጃን አያካትትም።",
"checkFailed": "ዝማኔዎችን መፈተሽ አልተቻለም።",
"contactsGithub": "ፍተሻዎች በእጅ የሚከናወኑ ሲሆን GitHubን ያገናኛሉ።",
+ "autoUpdateCheck": "ራስ-ሰር የዝማኔ ፍተሻ",
+ "autoUpdateCheckHelp": "በቀን አንድ ጊዜ ለአዲስ ልቀት GitHubን ይፈትሻል እና ማስታወሻ ያሳያል። በነባሪነት ጠፍቷል።",
"openReleases": "የGitHub ልቀቶችን ክፈት",
"restartAfterUpdate": "ግንባታው ከተጠናቀቀ በኋላ FreeLLMAPIን እንደገና ያስጀምሩ።"
},
@@ -849,5 +851,14 @@
"manualHint": "በመሣሪያው ራሱ ቅንብሮች ውስጥ የሚገባ የመሠረት URL እና ቁልፍ።",
"endpoint": "የመዳረሻ ነጥብ",
"documentation": "ሰነዶች"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json
index 22345bf9..8147d4fb 100644
--- a/client/src/i18n/locales/ar.json
+++ b/client/src/i18n/locales/ar.json
@@ -159,6 +159,8 @@
"notGitInstall": "لا يتضمن هذا التثبيت معلومات الالتزام.",
"checkFailed": "تعذر التحقق من وجود تحديثات.",
"contactsGithub": "تُجرى عمليات التحقق يدويًا وتتصل بـ GitHub.",
+ "autoUpdateCheck": "التحقق التلقائي من التحديثات",
+ "autoUpdateCheckHelp": "يتحقق من GitHub مرة واحدة يوميًا بحثًا عن إصدار جديد ويعرض تذكيرًا. مُعطَّل افتراضيًا.",
"openReleases": "فتح إصدارات GitHub",
"restartAfterUpdate": "أعد تشغيل FreeLLMAPI بعد اكتمال البنية."
},
@@ -849,5 +851,14 @@
"manualHint": "عنوان URL الأساسي والمفتاح لإدخالهما في إعدادات الأداة نفسها.",
"endpoint": "نقطة النهاية",
"documentation": "التوثيق"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.json
index a13c9a60..d00388d1 100644
--- a/client/src/i18n/locales/az.json
+++ b/client/src/i18n/locales/az.json
@@ -159,6 +159,8 @@
"notGitInstall": "Bu quraşdırmada commit məlumatı yoxdur.",
"checkFailed": "Yeniləmələri yoxlamaq mümkün olmadı.",
"contactsGithub": "Yoxlamalar əl ilə başladılır və GitHub-a qoşulur.",
+ "autoUpdateCheck": "Avtomatik yeniləmə yoxlaması",
+ "autoUpdateCheckHelp": "Gündə bir dəfə yeni buraxılış üçün GitHub-u yoxlayır və xatırlatma göstərir. Standart olaraq sönülüdür.",
"openReleases": "GitHub buraxılışlarını aç",
"restartAfterUpdate": "Quruluş tamamlandıqdan sonra FreeLLMAPI-ni yenidən başladın."
},
@@ -849,5 +851,14 @@
"manualHint": "Alətin öz parametrlərinə daxil ediləcək əsas URL və açar.",
"endpoint": "Endpoint",
"documentation": "Sənədlər"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.json
index 55b0f223..58eb861d 100644
--- a/client/src/i18n/locales/bg.json
+++ b/client/src/i18n/locales/bg.json
@@ -159,6 +159,8 @@
"notGitInstall": "Тази инсталация не съдържа информация за commit.",
"checkFailed": "Актуализациите не можаха да бъдат проверени.",
"contactsGithub": "Проверките се стартират ръчно и се свързват с GitHub.",
+ "autoUpdateCheck": "Автоматична проверка за актуализации",
+ "autoUpdateCheckHelp": "Проверява GitHub веднъж дневно за ново издание и показва напомняне. По подразбиране е изключено.",
"openReleases": "Отвори изданията в GitHub",
"restartAfterUpdate": "Рестартирайте FreeLLMAPI след завършване на компилацията."
},
@@ -849,5 +851,14 @@
"manualHint": "Базов URL и ключ за въвеждане в настройките на самия инструмент.",
"endpoint": "Крайна точка",
"documentation": "Документация"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.json
index 8357ed95..04ad0d02 100644
--- a/client/src/i18n/locales/bn.json
+++ b/client/src/i18n/locales/bn.json
@@ -159,6 +159,8 @@
"notGitInstall": "এই ইনস্টলেশনে কমিটের তথ্য নেই।",
"checkFailed": "আপডেট পরীক্ষা করা যায়নি।",
"contactsGithub": "পরীক্ষাগুলি ম্যানুয়ালি করা হয় এবং GitHub-এর সঙ্গে যোগাযোগ করে।",
+ "autoUpdateCheck": "স্বয়ংক্রিয় আপডেট পরীক্ষা",
+ "autoUpdateCheckHelp": "দিনে একবার নতুন রিলিজের জন্য GitHub পরীক্ষা করে এবং একটি অনুস্মারক দেখায়। ডিফল্টভাবে বন্ধ।",
"openReleases": "GitHub রিলিজ খুলুন",
"restartAfterUpdate": "বিল্ড সম্পূর্ণ হওয়ার পর FreeLLMAPI পুনরায় চালু করুন।"
},
@@ -849,5 +851,14 @@
"manualHint": "টুলের নিজস্ব সেটিংসে দেওয়ার জন্য বেস URL এবং কী।",
"endpoint": "এন্ডপয়েন্ট",
"documentation": "ডকুমেন্টেশন"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.json
index f1e3b54e..fd1597f1 100644
--- a/client/src/i18n/locales/cs.json
+++ b/client/src/i18n/locales/cs.json
@@ -159,6 +159,8 @@
"notGitInstall": "Tato instalace neobsahuje informace o commitu.",
"checkFailed": "Aktualizace se nepodařilo zkontrolovat.",
"contactsGithub": "Kontroly se spouštějí ručně a kontaktují GitHub.",
+ "autoUpdateCheck": "Automatická kontrola aktualizací",
+ "autoUpdateCheckHelp": "Jednou denně zkontroluje na GitHubu novou verzi a zobrazí připomenutí. Ve výchozím nastavení vypnuto.",
"openReleases": "Otevřít vydání na GitHubu",
"restartAfterUpdate": "Po dokončení sestavení restartujte FreeLLMAPI."
},
@@ -849,5 +851,14 @@
"manualHint": "Základní URL a klíč k zadání do vlastního nastavení nástroje.",
"endpoint": "Endpoint",
"documentation": "Dokumentace"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json
index 6d541a7a..e3711472 100644
--- a/client/src/i18n/locales/da.json
+++ b/client/src/i18n/locales/da.json
@@ -159,6 +159,8 @@
"notGitInstall": "Denne installation indeholder ikke commit-oplysninger.",
"checkFailed": "Det var ikke muligt at søge efter opdateringer.",
"contactsGithub": "Tjek udføres manuelt og kontakter GitHub.",
+ "autoUpdateCheck": "Automatisk opdateringstjek",
+ "autoUpdateCheckHelp": "Tjekker GitHub én gang om dagen for en ny udgivelse og viser en påmindelse. Slået fra som standard.",
"openReleases": "Åbn GitHub-udgivelser",
"restartAfterUpdate": "Genstart FreeLLMAPI, når buildet er færdigt."
},
@@ -849,5 +851,14 @@
"manualHint": "Basis-URL og nøgle til værktøjets egne indstillinger.",
"endpoint": "Endpoint",
"documentation": "Dokumentation"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json
index c5fe6516..eac8145d 100644
--- a/client/src/i18n/locales/de.json
+++ b/client/src/i18n/locales/de.json
@@ -159,6 +159,8 @@
"notGitInstall": "Diese Installation enthält keine Commit-Informationen.",
"checkFailed": "Aktualisierungen konnten nicht geprüft werden.",
"contactsGithub": "Prüfungen erfolgen manuell und stellen eine Verbindung zu GitHub her.",
+ "autoUpdateCheck": "Automatische Updateprüfung",
+ "autoUpdateCheckHelp": "Prüft einmal täglich auf GitHub, ob es eine neue Version gibt, und zeigt eine Erinnerung an. Standardmäßig deaktiviert.",
"openReleases": "GitHub-Releases öffnen",
"restartAfterUpdate": "FreeLLMAPI nach Abschluss des Builds neu starten."
},
@@ -849,5 +851,14 @@
"manualHint": "Basis-URL und Schlüssel für die eigenen Einstellungen des Tools.",
"endpoint": "Endpunkt",
"documentation": "Dokumentation"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.json
index c2546b50..b95f2eed 100644
--- a/client/src/i18n/locales/el.json
+++ b/client/src/i18n/locales/el.json
@@ -159,6 +159,8 @@
"notGitInstall": "Αυτή η εγκατάσταση δεν περιλαμβάνει πληροφορίες commit.",
"checkFailed": "Δεν ήταν δυνατός ο έλεγχος για ενημερώσεις.",
"contactsGithub": "Οι έλεγχοι γίνονται χειροκίνητα και επικοινωνούν με το GitHub.",
+ "autoUpdateCheck": "Αυτόματος έλεγχος ενημερώσεων",
+ "autoUpdateCheckHelp": "Ελέγχει το GitHub μία φορά την ημέρα για νέα έκδοση και εμφανίζει υπενθύμιση. Απενεργοποιημένο από προεπιλογή.",
"openReleases": "Άνοιγμα εκδόσεων GitHub",
"restartAfterUpdate": "Επανεκκινήστε το FreeLLMAPI μετά την ολοκλήρωση του build."
},
@@ -849,5 +851,14 @@
"manualHint": "Βασικό URL και κλειδί για καταχώριση στις ρυθμίσεις του ίδιου του εργαλείου.",
"endpoint": "Τελικό σημείο",
"documentation": "Τεκμηρίωση"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json
index 2351bde2..f0fd9757 100644
--- a/client/src/i18n/locales/en.json
+++ b/client/src/i18n/locales/en.json
@@ -159,6 +159,8 @@
"notGitInstall": "This installation does not include commit information.",
"checkFailed": "Could not check for updates.",
"contactsGithub": "Checks are manual and contact GitHub.",
+ "autoUpdateCheck": "Automatic update check",
+ "autoUpdateCheckHelp": "Checks GitHub once a day for a new release and shows a reminder. Off by default.",
"openReleases": "Open GitHub Releases",
"restartAfterUpdate": "Restart FreeLLMAPI after the build completes."
},
@@ -849,5 +851,14 @@
"url": "Enter a valid URL starting with http:// or https://",
"email": "Enter a valid email address",
"passwordMin": "At least {min} characters"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.json
index 10c63592..cdebb375 100644
--- a/client/src/i18n/locales/es.json
+++ b/client/src/i18n/locales/es.json
@@ -159,6 +159,8 @@
"notGitInstall": "Esta instalación no incluye información de commits.",
"checkFailed": "No se pudo comprobar si hay actualizaciones.",
"contactsGithub": "Las comprobaciones se realizan manualmente y contactan con GitHub.",
+ "autoUpdateCheck": "Comprobación automática de actualizaciones",
+ "autoUpdateCheckHelp": "Consulta GitHub una vez al día para ver si hay una nueva versión y muestra un recordatorio. Desactivado de forma predeterminada.",
"openReleases": "Abrir lanzamientos de GitHub",
"restartAfterUpdate": "Reinicia FreeLLMAPI cuando finalice la compilación."
},
@@ -849,5 +851,14 @@
"manualHint": "URL base y clave para introducir en los ajustes de la herramienta.",
"endpoint": "Endpoint",
"documentation": "Documentación"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.json
index 320b63b9..e80b6a34 100644
--- a/client/src/i18n/locales/fa.json
+++ b/client/src/i18n/locales/fa.json
@@ -159,6 +159,8 @@
"notGitInstall": "این نصب شامل اطلاعات commit نیست.",
"checkFailed": "بررسی به‌روزرسانی‌ها ممکن نبود.",
"contactsGithub": "بررسی‌ها دستی هستند و با GitHub ارتباط برقرار می‌کنند.",
+ "autoUpdateCheck": "بررسی خودکار به‌روزرسانی",
+ "autoUpdateCheckHelp": "روزی یک بار GitHub را برای انتشار نسخهٔ جدید بررسی می‌کند و یادآوری نشان می‌دهد. به‌طور پیش‌فرض خاموش است.",
"openReleases": "باز کردن نسخه‌های منتشرشده در GitHub",
"restartAfterUpdate": "پس از تکمیل بیلد، FreeLLMAPI را راه‌اندازی مجدد کنید."
},
@@ -849,5 +851,14 @@
"manualHint": "نشانی پایه و کلید برای وارد کردن در تنظیمات خودِ ابزار.",
"endpoint": "نقطه پایانی",
"documentation": "مستندات"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.json
index 9d550b6e..4235ffd0 100644
--- a/client/src/i18n/locales/fi.json
+++ b/client/src/i18n/locales/fi.json
@@ -159,6 +159,8 @@
"notGitInstall": "Tämä asennus ei sisällä commit-tietoja.",
"checkFailed": "Päivitysten tarkistaminen epäonnistui.",
"contactsGithub": "Tarkistukset tehdään manuaalisesti ja ne ottavat yhteyden GitHubiin.",
+ "autoUpdateCheck": "Automaattinen päivitystarkistus",
+ "autoUpdateCheckHelp": "Tarkistaa GitHubista kerran päivässä, onko uutta julkaisua, ja näyttää muistutuksen. Oletuksena pois päältä.",
"openReleases": "Avaa GitHub-julkaisut",
"restartAfterUpdate": "Käynnistä FreeLLMAPI uudelleen koonnin valmistuttua."
},
@@ -849,5 +851,14 @@
"manualHint": "Perus-URL ja avain työkalun omiin asetuksiin.",
"endpoint": "Päätepiste",
"documentation": "Dokumentaatio"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.json
index f0bab1be..c5deade4 100644
--- a/client/src/i18n/locales/fr.json
+++ b/client/src/i18n/locales/fr.json
@@ -159,6 +159,8 @@
"notGitInstall": "Cette installation ne contient aucune information de commit.",
"checkFailed": "Impossible de rechercher les mises à jour.",
"contactsGithub": "Les vérifications sont effectuées manuellement et contactent GitHub.",
+ "autoUpdateCheck": "Vérification automatique des mises à jour",
+ "autoUpdateCheckHelp": "Consulte GitHub une fois par jour pour détecter une nouvelle version et affiche un rappel. Désactivé par défaut.",
"openReleases": "Ouvrir les versions GitHub",
"restartAfterUpdate": "Redémarrez FreeLLMAPI une fois le build terminé."
},
@@ -849,5 +851,14 @@
"manualHint": "URL de base et clé à saisir dans les réglages de l'outil.",
"endpoint": "Endpoint",
"documentation": "Documentation"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.json
index 86a66f47..a93bbbfe 100644
--- a/client/src/i18n/locales/gu.json
+++ b/client/src/i18n/locales/gu.json
@@ -159,6 +159,8 @@
"notGitInstall": "આ ઇન્સ્ટોલેશનમાં કમિટની માહિતી શામેલ નથી.",
"checkFailed": "અપડેટ્સ તપાસી શકાયા નથી.",
"contactsGithub": "તપાસો મેન્યુઅલી કરવામાં આવે છે અને GitHubનો સંપર્ક કરે છે.",
+ "autoUpdateCheck": "આપમેળે અપડેટ તપાસ",
+ "autoUpdateCheckHelp": "દિવસમાં એક વાર નવા રિલીઝ માટે GitHub તપાસે છે અને રિમાઇન્ડર બતાવે છે. મૂળભૂત રીતે બંધ.",
"openReleases": "GitHub રિલીઝ ખોલો",
"restartAfterUpdate": "બિલ્ડ પૂર્ણ થયા પછી FreeLLMAPI ફરી શરૂ કરો."
},
@@ -849,5 +851,14 @@
"manualHint": "ટૂલની પોતાની સેટિંગ્સમાં દાખલ કરવા માટે બેઝ URL અને કી.",
"endpoint": "એન્ડપોઇન્ટ",
"documentation": "દસ્તાવેજીકરણ"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.json
index 082242cf..22f951f4 100644
--- a/client/src/i18n/locales/ha.json
+++ b/client/src/i18n/locales/ha.json
@@ -159,6 +159,8 @@
"notGitInstall": "Wannan shigarwar ba ta ƙunshi bayanan commit ba.",
"checkFailed": "Ba a iya bincika sabuntawa ba.",
"contactsGithub": "Ana yin dubawa da hannu kuma ana tuntuɓar GitHub.",
+ "autoUpdateCheck": "Duba sabuntawa ta atomatik",
+ "autoUpdateCheckHelp": "Yana duba GitHub sau ɗaya a rana don sabon fitowa kuma yana nuna tunatarwa. A kashe ta tsohuwa.",
"openReleases": "Buɗe sakin GitHub",
"restartAfterUpdate": "Sake kunna FreeLLMAPI bayan an gama build ɗin."
},
@@ -849,5 +851,14 @@
"manualHint": "Babban URL da maɓalli don shigarwa cikin saitunan kayan aikin.",
"endpoint": "Endpoint",
"documentation": "Takardun bayani"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.json
index 95591b5c..a9ec2702 100644
--- a/client/src/i18n/locales/he.json
+++ b/client/src/i18n/locales/he.json
@@ -159,6 +159,8 @@
"notGitInstall": "התקנה זו אינה כוללת מידע על קומיטים.",
"checkFailed": "לא ניתן היה לבדוק אם קיימים עדכונים.",
"contactsGithub": "הבדיקות מתבצעות ידנית ויוצרות קשר עם GitHub.",
+ "autoUpdateCheck": "בדיקת עדכונים אוטומטית",
+ "autoUpdateCheckHelp": "בודקת ב-GitHub פעם ביום אם יצאה גרסה חדשה ומציגה תזכורת. כבויה כברירת מחדל.",
"openReleases": "פתיחת מהדורות GitHub",
"restartAfterUpdate": "הפעל מחדש את FreeLLMAPI לאחר השלמת הבנייה."
},
@@ -849,5 +851,14 @@
"manualHint": "כתובת URL בסיסית ומפתח להזנה בהגדרות של הכלי עצמו.",
"endpoint": "נקודת קצה",
"documentation": "תיעוד"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.json
index 16ace656..9f2b04cc 100644
--- a/client/src/i18n/locales/hi.json
+++ b/client/src/i18n/locales/hi.json
@@ -159,6 +159,8 @@
"notGitInstall": "इस इंस्टॉलेशन में कमिट की जानकारी शामिल नहीं है।",
"checkFailed": "अपडेट की जाँच नहीं की जा सकी।",
"contactsGithub": "जाँच मैन्युअल रूप से होती है और GitHub से संपर्क करती है।",
+ "autoUpdateCheck": "स्वचालित अपडेट जाँच",
+ "autoUpdateCheckHelp": "दिन में एक बार नई रिलीज़ के लिए GitHub की जाँच करता है और अनुस्मारक दिखाता है। डिफ़ॉल्ट रूप से बंद।",
"openReleases": "GitHub रिलीज़ खोलें",
"restartAfterUpdate": "बिल्ड पूरा होने के बाद FreeLLMAPI को पुनः आरंभ करें।"
},
@@ -849,5 +851,14 @@
"manualHint": "टूल की अपनी सेटिंग्स में डालने के लिए बेस URL और कुंजी।",
"endpoint": "समापन बिंदु",
"documentation": "दस्तावेज़ीकरण"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.json
index e4da9b16..80fef54a 100644
--- a/client/src/i18n/locales/hr.json
+++ b/client/src/i18n/locales/hr.json
@@ -159,6 +159,8 @@
"notGitInstall": "Ova instalacija ne sadrži informacije o commitovima.",
"checkFailed": "Nije moguće provjeriti ažuriranja.",
"contactsGithub": "Provjere se pokreću ručno i kontaktiraju GitHub.",
+ "autoUpdateCheck": "Automatska provjera ažuriranja",
+ "autoUpdateCheckHelp": "Jednom dnevno provjerava GitHub za novo izdanje i prikazuje podsjetnik. Prema zadanome isključeno.",
"openReleases": "Otvori izdanja na GitHubu",
"restartAfterUpdate": "Ponovno pokrenite FreeLLMAPI nakon dovršetka izgradnje."
},
@@ -849,5 +851,14 @@
"manualHint": "Osnovni URL i ključ za unos u postavke samog alata.",
"endpoint": "Krajnja točka",
"documentation": "Dokumentacija"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.json
index 07efd467..b205ef41 100644
--- a/client/src/i18n/locales/hu.json
+++ b/client/src/i18n/locales/hu.json
@@ -159,6 +159,8 @@
"notGitInstall": "Ez a telepítés nem tartalmaz commitinformációkat.",
"checkFailed": "Nem sikerült ellenőrizni a frissítéseket.",
"contactsGithub": "Az ellenőrzések manuálisak, és kapcsolatba lépnek a GitHubbal.",
+ "autoUpdateCheck": "Automatikus frissítésellenőrzés",
+ "autoUpdateCheckHelp": "Naponta egyszer ellenőrzi a GitHubon az új kiadást, és emlékeztetőt jelenít meg. Alapértelmezés szerint kikapcsolva.",
"openReleases": "GitHub-kiadások megnyitása",
"restartAfterUpdate": "A build befejezése után indítsa újra a FreeLLMAPI-t."
},
@@ -849,5 +851,14 @@
"manualHint": "Alap-URL és kulcs az eszköz saját beállításaihoz.",
"endpoint": "Végpont",
"documentation": "Dokumentáció"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.json
index f9bfe6fb..986eb63b 100644
--- a/client/src/i18n/locales/id.json
+++ b/client/src/i18n/locales/id.json
@@ -159,6 +159,8 @@
"notGitInstall": "Instalasi ini tidak menyertakan informasi commit.",
"checkFailed": "Tidak dapat memeriksa pembaruan.",
"contactsGithub": "Pemeriksaan dilakukan secara manual dan menghubungi GitHub.",
+ "autoUpdateCheck": "Pemeriksaan pembaruan otomatis",
+ "autoUpdateCheckHelp": "Memeriksa GitHub sekali sehari untuk rilis baru dan menampilkan pengingat. Nonaktif secara bawaan.",
"openReleases": "Buka Rilis GitHub",
"restartAfterUpdate": "Mulai ulang FreeLLMAPI setelah proses build selesai."
},
@@ -849,5 +851,14 @@
"manualHint": "URL dasar dan kunci untuk dimasukkan ke pengaturan alat itu sendiri.",
"endpoint": "Titik akhir",
"documentation": "Dokumentasi"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.json
index 5e7fea80..7e5bc193 100644
--- a/client/src/i18n/locales/ig.json
+++ b/client/src/i18n/locales/ig.json
@@ -159,6 +159,8 @@
"notGitInstall": "Nwụnye a enweghị ozi commit.",
"checkFailed": "Enweghị ike ịlele mmelite.",
"contactsGithub": "A na-eji aka eme nyocha ndị a, ha na-akpọtụrụ GitHub.",
+ "autoUpdateCheck": "Nyocha mmelite akpaaka",
+ "autoUpdateCheckHelp": "Ọ na-enyocha GitHub otu ugboro n'ụbọchị maka ntọhapụ ọhụrụ ma gosi ncheta. A gbanyụrụ ya na ndabara.",
"openReleases": "Mepee GitHub Releases",
"restartAfterUpdate": "Malitegharịa FreeLLMAPI mgbe build ahụ gwụchara."
},
@@ -849,5 +851,14 @@
"manualHint": "Isi URL na igodo ị ga-etinye na ntọala nke ngwá ọrụ ahụ.",
"endpoint": "Njedebe",
"documentation": "Akwụkwọ ntuziaka"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.json
index b8ce61c6..58c0f1ab 100644
--- a/client/src/i18n/locales/it.json
+++ b/client/src/i18n/locales/it.json
@@ -159,6 +159,8 @@
"notGitInstall": "Questa installazione non include informazioni sui commit.",
"checkFailed": "Impossibile verificare la disponibilità di aggiornamenti.",
"contactsGithub": "I controlli sono manuali e contattano GitHub.",
+ "autoUpdateCheck": "Controllo automatico degli aggiornamenti",
+ "autoUpdateCheckHelp": "Controlla GitHub una volta al giorno per una nuova versione e mostra un promemoria. Disattivato per impostazione predefinita.",
"openReleases": "Apri le release di GitHub",
"restartAfterUpdate": "Riavvia FreeLLMAPI al termine della build."
},
@@ -849,5 +851,14 @@
"manualHint": "URL di base e chiave da inserire nelle impostazioni dello strumento.",
"endpoint": "Endpoint",
"documentation": "Documentazione"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.json
index e53d8740..d45e6616 100644
--- a/client/src/i18n/locales/ja.json
+++ b/client/src/i18n/locales/ja.json
@@ -159,6 +159,8 @@
"notGitInstall": "このインストールにはコミット情報が含まれていません。",
"checkFailed": "アップデートを確認できませんでした。",
"contactsGithub": "確認は手動で行われ、GitHubに接続します。",
+ "autoUpdateCheck": "自動アップデートチェック",
+ "autoUpdateCheckHelp": "1日1回、新しいリリースがないかGitHubを確認し、通知を表示します。既定では無効です。",
"openReleases": "GitHub Releasesを開く",
"restartAfterUpdate": "ビルド完了後にFreeLLMAPIを再起動してください。"
},
@@ -849,5 +851,14 @@
"manualHint": "ツール自身の設定に入力するベース URL とキーです。",
"endpoint": "エンドポイント",
"documentation": "ドキュメント"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.json
index 6d6f170e..eb65c2fa 100644
--- a/client/src/i18n/locales/ka.json
+++ b/client/src/i18n/locales/ka.json
@@ -159,6 +159,8 @@
"notGitInstall": "ეს ინსტალაცია კომიტების შესახებ ინფორმაციას არ შეიცავს.",
"checkFailed": "განახლებების შემოწმება ვერ მოხერხდა.",
"contactsGithub": "შემოწმება ხელით სრულდება და GitHub-ს უკავშირდება.",
+ "autoUpdateCheck": "განახლებების ავტომატური შემოწმება",
+ "autoUpdateCheckHelp": "დღეში ერთხელ ამოწმებს GitHub-ს ახალი გამოშვებისთვის და აჩვენებს შეხსენებას. ნაგულისხმევად გამორთულია.",
"openReleases": "GitHub-ის რელიზების გახსნა",
"restartAfterUpdate": "ბილდის დასრულების შემდეგ გადატვირთეთ FreeLLMAPI."
},
@@ -849,5 +851,14 @@
"manualHint": "საბაზისო URL და გასაღები ხელსაწყოს საკუთარ პარამეტრებში შესატანად.",
"endpoint": "საბოლოო წერტილი",
"documentation": "დოკუმენტაცია"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.json
index 4a11113b..98c603c9 100644
--- a/client/src/i18n/locales/km.json
+++ b/client/src/i18n/locales/km.json
@@ -159,6 +159,8 @@
"notGitInstall": "ការដំឡើងនេះមិនមានព័ត៌មាន commit ទេ។",
"checkFailed": "មិនអាចពិនិត្យរកការអាប់ដេតបានទេ។",
"contactsGithub": "ការពិនិត្យធ្វើឡើងដោយដៃ និងភ្ជាប់ទៅ GitHub។",
+ "autoUpdateCheck": "ការពិនិត្យអាប់ដេតដោយស្វ័យប្រវត្តិ",
+ "autoUpdateCheckHelp": "ពិនិត្យ GitHub ម្ដងក្នុងមួយថ្ងៃរកមើលការចេញផ្សាយថ្មី ហើយបង្ហាញការរំលឹក។ បិទតាមលំនាំដើម។",
"openReleases": "បើក GitHub Releases",
"restartAfterUpdate": "ចាប់ផ្តើម FreeLLMAPI ឡើងវិញ បន្ទាប់ពីការបង្កើតបានបញ្ចប់។"
},
@@ -849,5 +851,14 @@
"manualHint": "URL មូលដ្ឋាន និងកូនសោសម្រាប់បញ្ចូលក្នុងការកំណត់របស់ឧបករណ៍។",
"endpoint": "ចំណុចបញ្ចប់",
"documentation": "ឯកសារ"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.json
index 34db542f..64151527 100644
--- a/client/src/i18n/locales/kn.json
+++ b/client/src/i18n/locales/kn.json
@@ -159,6 +159,8 @@
"notGitInstall": "ಈ ಸ್ಥಾಪನೆಯು ಕಮಿಟ್ ಮಾಹಿತಿಯನ್ನು ಒಳಗೊಂಡಿಲ್ಲ.",
"checkFailed": "ನವೀಕರಣಗಳಿಗಾಗಿ ಪರಿಶೀಲಿಸಲು ಸಾಧ್ಯವಾಗಲಿಲ್ಲ.",
"contactsGithub": "ಪರಿಶೀಲನೆಗಳನ್ನು ಹಸ್ತಚಾಲಿತವಾಗಿ ಮಾಡಲಾಗುತ್ತದೆ ಮತ್ತು ಅವು GitHub ಅನ್ನು ಸಂಪರ್ಕಿಸುತ್ತವೆ.",
+ "autoUpdateCheck": "ಸ್ವಯಂಚಾಲಿತ ನವೀಕರಣ ಪರಿಶೀಲನೆ",
+ "autoUpdateCheckHelp": "ದಿನಕ್ಕೊಮ್ಮೆ ಹೊಸ ಬಿಡುಗಡೆಗಾಗಿ GitHub ಅನ್ನು ಪರಿಶೀಲಿಸುತ್ತದೆ ಮತ್ತು ಜ್ಞಾಪನೆ ತೋರಿಸುತ್ತದೆ. ಪೂರ್ವನಿಯೋಜಿತವಾಗಿ ಆಫ್ ಆಗಿದೆ.",
"openReleases": "GitHub ಬಿಡುಗಡೆಗಳನ್ನು ತೆರೆಯಿರಿ",
"restartAfterUpdate": "ಬಿಲ್ಡ್ ಪೂರ್ಣಗೊಂಡ ನಂತರ FreeLLMAPI ಅನ್ನು ಮರುಪ್ರಾರಂಭಿಸಿ."
},
@@ -849,5 +851,14 @@
"manualHint": "ಸಾಧನದ ಸ್ವಂತ ಸೆಟ್ಟಿಂಗ್‌ಗಳಲ್ಲಿ ನಮೂದಿಸಲು ಬೇಸ್ URL ಮತ್ತು ಕೀ.",
"endpoint": "ಅಂತಿಮ ಬಿಂದು",
"documentation": "ದಾಖಲಾತಿ"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.json
index c9a1dd5c..bbd608ab 100644
--- a/client/src/i18n/locales/ko.json
+++ b/client/src/i18n/locales/ko.json
@@ -159,6 +159,8 @@
"notGitInstall": "이 설치에는 커밋 정보가 포함되어 있지 않습니다.",
"checkFailed": "업데이트를 확인할 수 없습니다.",
"contactsGithub": "확인은 수동으로 진행되며 GitHub에 연결합니다.",
+ "autoUpdateCheck": "자동 업데이트 확인",
+ "autoUpdateCheckHelp": "하루에 한 번 GitHub에서 새 릴리스를 확인하고 알림을 표시합니다. 기본값은 꺼짐입니다.",
"openReleases": "GitHub 릴리스 열기",
"restartAfterUpdate": "빌드가 완료되면 FreeLLMAPI를 다시 시작하세요."
},
@@ -849,5 +851,14 @@
"manualHint": "도구 자체 설정에 입력할 기본 URL과 키입니다.",
"endpoint": "엔드포인트",
"documentation": "문서"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.json
index ca55d0fc..bedab410 100644
--- a/client/src/i18n/locales/lt.json
+++ b/client/src/i18n/locales/lt.json
@@ -159,6 +159,8 @@
"notGitInstall": "Šiame diegime nėra informacijos apie Git įrašus.",
"checkFailed": "Nepavyko patikrinti, ar yra naujinių.",
"contactsGithub": "Tikrinimas atliekamas rankiniu būdu ir susisiekiama su GitHub.",
+ "autoUpdateCheck": "Automatinis atnaujinimų tikrinimas",
+ "autoUpdateCheckHelp": "Kartą per dieną patikrina „GitHub“, ar yra nauja laida, ir parodo priminimą. Pagal numatytuosius nustatymus išjungta.",
"openReleases": "Atverti GitHub leidimus",
"restartAfterUpdate": "Baigę komponuoti paleiskite FreeLLMAPI iš naujo."
},
@@ -849,5 +851,14 @@
"manualHint": "Bazinis URL ir raktas, kuriuos reikia įvesti paties įrankio nustatymuose.",
"endpoint": "Galinis taškas",
"documentation": "Dokumentacija"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.json
index 9cdf2e2c..f48d39f4 100644
--- a/client/src/i18n/locales/ml.json
+++ b/client/src/i18n/locales/ml.json
@@ -159,6 +159,8 @@
"notGitInstall": "ഈ ഇൻസ്റ്റാളേഷനിൽ കമ്മിറ്റ് വിവരങ്ങൾ ഉൾപ്പെട്ടിട്ടില്ല.",
"checkFailed": "അപ്‌ഡേറ്റുകൾ പരിശോധിക്കാനായില്ല.",
"contactsGithub": "പരിശോധനകൾ മാനുവലായാണ് നടത്തുന്നത്; അവ GitHub-മായി ബന്ധപ്പെടുന്നു.",
+ "autoUpdateCheck": "സ്വയമേവയുള്ള അപ്ഡേറ്റ് പരിശോധന",
+ "autoUpdateCheckHelp": "ദിവസത്തിൽ ഒരിക്കൽ പുതിയ റിലീസിനായി GitHub പരിശോധിച്ച് ഒരു ഓർമ്മപ്പെടുത്തൽ കാണിക്കുന്നു. സ്ഥിരസ്ഥിതിയായി ഓഫ് ആണ്.",
"openReleases": "GitHub റിലീസുകൾ തുറക്കുക",
"restartAfterUpdate": "ബിൽഡ് പൂർത്തിയായ ശേഷം FreeLLMAPI പുനരാരംഭിക്കുക."
},
@@ -849,5 +851,14 @@
"manualHint": "ഉപകരണത്തിന്റെ സ്വന്തം ക്രമീകരണങ്ങളിൽ നൽകാനുള്ള ബേസ് URL ഉം കീയും.",
"endpoint": "എൻഡ്‌പോയിൻ്റ്",
"documentation": "ഡോക്യുമെൻ്റേഷൻ"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.json
index 30447d5a..5992381a 100644
--- a/client/src/i18n/locales/mr.json
+++ b/client/src/i18n/locales/mr.json
@@ -159,6 +159,8 @@
"notGitInstall": "या इंस्टॉलेशनमध्ये कमिटची माहिती समाविष्ट नाही.",
"checkFailed": "अपडेट्स तपासता आले नाहीत.",
"contactsGithub": "तपासणी स्वतः सुरू करावी लागते आणि ती GitHub शी संपर्क साधते.",
+ "autoUpdateCheck": "स्वयंचलित अद्यतन तपासणी",
+ "autoUpdateCheckHelp": "दिवसातून एकदा नवीन रिलीजसाठी GitHub तपासते आणि स्मरणपत्र दाखवते. डीफॉल्टनुसार बंद.",
"openReleases": "GitHub रिलीजेस उघडा",
"restartAfterUpdate": "बिल्ड पूर्ण झाल्यानंतर FreeLLMAPI पुन्हा सुरू करा."
},
@@ -849,5 +851,14 @@
"manualHint": "साधनाच्या स्वतःच्या सेटिंग्जमध्ये टाकण्यासाठी बेस URL आणि की.",
"endpoint": "एंडपॉइंट",
"documentation": "दस्तऐवजीकरण"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.json
index 53f3ec41..e88ded45 100644
--- a/client/src/i18n/locales/ms.json
+++ b/client/src/i18n/locales/ms.json
@@ -159,6 +159,8 @@
"notGitInstall": "Pemasangan ini tidak menyertakan maklumat komit.",
"checkFailed": "Tidak dapat menyemak kemas kini.",
"contactsGithub": "Semakan dijalankan secara manual dan menghubungi GitHub.",
+ "autoUpdateCheck": "Semakan kemas kini automatik",
+ "autoUpdateCheckHelp": "Menyemak GitHub sekali sehari untuk keluaran baharu dan memaparkan peringatan. Dimatikan secara lalai.",
"openReleases": "Buka Keluaran GitHub",
"restartAfterUpdate": "Mulakan semula FreeLLMAPI selepas binaan selesai."
},
@@ -849,5 +851,14 @@
"manualHint": "URL asas dan kunci untuk dimasukkan dalam tetapan alat itu sendiri.",
"endpoint": "Titik akhir",
"documentation": "Dokumentasi"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.json
index 40a46d83..2298492c 100644
--- a/client/src/i18n/locales/my.json
+++ b/client/src/i18n/locales/my.json
@@ -159,6 +159,8 @@
"notGitInstall": "ဤထည့်သွင်းမှုတွင် commit အချက်အလက် မပါဝင်ပါ။",
"checkFailed": "အပ်ဒိတ်များကို စစ်ဆေး၍ မရပါ။",
"contactsGithub": "စစ်ဆေးမှုများကို ကိုယ်တိုင်လုပ်ဆောင်ရပြီး GitHub သို့ ဆက်သွယ်သည်။",
+ "autoUpdateCheck": "အလိုအလျောက် အပ်ဒိတ်စစ်ဆေးမှု",
+ "autoUpdateCheckHelp": "တစ်ရက်လျှင် တစ်ကြိမ် ဗားရှင်းအသစ်အတွက် GitHub ကို စစ်ဆေးပြီး သတိပေးချက် ပြသသည်။ မူရင်းအတိုင်း ပိတ်ထားသည်။",
"openReleases": "GitHub Releases ကို ဖွင့်ရန်",
"restartAfterUpdate": "build ပြီးဆုံးပြီးနောက် FreeLLMAPI ကို ပြန်လည်စတင်ပါ။"
},
@@ -849,5 +851,14 @@
"manualHint": "ကိရိယာ၏ ကိုယ်ပိုင်ဆက်တင်များတွင် ထည့်ရန် အခြေခံ URL နှင့် သော့။",
"endpoint": "Endpoint",
"documentation": "စာရွက်စာတမ်းများ"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.json
index 7f4d7958..249d07a7 100644
--- a/client/src/i18n/locales/ne.json
+++ b/client/src/i18n/locales/ne.json
@@ -159,6 +159,8 @@
"notGitInstall": "यो स्थापनामा commit जानकारी समावेश छैन।",
"checkFailed": "अद्यावधिकहरू जाँच गर्न सकिएन।",
"contactsGithub": "जाँचहरू म्यानुअल रूपमा गरिन्छन् र GitHub सँग सम्पर्क गर्छन्।",
+ "autoUpdateCheck": "स्वचालित अद्यावधिक जाँच",
+ "autoUpdateCheckHelp": "दिनमा एक पटक नयाँ रिलिजका लागि GitHub जाँच गर्छ र सम्झना देखाउँछ। पूर्वनिर्धारित रूपमा बन्द।",
"openReleases": "GitHub रिलीजहरू खोल्नुहोस्",
"restartAfterUpdate": "बिल्ड पूरा भएपछि FreeLLMAPI पुनः सुरु गर्नुहोस्।"
},
@@ -849,5 +851,14 @@
"manualHint": "उपकरणकै सेटिङमा राख्न बेस URL र कुञ्जी।",
"endpoint": "एन्डपोइन्ट",
"documentation": "दस्तावेज"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.json
index c1bd2549..dea424aa 100644
--- a/client/src/i18n/locales/nl.json
+++ b/client/src/i18n/locales/nl.json
@@ -159,6 +159,8 @@
"notGitInstall": "Deze installatie bevat geen commitinformatie.",
"checkFailed": "Kan niet controleren op updates.",
"contactsGithub": "Controles worden handmatig uitgevoerd en maken contact met GitHub.",
+ "autoUpdateCheck": "Automatische updatecontrole",
+ "autoUpdateCheckHelp": "Controleert GitHub eenmaal per dag op een nieuwe release en toont een herinnering. Standaard uitgeschakeld.",
"openReleases": "GitHub Releases openen",
"restartAfterUpdate": "Start FreeLLMAPI opnieuw nadat de build is voltooid."
},
@@ -849,5 +851,14 @@
"manualHint": "Basis-URL en sleutel om in de eigen instellingen van de tool in te vullen.",
"endpoint": "Endpoint",
"documentation": "Documentatie"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.json
index a74e529c..6d89dbf9 100644
--- a/client/src/i18n/locales/no.json
+++ b/client/src/i18n/locales/no.json
@@ -159,6 +159,8 @@
"notGitInstall": "Denne installasjonen inneholder ikke commit-informasjon.",
"checkFailed": "Kunne ikke se etter oppdateringer.",
"contactsGithub": "Oppdateringssjekker kjøres manuelt og kontakter GitHub.",
+ "autoUpdateCheck": "Automatisk oppdateringssjekk",
+ "autoUpdateCheckHelp": "Sjekker GitHub én gang om dagen for en ny utgivelse og viser en påminnelse. Av som standard.",
"openReleases": "Åpne GitHub Releases",
"restartAfterUpdate": "Start FreeLLMAPI på nytt etter at byggingen er fullført."
},
@@ -849,5 +851,14 @@
"manualHint": "Basis-URL og nøkkel til verktøyets egne innstillinger.",
"endpoint": "Endepunkt",
"documentation": "Dokumentasjon"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.json
index b62db9db..7dbff6d2 100644
--- a/client/src/i18n/locales/or.json
+++ b/client/src/i18n/locales/or.json
@@ -159,6 +159,8 @@
"notGitInstall": "ଏହି ଇନ୍‌ଷ୍ଟଲେସନ୍‌ରେ commit ସୂଚନା ନାହିଁ।",
"checkFailed": "ଅପଡେଟ୍ ଯାଞ୍ଚ କରାଯାଇପାରିଲା ନାହିଁ।",
"contactsGithub": "ଯାଞ୍ଚଗୁଡ଼ିକ ମାନୁଆଲ୍ ଭାବେ କରାଯାଏ ଏବଂ GitHub ସହିତ ସଂଯୋଗ କରେ।",
+ "autoUpdateCheck": "ସ୍ୱୟଂଚାଳିତ ଅପଡେଟ୍ ଯାଞ୍ଚ",
+ "autoUpdateCheckHelp": "ଦିନକୁ ଥରେ ନୂଆ ରିଲିଜ୍ ପାଇଁ GitHub ଯାଞ୍ଚ କରେ ଏବଂ ଏକ ସ୍ମାରକ ଦେଖାଏ। ଡିଫଲ୍ଟ ଭାବେ ବନ୍ଦ।",
"openReleases": "GitHub Releases ଖୋଲନ୍ତୁ",
"restartAfterUpdate": "ବିଲ୍ଡ ସମ୍ପୂର୍ଣ୍ଣ ହେବା ପରେ FreeLLMAPI ପୁନଃ ଚାଲୁ କରନ୍ତୁ।"
},
@@ -849,5 +851,14 @@
"manualHint": "ଟୁଲର ନିଜ ସେଟିଂସରେ ଦେବା ପାଇଁ ବେସ୍ URL ଏବଂ କୀ।",
"endpoint": "ଏଣ୍ଡପଏଣ୍ଟ",
"documentation": "ଡକ୍ୟୁମେଣ୍ଟେସନ୍"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.json
index beee58db..61e15424 100644
--- a/client/src/i18n/locales/pa.json
+++ b/client/src/i18n/locales/pa.json
@@ -159,6 +159,8 @@
"notGitInstall": "ਇਸ ਇੰਸਟਾਲੇਸ਼ਨ ਵਿੱਚ commit ਜਾਣਕਾਰੀ ਸ਼ਾਮਲ ਨਹੀਂ ਹੈ।",
"checkFailed": "ਅੱਪਡੇਟਾਂ ਦੀ ਜਾਂਚ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ।",
"contactsGithub": "ਜਾਂਚਾਂ ਹੱਥੀਂ ਚਲਾਈਆਂ ਜਾਂਦੀਆਂ ਹਨ ਅਤੇ GitHub ਨਾਲ ਸੰਪਰਕ ਕਰਦੀਆਂ ਹਨ।",
+ "autoUpdateCheck": "ਆਪਣੇ-ਆਪ ਅੱਪਡੇਟ ਜਾਂਚ",
+ "autoUpdateCheckHelp": "ਦਿਨ ਵਿੱਚ ਇੱਕ ਵਾਰ ਨਵੀਂ ਰਿਲੀਜ਼ ਲਈ GitHub ਦੀ ਜਾਂਚ ਕਰਦਾ ਹੈ ਅਤੇ ਯਾਦ-ਦਹਾਨੀ ਦਿਖਾਉਂਦਾ ਹੈ। ਮੂਲ ਰੂਪ ਵਿੱਚ ਬੰਦ।",
"openReleases": "GitHub Releases ਖੋਲ੍ਹੋ",
"restartAfterUpdate": "ਬਿਲਡ ਪੂਰਾ ਹੋਣ ਤੋਂ ਬਾਅਦ FreeLLMAPI ਨੂੰ ਮੁੜ ਚਾਲੂ ਕਰੋ।"
},
@@ -849,5 +851,14 @@
"manualHint": "ਟੂਲ ਦੀਆਂ ਆਪਣੀਆਂ ਸੈਟਿੰਗਾਂ ਵਿੱਚ ਭਰਨ ਲਈ ਬੇਸ URL ਅਤੇ ਕੁੰਜੀ।",
"endpoint": "ਐਂਡਪੁਆਇੰਟ",
"documentation": "ਦਸਤਾਵੇਜ਼"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.json
index 6a0d35ac..e756f695 100644
--- a/client/src/i18n/locales/pl.json
+++ b/client/src/i18n/locales/pl.json
@@ -159,6 +159,8 @@
"notGitInstall": "Ta instalacja nie zawiera informacji o commicie.",
"checkFailed": "Nie udało się sprawdzić dostępności aktualizacji.",
"contactsGithub": "Sprawdzanie jest uruchamiane ręcznie i nawiązuje połączenie z GitHubem.",
+ "autoUpdateCheck": "Automatyczne sprawdzanie aktualizacji",
+ "autoUpdateCheckHelp": "Raz dziennie sprawdza w serwisie GitHub, czy jest nowe wydanie, i wyświetla przypomnienie. Domyślnie wyłączone.",
"openReleases": "Otwórz wydania w GitHubie",
"restartAfterUpdate": "Uruchom ponownie FreeLLMAPI po zakończeniu kompilacji."
},
@@ -849,5 +851,14 @@
"manualHint": "Bazowy adres URL i klucz do wpisania w ustawieniach samego narzędzia.",
"endpoint": "Punkt końcowy",
"documentation": "Dokumentacja"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.json
index fdd019c6..fc6c8e49 100644
--- a/client/src/i18n/locales/pt-BR.json
+++ b/client/src/i18n/locales/pt-BR.json
@@ -159,6 +159,8 @@
"notGitInstall": "Esta instalação não inclui informações do commit.",
"checkFailed": "Não foi possível verificar se há atualizações.",
"contactsGithub": "As verificações são manuais e acessam o GitHub.",
+ "autoUpdateCheck": "Verificação automática de atualizações",
+ "autoUpdateCheckHelp": "Consulta o GitHub uma vez por dia em busca de uma nova versão e exibe um lembrete. Desativado por padrão.",
"openReleases": "Abrir releases no GitHub",
"restartAfterUpdate": "Reinicie o FreeLLMAPI após a conclusão da build."
},
@@ -849,5 +851,14 @@
"manualHint": "URL base e chave para inserir nas configurações da própria ferramenta.",
"endpoint": "Endpoint",
"documentation": "Documentação"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.json
index 8fb95adb..1f68b5ab 100644
--- a/client/src/i18n/locales/pt-PT.json
+++ b/client/src/i18n/locales/pt-PT.json
@@ -159,6 +159,8 @@
"notGitInstall": "Esta instalação não inclui informações do commit.",
"checkFailed": "Não foi possível procurar atualizações.",
"contactsGithub": "As verificações são manuais e contactam o GitHub.",
+ "autoUpdateCheck": "Verificação automática de atualizações",
+ "autoUpdateCheckHelp": "Consulta o GitHub uma vez por dia à procura de uma nova versão e mostra um lembrete. Desativado por predefinição.",
"openReleases": "Abrir lançamentos no GitHub",
"restartAfterUpdate": "Reinicie o FreeLLMAPI após a conclusão da compilação."
},
@@ -849,5 +851,14 @@
"manualHint": "URL base e chave para introduzir nas definições da própria ferramenta.",
"endpoint": "Endpoint",
"documentation": "Documentação"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.json
index 51c7743c..2d00ec1f 100644
--- a/client/src/i18n/locales/ro.json
+++ b/client/src/i18n/locales/ro.json
@@ -159,6 +159,8 @@
"notGitInstall": "Această instalare nu include informații despre commit.",
"checkFailed": "Nu s-au putut verifica actualizările.",
"contactsGithub": "Verificările sunt inițiate manual și contactează GitHub.",
+ "autoUpdateCheck": "Verificare automată a actualizărilor",
+ "autoUpdateCheckHelp": "Verifică GitHub o dată pe zi dacă există o versiune nouă și afișează o notificare. Dezactivat implicit.",
"openReleases": "Deschide versiunile GitHub",
"restartAfterUpdate": "Repornește FreeLLMAPI după finalizarea compilării."
},
@@ -849,5 +851,14 @@
"manualHint": "URL de bază și cheia de introdus în setările instrumentului.",
"endpoint": "Endpoint",
"documentation": "Documentație"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.json
index d1ce681d..1297ae27 100644
--- a/client/src/i18n/locales/ru.json
+++ b/client/src/i18n/locales/ru.json
@@ -159,6 +159,8 @@
"notGitInstall": "Эта установка не содержит сведений о коммите.",
"checkFailed": "Не удалось проверить наличие обновлений.",
"contactsGithub": "Проверка запускается вручную и обращается к GitHub.",
+ "autoUpdateCheck": "Автоматическая проверка обновлений",
+ "autoUpdateCheckHelp": "Раз в день проверяет на GitHub наличие нового выпуска и показывает напоминание. По умолчанию выключено.",
"openReleases": "Открыть релизы на GitHub",
"restartAfterUpdate": "Перезапустите FreeLLMAPI после завершения сборки."
},
@@ -849,5 +851,14 @@
"manualHint": "Базовый URL и ключ для ввода в настройках самого инструмента.",
"endpoint": "Эндпоинт",
"documentation": "Документация"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.json
index e105abfa..3ea8f1b3 100644
--- a/client/src/i18n/locales/si.json
+++ b/client/src/i18n/locales/si.json
@@ -159,6 +159,8 @@
"notGitInstall": "මෙම ස්ථාපනයේ commit තොරතුරු ඇතුළත් නොවේ.",
"checkFailed": "යාවත්කාලීන පරීක්ෂා කිරීමට නොහැකි විය.",
"contactsGithub": "පරීක්ෂා කිරීම් අතින් ක්‍රියාත්මක කරන අතර GitHub සමඟ සම්බන්ධ වේ.",
+ "autoUpdateCheck": "ස්වයංක්‍රීය යාවත්කාලීන පරීක්ෂාව",
+ "autoUpdateCheckHelp": "නව නිකුතුවක් සඳහා දිනකට වරක් GitHub පරීක්ෂා කර මතක් කිරීමක් පෙන්වයි. පෙරනිමියෙන් ක්‍රියාවිරහිතයි.",
"openReleases": "GitHub Releases විවෘත කරන්න",
"restartAfterUpdate": "ගොඩනැගීම සම්පූර්ණ වූ පසු FreeLLMAPI නැවත ආරම්භ කරන්න."
},
@@ -849,5 +851,14 @@
"manualHint": "මෙවලමේම සැකසුම් තුළ ඇතුළත් කිරීමට මූලික URL සහ යතුර.",
"endpoint": "අන්ත ලක්ෂ්‍යය",
"documentation": "ලේඛන"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.json
index a48efc14..13469ae4 100644
--- a/client/src/i18n/locales/sk.json
+++ b/client/src/i18n/locales/sk.json
@@ -159,6 +159,8 @@
"notGitInstall": "Táto inštalácia neobsahuje informácie o commite.",
"checkFailed": "Nepodarilo sa skontrolovať aktualizácie.",
"contactsGithub": "Kontroly sa vykonávajú manuálne a pripájajú sa ku GitHubu.",
+ "autoUpdateCheck": "Automatická kontrola aktualizácií",
+ "autoUpdateCheckHelp": "Raz denne skontroluje na GitHube novú verziu a zobrazí pripomienku. Predvolene vypnuté.",
"openReleases": "Otvoriť vydania na GitHube",
"restartAfterUpdate": "Reštartujte FreeLLMAPI po dokončení zostavovania."
},
@@ -849,5 +851,14 @@
"manualHint": "Základná URL a kľúč na zadanie do vlastných nastavení nástroja.",
"endpoint": "Endpoint",
"documentation": "Dokumentácia"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.json
index c2e1fe3d..14ca4781 100644
--- a/client/src/i18n/locales/sr.json
+++ b/client/src/i18n/locales/sr.json
@@ -159,6 +159,8 @@
"notGitInstall": "Ова инсталација не садржи информације о комиту.",
"checkFailed": "Провера ажурирања није успела.",
"contactsGithub": "Провере се покрећу ручно и повезују се са GitHub-ом.",
+ "autoUpdateCheck": "Аутоматска провера ажурирања",
+ "autoUpdateCheckHelp": "Једном дневно проверава GitHub за ново издање и приказује подсетник. Подразумевано искључено.",
"openReleases": "Отвори GitHub издања",
"restartAfterUpdate": "Поново покрените FreeLLMAPI након завршетка израде."
},
@@ -849,5 +851,14 @@
"manualHint": "Основни URL и кључ за унос у сопствена подешавања алата.",
"endpoint": "Крајња тачка",
"documentation": "Документација"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json
index 53f80c7e..dc34fdc0 100644
--- a/client/src/i18n/locales/sv.json
+++ b/client/src/i18n/locales/sv.json
@@ -159,6 +159,8 @@
"notGitInstall": "Den här installationen innehåller ingen commit-information.",
"checkFailed": "Det gick inte att söka efter uppdateringar.",
"contactsGithub": "Kontroller görs manuellt och kontaktar GitHub.",
+ "autoUpdateCheck": "Automatisk uppdateringskontroll",
+ "autoUpdateCheckHelp": "Kontrollerar GitHub en gång om dagen efter en ny version och visar en påminnelse. Av som standard.",
"openReleases": "Öppna GitHub Releases",
"restartAfterUpdate": "Starta om FreeLLMAPI när bygget är klart."
},
@@ -849,5 +851,14 @@
"manualHint": "Bas-URL och nyckel att ange i verktygets egna inställningar.",
"endpoint": "Slutpunkt",
"documentation": "Dokumentation"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.json
index 3c6fcd89..c75ec2af 100644
--- a/client/src/i18n/locales/sw.json
+++ b/client/src/i18n/locales/sw.json
@@ -159,6 +159,8 @@
"notGitInstall": "Usakinishaji huu hauna taarifa za commit.",
"checkFailed": "Imeshindikana kuangalia masasisho.",
"contactsGithub": "Ukaguzi hufanywa mwenyewe na huwasiliana na GitHub.",
+ "autoUpdateCheck": "Ukaguzi wa masasisho otomatiki",
+ "autoUpdateCheckHelp": "Hukagua GitHub mara moja kwa siku kwa toleo jipya na kuonyesha ukumbusho. Imezimwa kwa chaguo-msingi.",
"openReleases": "Fungua Matoleo ya GitHub",
"restartAfterUpdate": "Anzisha upya FreeLLMAPI baada ya ujenzi kukamilika."
},
@@ -849,5 +851,14 @@
"manualHint": "URL msingi na ufunguo wa kuweka katika mipangilio ya zana yenyewe.",
"endpoint": "Kituo cha mwisho",
"documentation": "Nyaraka"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.json
index 75582509..a9b2ccf8 100644
--- a/client/src/i18n/locales/ta.json
+++ b/client/src/i18n/locales/ta.json
@@ -159,6 +159,8 @@
"notGitInstall": "இந்த நிறுவலில் commit தகவல் இல்லை.",
"checkFailed": "புதுப்பிப்புகளைச் சரிபார்க்க முடியவில்லை.",
"contactsGithub": "சரிபார்ப்புகள் கைமுறையாகச் செய்யப்படுகின்றன மற்றும் GitHub-ஐத் தொடர்புகொள்கின்றன.",
+ "autoUpdateCheck": "தானியங்கு புதுப்பிப்புச் சரிபார்ப்பு",
+ "autoUpdateCheckHelp": "நாளொன்றுக்கு ஒருமுறை புதிய வெளியீட்டிற்காக GitHub-ஐச் சரிபார்த்து நினைவூட்டலைக் காட்டும். இயல்பாக அணைக்கப்பட்டுள்ளது.",
"openReleases": "GitHub வெளியீடுகளைத் திற",
"restartAfterUpdate": "உருவாக்கம் முடிந்ததும் FreeLLMAPI-ஐ மறுதொடக்கம் செய்யவும்."
},
@@ -849,5 +851,14 @@
"manualHint": "கருவியின் சொந்த அமைப்புகளில் உள்ளிட வேண்டிய அடிப்படை URL மற்றும் விசை.",
"endpoint": "எண்ட்பாயிண்ட்",
"documentation": "ஆவணங்கள்"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.json
index 008e3ccd..dddbbf3b 100644
--- a/client/src/i18n/locales/te.json
+++ b/client/src/i18n/locales/te.json
@@ -159,6 +159,8 @@
"notGitInstall": "ఈ ఇన్‌స్టాలేషన్‌లో commit సమాచారం లేదు.",
"checkFailed": "నవీకరణల కోసం తనిఖీ చేయడం సాధ్యం కాలేదు.",
"contactsGithub": "తనిఖీలు మాన్యువల్‌గా జరుగుతాయి మరియు GitHubను సంప్రదిస్తాయి.",
+ "autoUpdateCheck": "స్వయంచాలక నవీకరణ తనిఖీ",
+ "autoUpdateCheckHelp": "రోజుకు ఒకసారి కొత్త విడుదల కోసం GitHubను తనిఖీ చేసి రిమైండర్‌ను చూపుతుంది. అప్రమేయంగా ఆఫ్‌లో ఉంటుంది.",
"openReleases": "GitHub విడుదలలను తెరవండి",
"restartAfterUpdate": "బిల్డ్ పూర్తయిన తర్వాత FreeLLMAPIని పునఃప్రారంభించండి."
},
@@ -849,5 +851,14 @@
"manualHint": "సాధనం సొంత సెట్టింగ్‌లలో నమోదు చేయడానికి బేస్ URL మరియు కీ.",
"endpoint": "ఎండ్‌పాయింట్",
"documentation": "డాక్యుమెంటేషన్"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.json
index f5b5c320..036d925c 100644
--- a/client/src/i18n/locales/th.json
+++ b/client/src/i18n/locales/th.json
@@ -159,6 +159,8 @@
"notGitInstall": "การติดตั้งนี้ไม่มีข้อมูล commit",
"checkFailed": "ไม่สามารถตรวจสอบการอัปเดตได้",
"contactsGithub": "การตรวจสอบเป็นแบบดำเนินการเองและมีการติดต่อ GitHub",
+ "autoUpdateCheck": "ตรวจสอบการอัปเดตอัตโนมัติ",
+ "autoUpdateCheckHelp": "ตรวจสอบ GitHub วันละครั้งว่ามีเวอร์ชันใหม่หรือไม่ และแสดงการแจ้งเตือน ปิดไว้ตามค่าเริ่มต้น",
"openReleases": "เปิด GitHub Releases",
"restartAfterUpdate": "รีสตาร์ต FreeLLMAPI หลังจากบิลด์เสร็จสิ้น"
},
@@ -849,5 +851,14 @@
"manualHint": "Base URL และคีย์สำหรับกรอกในการตั้งค่าของเครื่องมือเอง",
"endpoint": "เอนด์พอยต์",
"documentation": "เอกสารประกอบ"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.json
index 6b748464..8b5833b1 100644
--- a/client/src/i18n/locales/tl.json
+++ b/client/src/i18n/locales/tl.json
@@ -159,6 +159,8 @@
"notGitInstall": "Walang impormasyon ng commit ang installation na ito.",
"checkFailed": "Hindi masuri kung may mga update.",
"contactsGithub": "Manu-mano ang mga pagsusuri at kumokonekta ang mga ito sa GitHub.",
+ "autoUpdateCheck": "Awtomatikong pagsusuri ng update",
+ "autoUpdateCheckHelp": "Sinusuri ang GitHub minsan sa isang araw para sa bagong release at nagpapakita ng paalala. Naka-off bilang default.",
"openReleases": "Buksan ang GitHub Releases",
"restartAfterUpdate": "I-restart ang FreeLLMAPI kapag natapos ang build."
},
@@ -849,5 +851,14 @@
"manualHint": "Base URL at key na ilalagay sa sariling settings ng tool.",
"endpoint": "Endpoint",
"documentation": "Dokumentasyon"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.json
index b21d986e..b85da261 100644
--- a/client/src/i18n/locales/tr.json
+++ b/client/src/i18n/locales/tr.json
@@ -159,6 +159,8 @@
"notGitInstall": "Bu kurulum commit bilgisi içermiyor.",
"checkFailed": "Güncellemeler denetlenemedi.",
"contactsGithub": "Denetimler elle yapılır ve GitHub ile iletişim kurar.",
+ "autoUpdateCheck": "Otomatik güncelleme denetimi",
+ "autoUpdateCheckHelp": "Yeni bir sürüm için günde bir kez GitHub'ı denetler ve bir hatırlatma gösterir. Varsayılan olarak kapalıdır.",
"openReleases": "GitHub Sürümlerini Aç",
"restartAfterUpdate": "Derleme tamamlandıktan sonra FreeLLMAPI'yi yeniden başlatın."
},
@@ -849,5 +851,14 @@
"manualHint": "Aracın kendi ayarlarına girilecek temel URL ve anahtar.",
"endpoint": "Uç nokta",
"documentation": "Dokümantasyon"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.json
index e9d3e00b..d449fdc3 100644
--- a/client/src/i18n/locales/uk.json
+++ b/client/src/i18n/locales/uk.json
@@ -159,6 +159,8 @@
"notGitInstall": "Ця інсталяція не містить інформації про commit.",
"checkFailed": "Не вдалося перевірити наявність оновлень.",
"contactsGithub": "Перевірки запускаються вручну та звертаються до GitHub.",
+ "autoUpdateCheck": "Автоматична перевірка оновлень",
+ "autoUpdateCheckHelp": "Раз на день перевіряє GitHub на новий випуск і показує нагадування. Типово вимкнено.",
"openReleases": "Відкрити релізи GitHub",
"restartAfterUpdate": "Перезапустіть FreeLLMAPI після завершення збірки."
},
@@ -849,5 +851,14 @@
"manualHint": "Базовий URL і ключ для введення в налаштуваннях самого інструмента.",
"endpoint": "Кінцева точка",
"documentation": "Документація"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.json
index cb55cfa4..a72b46c0 100644
--- a/client/src/i18n/locales/ur.json
+++ b/client/src/i18n/locales/ur.json
@@ -159,6 +159,8 @@
"notGitInstall": "اس انسٹالیشن میں commit کی معلومات شامل نہیں ہیں۔",
"checkFailed": "اپ ڈیٹس کی جانچ نہیں ہو سکی۔",
"contactsGithub": "جانچ دستی طور پر کی جاتی ہے اور GitHub سے رابطہ کرتی ہے۔",
+ "autoUpdateCheck": "خودکار اپ ڈیٹ جانچ",
+ "autoUpdateCheckHelp": "دن میں ایک بار نئی ریلیز کے لیے GitHub کی جانچ کرتا ہے اور یاد دہانی دکھاتا ہے۔ بطور ڈیفالٹ بند ہے۔",
"openReleases": "GitHub ریلیزز کھولیں",
"restartAfterUpdate": "بلڈ مکمل ہونے کے بعد FreeLLMAPI کو دوبارہ شروع کریں۔"
},
@@ -849,5 +851,14 @@
"manualHint": "ٹول کی اپنی سیٹنگز میں درج کرنے کے لیے بیس URL اور کلید۔",
"endpoint": "اینڈ پوائنٹ",
"documentation": "دستاویزات"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.json
index 766ccfcf..8b230e04 100644
--- a/client/src/i18n/locales/uz.json
+++ b/client/src/i18n/locales/uz.json
@@ -159,6 +159,8 @@
"notGitInstall": "Bu o'rnatishda commit ma'lumoti mavjud emas.",
"checkFailed": "Yangilanishlarni tekshirib bo'lmadi.",
"contactsGithub": "Tekshiruvlar qo'lda bajariladi va GitHub bilan bog'lanadi.",
+ "autoUpdateCheck": "Avtomatik yangilanish tekshiruvi",
+ "autoUpdateCheckHelp": "Kuniga bir marta yangi nashr uchun GitHub'ni tekshiradi va eslatma ko'rsatadi. Sukut bo'yicha o'chirilgan.",
"openReleases": "GitHub relizlarini ochish",
"restartAfterUpdate": "Build tugagach, FreeLLMAPI'ni qayta ishga tushiring."
},
@@ -849,5 +851,14 @@
"manualHint": "Vositaning o'z sozlamalariga kiritish uchun asosiy URL va kalit.",
"endpoint": "So'nggi nuqta",
"documentation": "Hujjatlar"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.json
index ef18b066..8d0c7926 100644
--- a/client/src/i18n/locales/vi.json
+++ b/client/src/i18n/locales/vi.json
@@ -159,6 +159,8 @@
"notGitInstall": "Bản cài đặt này không có thông tin commit.",
"checkFailed": "Không thể kiểm tra bản cập nhật.",
"contactsGithub": "Việc kiểm tra được thực hiện thủ công và có kết nối với GitHub.",
+ "autoUpdateCheck": "Tự động kiểm tra cập nhật",
+ "autoUpdateCheckHelp": "Kiểm tra GitHub mỗi ngày một lần để tìm bản phát hành mới và hiển thị lời nhắc. Mặc định tắt.",
"openReleases": "Mở GitHub Releases",
"restartAfterUpdate": "Khởi động lại FreeLLMAPI sau khi hoàn tất bản dựng."
},
@@ -849,5 +851,14 @@
"manualHint": "URL cơ sở và khóa để nhập vào cài đặt của chính công cụ.",
"endpoint": "Điểm cuối",
"documentation": "Tài liệu"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.json
index ab556cf6..66611cc0 100644
--- a/client/src/i18n/locales/yo.json
+++ b/client/src/i18n/locales/yo.json
@@ -159,6 +159,8 @@
"notGitInstall": "Fífìmọ́lẹ̀ yìí kò ní àlàyé commit.",
"checkFailed": "A kò lè ṣàyẹ̀wò àwọn ìmúdójúìwọ̀n.",
"contactsGithub": "Ọwọ́ ni a fi ń ṣe àwọn àyẹ̀wò, wọ́n sì ń kan sí GitHub.",
+ "autoUpdateCheck": "Àyẹ̀wò ìmúdójúìwọ̀n aládàáṣe",
+ "autoUpdateCheckHelp": "Ó ń ṣàyẹ̀wò GitHub lẹ́ẹ̀kan lóòjọ́ fún ìtújáde tuntun, ó sì ń fi ìránnilétí hàn. Ó pa ní àtìbẹ̀rẹ̀.",
"openReleases": "Ṣí àwọn ìtújáde GitHub",
"restartAfterUpdate": "Tun FreeLLMAPI bẹ̀rẹ̀ lẹ́yìn tí ìkọ́lé bá parí."
},
@@ -849,5 +851,14 @@
"manualHint": "URL ìpìlẹ̀ àti kọ́kọ́rọ́ láti tẹ̀ sínú ètò irinṣẹ́ náà.",
"endpoint": "Ebute",
"documentation": "Iwe akọsilẹ"
+ },
+ "update": {
+ "available": "New version available",
+ "whatsNew": "What's new in v{version}",
+ "publishedOn": "Published {date}",
+ "noNotes": "No release notes were published for this version.",
+ "openRelease": "Open release page",
+ "dismissVersion": "Dismiss this version",
+ "dismiss": "Dismiss"
}
}
diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.json
index 7196c8b2..9aa128e2 100644
--- a/client/src/i18n/locales/zh-CN.json
+++ b/client/src/i18n/locales/zh-CN.json
@@ -159,6 +159,8 @@
"notGitInstall": "此安装不包含 commit 信息。",
"checkFailed": "无法检查更新。",
"contactsGithub": "检查需手动执行,并会连接 GitHub。",
+ "autoUpdateCheck": "自动检查更新",
+ "autoUpdateCheckHelp": "每天检查一次 GitHub 上是否有新版本,并显示提醒。默认关闭。",
"openReleases": "打开 GitHub Releases",
"restartAfterUpdate": "构建完成后重启 FreeLLMAPI。"
},
@@ -849,5 +851,14 @@
"manualHint": "在该工具的设置中输入基础 URL 和密钥。",
"endpoint": "端点",
"documentation": "文档"
+ },
+ "update": {
+ "available": "发现新版本",
+ "whatsNew": "v{version} 更新内容",
+ "publishedOn": "发布于 {date}",
+ "noNotes": "此版本未发布更新说明。",
+ "openRelease": "打开发布页",
+ "dismissVersion": "忽略此版本",
+ "dismiss": "忽略"
}
}
diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.json
index 14766a1d..de799be8 100644
--- a/client/src/i18n/locales/zh-TW.json
+++ b/client/src/i18n/locales/zh-TW.json
@@ -159,6 +159,8 @@
"notGitInstall": "此安裝不包含 commit 資訊。",
"checkFailed": "無法檢查更新。",
"contactsGithub": "檢查需手動執行,並會連線至 GitHub。",
+ "autoUpdateCheck": "自動檢查更新",
+ "autoUpdateCheckHelp": "每天檢查一次 GitHub 上是否有新版本,並顯示提醒。預設關閉。",
"openReleases": "開啟 GitHub Releases",
"restartAfterUpdate": "建置完成後重新啟動 FreeLLMAPI。"
},
@@ -849,5 +851,14 @@
"manualHint": "在該工具的設定中輸入基礎 URL 和金鑰。",
"endpoint": "端點",
"documentation": "文件"
+ },
+ "update": {
+ "available": "发现新版本",
+ "whatsNew": "v{version} 更新内容",
+ "publishedOn": "发布于 {date}",
+ "noNotes": "此版本未发布更新说明。",
+ "openRelease": "打开发布页",
+ "dismissVersion": "忽略此版本",
+ "dismiss": "忽略"
}
}
diff --git a/server/src/__tests__/routes/update-release.test.ts b/server/src/__tests__/routes/update-release.test.ts
new file mode 100644
index 00000000..35e4ba26
--- /dev/null
+++ b/server/src/__tests__/routes/update-release.test.ts
@@ -0,0 +1,230 @@
+import { describe, it, expect, vi, beforeAll, afterEach } from 'vitest';
+import express from 'express';
+import type { Express } from 'express';
+import http from 'node:http';
+import { createApp } from '../../app.js';
+import { initDb, getSetting, setSetting } from '../../db/index.js';
+import { createUpdateRouter, UPDATE_CHECK_SETTING } from '../../routes/update.js';
+import { mintDashboardToken } from '../helpers/auth.js';
+
+const NOW = Date.parse('2026-08-09T14:00:00.000Z');
+const RELEASE_URL = 'https://api.github.com/repos/tashfeenahmed/freellmapi/releases/latest';
+const RELEASES_PAGE = 'https://github.com/tashfeenahmed/freellmapi/releases';
+
+function httpGet(app: Express, path: string): Promise<{ status: number; body: any }> {
+ return new Promise((resolve, reject) => {
+ const server = app.listen(0, () => {
+ const address = server.address();
+ if (!address || typeof address === 'string') return reject(new Error('No test server address'));
+ const req = http.request(
+ { hostname: '127.0.0.1', port: address.port, path, method: 'GET' },
+ (res) => {
+ let data = '';
+ res.on('data', chunk => { data += chunk; });
+ res.on('end', () => {
+ server.close();
+ resolve({ status: res.statusCode!, body: JSON.parse(data) });
+ });
+ },
+ );
+ req.on('error', (error) => { server.close(); reject(error); });
+ req.end();
+ });
+ });
+}
+
+function response(body: unknown, status = 200): Response {
+ return new Response(JSON.stringify(body), {
+ status,
+ headers: { 'Content-Type': 'application/json' },
+ });
+}
+
+function releaseBody(overrides: Record<string, unknown> = {}) {
+ return {
+ tag_name: 'v0.7.0',
+ name: 'FreeLLMAPI v0.7.0',
+ body: '## What changed\n- Routing fixes',
+ html_url: `${RELEASES_PAGE}/tag/v0.7.0`,
+ published_at: '2026-08-08T09:30:00Z',
+ ...overrides,
+ };
+}
+
+function createTestApp(overrides: Parameters<typeof createUpdateRouter>[0] = {}) {
+ const app = express();
+ const fetchMock = overrides.fetch ?? vi.fn(async () => response(releaseBody()));
+ const logger = overrides.logger ?? { error: vi.fn() };
+ app.use('/api/update', createUpdateRouter({
+ env: {},
+ cwd: '/worktree/server',
+ now: () => NOW,
+ version: () => '0.6.9',
+ ...overrides,
+ fetch: fetchMock,
+ logger,
+ }));
+ return { app, fetchMock, logger };
+}
+
+// The automatic reminder is the one place the dashboard would contact GitHub
+// without being asked, so both halves of that are pinned here: the request is
+// made by the server (the CSP blocks the browser from making it), and it is
+// only made once an operator has opted in.
+describe('GET /api/update/release', () => {
+ beforeAll(() => {
+ process.env.ENCRYPTION_KEY = '0'.repeat(64);
+ initDb(':memory:');
+ });
+
+ it('is off until an operator opts in, and makes no outbound request', async () => {
+ // No autoCheckEnabled override: this is the real settings-table default.
+ expect(getSetting(UPDATE_CHECK_SETTING)).toBeUndefined();
+ const fetchMock = vi.fn();
+ const { app, logger } = createTestApp({ fetch: fetchMock });
+
+ const result = await httpGet(app, '/api/update/release');
+
+ expect(result.status).toBe(200);
+ expect(result.body).toEqual({ disabled: true });
+ expect(fetchMock).not.toHaveBeenCalled();
+ expect(logger.error).not.toHaveBeenCalled();
+ });
+
+ it('returns the mapped latest release once enabled', async () => {
+ const fetchMock = vi.fn(async () => response(releaseBody()));
+ const { app } = createTestApp({ fetch: fetchMock, autoCheckEnabled: () => true });
+
+ const result = await httpGet(app, '/api/update/release');
+
+ expect(result.status).toBe(200);
+ expect(result.body).toEqual({
+ tagName: 'v0.7.0',
+ body: '## What changed\n- Routing fixes',
+ htmlUrl: `${RELEASES_PAGE}/tag/v0.7.0`,
+ publishedAt: '2026-08-08T09:30:00Z',
+ });
+ expect(fetchMock).toHaveBeenCalledWith(RELEASE_URL, expect.objectContaining({
+ headers: expect.objectContaining({ Accept: 'application/vnd.github+json' }),
+ }));
+ });
+
+ it('serves a second dashboard load from cache instead of calling GitHub again', async () => {
+ const fetchMock = vi.fn(async () => response(releaseBody()));
+ const { app } = createTestApp({ fetch: fetchMock, autoCheckEnabled: () => true });
+
+ const first = await httpGet(app, '/api/update/release');
+ const second = await httpGet(app, '/api/update/release');
+
+ expect(second.body).toEqual(first.body);
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ });
+
+ it('re-checks once the six-hour cache has expired', async () => {
+ const fetchMock = vi.fn(async () => response(releaseBody()));
+ let clock = NOW;
+ const { app } = createTestApp({
+ fetch: fetchMock,
+ autoCheckEnabled: () => true,
+ now: () => clock,
+ });
+
+ await httpGet(app, '/api/update/release');
+ clock += 6 * 60 * 60 * 1000 - 1;
+ await httpGet(app, '/api/update/release');
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+
+ clock += 2;
+ await httpGet(app, '/api/update/release');
+ expect(fetchMock).toHaveBeenCalledTimes(2);
+ });
+
+ it('refuses a release link that does not point back at this repository', async () => {
+ const fetchMock = vi.fn(async () => response(releaseBody({
+ html_url: 'https://example.invalid/releases/tag/v0.7.0',
+ published_at: 'not a date',
+ })));
+ const { app } = createTestApp({ fetch: fetchMock, autoCheckEnabled: () => true });
+
+ const result = await httpGet(app, '/api/update/release');
+
+ expect(result.body.htmlUrl).toBe(RELEASES_PAGE);
+ expect(result.body.publishedAt).toBeNull();
+ });
+
+ it('stays disabled when the deployment kill switch is set, opt-in or not', async () => {
+ const fetchMock = vi.fn();
+ const { app } = createTestApp({
+ env: { FREELLMAPI_UPDATE_CHECK: 'off' },
+ fetch: fetchMock,
+ autoCheckEnabled: () => true,
+ });
+
+ const result = await httpGet(app, '/api/update/release');
+
+ expect(result.body).toEqual({ disabled: true });
+ expect(fetchMock).not.toHaveBeenCalled();
+ });
+
+ it('reports an upstream failure rather than an empty release', async () => {
+ const fetchMock = vi.fn(async () => response({ message: 'Not Found' }, 404));
+ const { app } = createTestApp({ fetch: fetchMock, autoCheckEnabled: () => true });
+
+ const result = await httpGet(app, '/api/update/release');
+
+ expect(result.status).toBe(502);
+ expect(result.body.error.type).toBe('upstream_error');
+ });
+});
+
+// The flag the endpoint above reads, as the dashboard sets it.
+describe('/api/settings/update-check', () => {
+ let app: Express;
+ let token: string;
+
+ beforeAll(() => {
+ process.env.ENCRYPTION_KEY = '0'.repeat(64);
+ initDb(':memory:');
+ app = createApp();
+ token = mintDashboardToken();
+ });
+
+ afterEach(() => {
+ setSetting(UPDATE_CHECK_SETTING, '0');
+ });
+
+ async function request(method: string, body?: unknown) {
+ const server = app.listen(0);
+ const address = server.address() as { port: number };
+ const res = await fetch(`http://127.0.0.1:${address.port}/api/settings/update-check`, {
+ method,
+ headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
+ body: body === undefined ? undefined : JSON.stringify(body),
+ });
+ const json = await res.json().catch(() => null) as any;
+ server.close();
+ return { status: res.status, body: json };
+ }
+
+ it('reports the check as off before anything is configured', async () => {
+ const result = await request('GET');
+ expect(result.status).toBe(200);
+ expect(result.body).toEqual({ enabled: false });
+ });
+
+ it('stores the opt-in and reads it back', async () => {
+ const put = await request('PUT', { enabled: true });
+ expect(put.status).toBe(200);
+ expect(put.body).toEqual({ enabled: true });
+ expect(getSetting(UPDATE_CHECK_SETTING)).toBe('1');
+
+ const get = await request('GET');
+ expect(get.body).toEqual({ enabled: true });
+ });
+
+ it('rejects a body that is not a boolean flag', async () => {
+ const result = await request('PUT', { enabled: 'yes' });
+ expect(result.status).toBe(400);
+ expect(getSetting(UPDATE_CHECK_SETTING)).not.toBe('1');
+ });
+});
diff --git a/server/src/routes/settings.ts b/server/src/routes/settings.ts
index 4a766fb4..f756fb23 100644
--- a/server/src/routes/settings.ts
+++ b/server/src/routes/settings.ts
@@ -7,6 +7,7 @@ import { isUnifyEnabled, setUnifyEnabled, getUnifyOverrides, setUnifyOverrides,
import { getClaudeModelMap, setClaudeModelMap } from '../services/anthropic-map.js';
import { getGeminiModelMap, setGeminiModelMap } from '../services/gemini-map.js';
import { getOllamaEmulationMode } from './ollama.js';
+import { UPDATE_CHECK_SETTING, isAutoUpdateCheckEnabled } from './update.js';
import { listUrlTokens, mintUrlToken, revokeUrlToken } from '../services/url-tokens.js';
import {
getRequestMaxTokensBudget,
@@ -38,6 +39,31 @@ settingsRouter.get('/version', (_req: Request, res: Response) => {
res.json({ version: getAppVersion() });
});
+// Opt-in for the dashboard's automatic release reminder (#782). Off unless the
+// operator turns it on: a self-hosted install must not contact GitHub on page
+// load on behalf of someone who never asked it to. The manual checker in
+// Settings is a separate surface and is unaffected by this flag.
+const updateCheckSchema = z.object({ enabled: z.boolean() }).strict();
+
+settingsRouter.get('/update-check', (_req: Request, res: Response) => {
+ res.json({ enabled: isAutoUpdateCheckEnabled() });
+});
+
+settingsRouter.put('/update-check', (req: Request, res: Response) => {
+ const parsed = updateCheckSchema.safeParse(req.body);
+ if (!parsed.success) {
+ res.status(400).json({
+ error: {
+ message: `Invalid update check setting: ${parsed.error.errors.map(error => error.message).join(', ')}`,
+ type: 'invalid_request_error',
+ },
+ });
+ return;
+ }
+ setSetting(UPDATE_CHECK_SETTING, parsed.data.enabled ? '1' : '0');
+ res.json({ enabled: isAutoUpdateCheckEnabled() });
+});
+
settingsRouter.get('/compression', (_req: Request, res: Response) => {
res.json(getCompressionConfig());
});
diff --git a/server/src/routes/update.ts b/server/src/routes/update.ts
index 0cf0cf0a..a668d557 100644
--- a/server/src/routes/update.ts
+++ b/server/src/routes/update.ts
@@ -2,12 +2,23 @@ import { execFile as nodeExecFile } from 'node:child_process';
import { promisify } from 'node:util';
import { Router } from 'express';
import type { Request, Response } from 'express';
+import { getSetting } from '../db/index.js';
import { getAppVersion } from '../lib/app-version.js';
const execFileAsync = promisify(nodeExecFile);
const REPOSITORY = 'tashfeenahmed/freellmapi';
+const RELEASES_URL = `https://github.com/${REPOSITORY}/releases`;
const CACHE_TTL_MS = 5 * 60 * 1000;
+/**
+ * The automatic release check is opt-in (see UPDATE_CHECK_SETTING), and even
+ * once enabled a dashboard reload must not become an outbound request. Six
+ * hours means at most four calls a day regardless of how often the operator
+ * reloads, or how many browsers point at the same install.
+ */
+const RELEASE_CACHE_TTL_MS = 6 * 60 * 60 * 1000;
+const MAX_RELEASE_BODY_LENGTH = 20_000;
+const MAX_TAG_LENGTH = 64;
// Failures are cached too, briefly. Without this a box that cannot reach GitHub
// re-dials the API and then the Atom feed on every single click.
const FAILURE_TTL_MS = 45 * 1000;
@@ -54,6 +65,31 @@ interface CachedResult {
cachedAt: number;
}
+/**
+ * Settings-table key for the dashboard's automatic release check (#782).
+ * Absent or anything other than '1' means off, so an install that has never
+ * been told otherwise never phones GitHub on its own. The manual checker above
+ * is a separate surface and stays available regardless.
+ */
+export const UPDATE_CHECK_SETTING = 'update_check_enabled';
+
+export function isAutoUpdateCheckEnabled(): boolean {
+ return getSetting(UPDATE_CHECK_SETTING) === '1';
+}
+
+/** The GitHub latest release, reduced to what the dashboard reminder renders. */
+interface LatestRelease {
+ tagName: string;
+ body: string | null;
+ htmlUrl: string;
+ publishedAt: string | null;
+}
+
+interface CachedRelease {
+ result: LatestRelease;
+ cachedAt: number;
+}
+
type ExecFile = (
file: string,
args: string[],
@@ -68,6 +104,8 @@ export interface UpdateRouterOptions {
now?: () => number;
logger?: Pick<Console, 'error'>;
version?: () => string | null;
+ /** Reads the opt-in flag; injectable so the endpoint is testable without a DB. */
+ autoCheckEnabled?: () => boolean;
}
function isRecord(value: unknown): value is Record<string, unknown> {
@@ -301,6 +339,7 @@ export function createUpdateRouter(options: UpdateRouterOptions = {}): Router {
const now = options.now ?? Date.now;
const logger = options.logger ?? console;
const appVersion = options.version ?? getAppVersion;
+ const autoCheckEnabled = options.autoCheckEnabled ?? isAutoUpdateCheckEnabled;
const updateCheckDisabled = env.FREELLMAPI_UPDATE_CHECK?.trim().toLowerCase() === 'off';
const githubToken = env.FREELLMAPI_UPDATE_GITHUB_TOKEN?.trim();
@@ -308,6 +347,18 @@ export function createUpdateRouter(options: UpdateRouterOptions = {}): Router {
let cache: CachedResult | null = null;
let failedAt: number | null = null;
let inFlight: Promise<CheckResult> | null = null;
+ let releaseCache: CachedRelease | null = null;
+ let releaseFailedAt: number | null = null;
+ let releaseInFlight: Promise<LatestRelease> | null = null;
+
+ function githubHeaders(accept: string): Record<string, string> {
+ return {
+ Accept: accept,
+ 'User-Agent': 'freellmapi-update-checker',
+ 'X-GitHub-Api-Version': '2022-11-28',
+ ...(githubToken ? { Authorization: `Bearer ${githubToken}` } : {}),
+ };
+ }
// Lazily resolved, and asynchronously: `git rev-parse` used to run through
// execFileSync inside the request handler, which blocked the event loop for
@@ -353,12 +404,7 @@ export function createUpdateRouter(options: UpdateRouterOptions = {}): Router {
};
const url = `https://api.github.com/repos/${REPOSITORY}/compare/${currentIdentity.sha}...main`;
const response = await fetchImpl(url, {
- headers: {
- Accept: 'application/vnd.github+json',
- 'User-Agent': 'freellmapi-update-checker',
- 'X-GitHub-Api-Version': '2022-11-28',
- ...(githubToken ? { Authorization: `Bearer ${githubToken}` } : {}),
- },
+ headers: githubHeaders('application/vnd.github+json'),
signal: AbortSignal.timeout(10_000),
});
@@ -427,6 +473,90 @@ export function createUpdateRouter(options: UpdateRouterOptions = {}): Router {
return request;
}
+ async function performReleaseCheck(): Promise<LatestRelease> {
+ const response = await fetchImpl(`https://api.github.com/repos/${REPOSITORY}/releases/latest`, {
+ headers: githubHeaders('application/vnd.github+json'),
+ signal: AbortSignal.timeout(10_000),
+ });
+ if (!response.ok) {
+ throw new Error(`GitHub latest-release request returned HTTP ${response.status}`);
+ }
+
+ const body: unknown = await response.json();
+ if (!isRecord(body)) throw new Error('GitHub latest-release response is not an object');
+ if (typeof body.tag_name !== 'string' || body.tag_name.trim().length === 0) {
+ throw new Error('GitHub latest-release response has no tag');
+ }
+
+ // The release notes are rendered as Markdown in the dashboard, so the body
+ // is capped rather than trusted at whatever length GitHub returns, and the
+ // link is only honoured when it points back at this repository.
+ const htmlUrl = typeof body.html_url === 'string' && body.html_url.startsWith(`${RELEASES_URL}/`)
+ ? body.html_url
+ : RELEASES_URL;
+
+ return {
+ tagName: body.tag_name.trim().slice(0, MAX_TAG_LENGTH),
+ body: typeof body.body === 'string' ? body.body.slice(0, MAX_RELEASE_BODY_LENGTH) : null,
+ htmlUrl,
+ publishedAt: validDate(body.published_at) ? body.published_at : null,
+ };
+ }
+
+ function latestRelease(): Promise<LatestRelease> {
+ const currentTime = now();
+ if (releaseCache && currentTime - releaseCache.cachedAt < RELEASE_CACHE_TTL_MS) {
+ return Promise.resolve(releaseCache.result);
+ }
+ if (releaseFailedAt !== null && currentTime - releaseFailedAt < FAILURE_TTL_MS) {
+ return Promise.reject(new Error('GitHub release check failed recently'));
+ }
+ if (releaseInFlight) return releaseInFlight;
+
+ const request = performReleaseCheck()
+ .then((result) => {
+ releaseCache = { result, cachedAt: now() };
+ releaseFailedAt = null;
+ return result;
+ })
+ .catch((error: unknown) => {
+ releaseFailedAt = now();
+ logger.error('[update] GitHub latest-release check failed', error);
+ throw error;
+ })
+ .finally(() => {
+ if (releaseInFlight === request) releaseInFlight = null;
+ });
+ releaseInFlight = request;
+ return request;
+ }
+
+ /**
+ * The latest published release, for the dashboard's automatic reminder (#782).
+ *
+ * The browser cannot ask GitHub itself — the CSP this server sends is
+ * `connect-src 'self'`, so a direct fetch to api.github.com is blocked on
+ * every web install. Routing it through here also means the opt-in is
+ * enforced where it cannot be bypassed: when the check is off nothing leaves
+ * the box, not even a request that is thrown away afterwards.
+ */
+ router.get('/release', async (_req: Request, res: Response) => {
+ if (updateCheckDisabled || !autoCheckEnabled()) {
+ return res.json({ disabled: true });
+ }
+
+ try {
+ return res.json(await latestRelease());
+ } catch {
+ return res.status(502).json({
+ error: {
+ message: 'Unable to check for the latest release',
+ type: 'upstream_error',
+ },
+ });
+ }
+ });
+
router.get('/check', async (_req: Request, res: Response) => {
if (updateCheckDisabled) {
return res.json({