LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
fix: unblock 0.4.0 build + extract hardcoded i18n strings
nash_su32e4360935d6
diff --git a/src/components/settings/sections/llm-provider-section.tsx b/src/components/settings/sections/llm-provider-section.tsxindex 76bd7255..c89a6d42 100644--- a/src/components/settings/sections/llm-provider-section.tsx+++ b/src/components/settings/sections/llm-provider-section.tsx@@ -335,8 +335,13 @@ function EndpointField({ value, mode, placeholder, onChange }: EndpointFieldProp<div className="min-w-0 flex-1 space-y-0.5">{preview.changed && (<div>- 将使用 <code className="break-all rounded bg-background/60 px-1 py-0.5 font-mono">{preview.normalized || "(empty)"}</code>- <span className="ml-1 text-muted-foreground">(离开输入框时自动套用)</span>+ {t("settings.sections.llm.endpointPreviewWillUse")}{" "}+ <code className="break-all rounded bg-background/60 px-1 py-0.5 font-mono">+ {preview.normalized || "(empty)"}+ </code>+ <span className="ml-1 text-muted-foreground">+ {t("settings.sections.llm.endpointPreviewAutoApply")}+ </span></div>)}{preview.warning && <div>{preview.warning}</div>}diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex 75c869dc..4e5b8ca4 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -120,7 +120,9 @@"apiKeyPlaceholder": "Enter your API key","savedBadge": "saved","configuredBadge": "configured",- "activeBadge": "● active"+ "activeBadge": "● active",+ "endpointPreviewWillUse": "Will resolve to",+ "endpointPreviewAutoApply": "(applied automatically when you leave the input)"},"embedding": {"title": "Vector Embeddings",diff --git a/src/i18n/zh.json b/src/i18n/zh.jsonindex b24a5ab7..28815f10 100644--- a/src/i18n/zh.json+++ b/src/i18n/zh.json@@ -120,7 +120,9 @@"apiKeyPlaceholder": "请输入 API Key","savedBadge": "已保存","configuredBadge": "已配置",- "activeBadge": "● 活跃"+ "activeBadge": "● 活跃",+ "endpointPreviewWillUse": "将使用",+ "endpointPreviewAutoApply": "(离开输入框时自动套用)"},"embedding": {"title": "向量嵌入",diff --git a/src/lib/search.ts b/src/lib/search.tsindex 2223c910..967e4880 100644--- a/src/lib/search.ts+++ b/src/lib/search.ts@@ -227,8 +227,6 @@ export async function searchWiki(const effectiveTokens = tokens.length > 0 ? tokens : [query.trim().toLowerCase()]const results: SearchResult[] = []- const tSearchStart = performance.now()-// Search wiki pages.//// We deliberately do NOT also search `raw/sources/` here anymore.