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
Remove unused normalizeActivePresetId dead code
thinkinbig48c2f9bdb06b
diff --git a/src/lib/llm-config-normalize.test.ts b/src/lib/llm-config-normalize.test.tsindex fc73378a..66523925 100644--- a/src/lib/llm-config-normalize.test.ts+++ b/src/lib/llm-config-normalize.test.ts@@ -1,8 +1,5 @@import { describe, it, expect } from "vitest"-import {- buildAzureOpenAiUrl,- normalizeActivePresetId,-} from "./llm-config-normalize"+import { buildAzureOpenAiUrl } from "./llm-config-normalize"describe("buildAzureOpenAiUrl", () => {it("builds deployment chat URL with api-version", () => {@@ -29,9 +26,3 @@ describe("buildAzureOpenAiUrl", () => {)})})--describe("normalizeActivePresetId", () => {- it("maps legacy azure-openai preset id to azure", () => {- expect(normalizeActivePresetId("azure-openai")).toBe("azure")- })-})diff --git a/src/lib/llm-config-normalize.ts b/src/lib/llm-config-normalize.tsindex 7fc504cb..881b0ffd 100644--- a/src/lib/llm-config-normalize.ts+++ b/src/lib/llm-config-normalize.ts@@ -70,8 +70,3 @@ export function buildAzureOpenAiUrl(const dep = encodeURIComponent(parsed.deployment)return `${parsed.resourceBase}/openai/deployments/${dep}/chat/completions?api-version=${version}`}--export function normalizeActivePresetId(id: string | null): string | null {- if (id === "azure-openai") return "azure"- return id-}