Skip to content

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

Update DeepSeek model presets

nash_su70d5579c6a13
diff --git a/src/components/settings/llm-presets.ts b/src/components/settings/llm-presets.ts
index 72fe4898..766c4be8 100644
--- a/src/components/settings/llm-presets.ts
+++ b/src/components/settings/llm-presets.ts
@@ -170,10 +170,18 @@ export const LLM_PRESETS: LlmPreset[] = [
hint: "api.deepseek.com",
provider: "custom",
baseUrl: "https://api.deepseek.com/v1",
- defaultModel: "deepseek-chat",
+ defaultModel: "deepseek-v4-flash",
apiMode: "chat_completions",
- // hermes models.py:243-246
- suggestedModels: ["deepseek-chat", "deepseek-reasoner"],
+ // `deepseek-chat` and `deepseek-reasoner` remain selectable for
+ // existing users, but DeepSeek has announced deprecation on
+ // 2026-07-24. Keep chip values as exact model ids so clicking a
+ // suggestion can be copied directly into the request body.
+ suggestedModels: [
+ "deepseek-v4-flash",
+ "deepseek-v4-pro",
+ "deepseek-chat",
+ "deepseek-reasoner",
+ ],
suggestedContextSize: 64000,
},
{
diff --git a/src/components/settings/preset-resolver.test.ts b/src/components/settings/preset-resolver.test.ts
index c911aa09..0737da15 100644
--- a/src/components/settings/preset-resolver.test.ts
+++ b/src/components/settings/preset-resolver.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "vitest"
+import { LLM_PRESETS } from "./llm-presets"
import { resolveConfig } from "./preset-resolver"
import type { LlmConfig } from "@/stores/wiki-store"
import type { LlmPreset } from "./llm-presets"
@@ -17,6 +18,18 @@ function fallbackConfig(overrides: Partial<LlmConfig> = {}): LlmConfig {
}
describe("resolveConfig", () => {
+ it("keeps DeepSeek presets aligned with the current V4 model list", () => {
+ const deepseek = LLM_PRESETS.find((preset) => preset.id === "deepseek")
+
+ expect(deepseek?.defaultModel).toBe("deepseek-v4-flash")
+ expect(deepseek?.suggestedModels).toEqual([
+ "deepseek-v4-flash",
+ "deepseek-v4-pro",
+ "deepseek-chat",
+ "deepseek-reasoner",
+ ])
+ })
+
it("defaults reasoning to auto instead of inheriting another preset's fallback", () => {
const preset: LlmPreset = {
id: "deepseek",