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
Rename llm-config-normalize to azure-openai
thinkinbig8255425a3621
diff --git a/src/components/settings/preset-resolver.ts b/src/components/settings/preset-resolver.tsindex e86af74c..d1dbf1f8 100644--- a/src/components/settings/preset-resolver.ts+++ b/src/components/settings/preset-resolver.ts@@ -1,6 +1,6 @@import type { LlmConfig } from "@/stores/wiki-store"import type { ProviderOverride } from "@/stores/wiki-store"-import { AZURE_OPENAI_API_VERSION } from "@/lib/llm-config-normalize"+import { AZURE_OPENAI_API_VERSION } from "@/lib/azure-openai"import type { LlmPreset } from "./llm-presets"/**diff --git a/src/components/settings/sections/llm-provider-section.tsx b/src/components/settings/sections/llm-provider-section.tsxindex edabeaa0..a5337659 100644--- a/src/components/settings/sections/llm-provider-section.tsx+++ b/src/components/settings/sections/llm-provider-section.tsx@@ -9,7 +9,7 @@ import { LLM_PRESETS, type LlmPreset } from "../llm-presets"import { ContextSizeSelector } from "../context-size-selector"import { resolveConfig } from "../preset-resolver"import { normalizeEndpoint } from "@/lib/endpoint-normalizer"-import { AZURE_OPENAI_API_VERSION } from "@/lib/llm-config-normalize"+import { AZURE_OPENAI_API_VERSION } from "@/lib/azure-openai"export function LlmProviderSection() {const { t } = useTranslation()diff --git a/src/lib/llm-config-normalize.test.ts b/src/lib/azure-openai.test.tssimilarity index 92%rename from src/lib/llm-config-normalize.test.tsrename to src/lib/azure-openai.test.tsindex 66523925..0d470ab7 100644--- a/src/lib/llm-config-normalize.test.ts+++ b/src/lib/azure-openai.test.ts@@ -1,5 +1,5 @@import { describe, it, expect } from "vitest"-import { buildAzureOpenAiUrl } from "./llm-config-normalize"+import { buildAzureOpenAiUrl } from "./azure-openai"describe("buildAzureOpenAiUrl", () => {it("builds deployment chat URL with api-version", () => {diff --git a/src/lib/llm-config-normalize.ts b/src/lib/azure-openai.tssimilarity index 100%rename from src/lib/llm-config-normalize.tsrename to src/lib/azure-openai.tsdiff --git a/src/lib/endpoint-normalizer.ts b/src/lib/endpoint-normalizer.tsindex 979c5ae7..4f6eeab4 100644--- a/src/lib/endpoint-normalizer.ts+++ b/src/lib/endpoint-normalizer.ts@@ -1,4 +1,4 @@-import { isAzureOpenAiEndpoint } from "@/lib/llm-config-normalize"+import { isAzureOpenAiEndpoint } from "@/lib/azure-openai"/*** Clean up user-entered LLM endpoint URLs. Catches the two most commondiff --git a/src/lib/llm-client.ts b/src/lib/llm-client.tsindex d4c37f09..9df28699 100644--- a/src/lib/llm-client.ts+++ b/src/lib/llm-client.ts@@ -1,5 +1,5 @@import type { LlmConfig } from "@/stores/wiki-store"-import { isAzureOpenAiEndpoint } from "@/lib/llm-config-normalize"+import { isAzureOpenAiEndpoint } from "@/lib/azure-openai"import { getProviderConfig, type RequestOverrides } from "./llm-providers"import { getHttpFetch, isFetchNetworkError } from "./tauri-fetch"import { countReasoningCharsInLine, extractReasoningTextFromLine } from "./reasoning-detector"diff --git a/src/lib/llm-providers.ts b/src/lib/llm-providers.tsindex 66e10e48..1ea9455a 100644--- a/src/lib/llm-providers.ts+++ b/src/lib/llm-providers.ts@@ -3,7 +3,7 @@ import {AZURE_OPENAI_API_VERSION,buildAzureOpenAiUrl,isAzureOpenAiEndpoint,-} from "@/lib/llm-config-normalize"+} from "@/lib/azure-openai"/*** One piece of a multimodal message body. Text + image is the only