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
feat: add Alibaba Bailian Coding Plan presets (OpenAI + Anthropic wire)
nash_su184f7d22acef
diff --git a/src/components/settings/llm-presets.ts b/src/components/settings/llm-presets.tsindex 0806994a..585d1bff 100644--- a/src/components/settings/llm-presets.ts+++ b/src/components/settings/llm-presets.ts@@ -251,6 +251,55 @@ export const LLM_PRESETS: LlmPreset[] = [suggestedModels: ["MiniMax-M2.7", "MiniMax-M2.5", "MiniMax-M2.1", "MiniMax-M2"],suggestedContextSize: 200000,},+ {+ id: "bailian-coding-openai",+ label: "阿里百炼 Coding Plan (OpenAI-compat)",+ hint: "coding.dashscope.aliyuncs.com/v1",+ provider: "custom",+ baseUrl: "https://coding.dashscope.aliyuncs.com/v1",+ apiMode: "chat_completions",+ // Alibaba Bailian's subscription-only "Coding Plan" endpoint. Key+ // must come from the Bailian console's Coding Plan tab — using a+ // regular DashScope key here will 401. Order matches the docs'+ // "recommended" section, then "additional".+ defaultModel: "qwen3.6-plus",+ suggestedModels: [+ "qwen3.6-plus",+ "kimi-k2.5",+ "glm-5",+ "MiniMax-M2.5",+ "qwen3.5-plus",+ "qwen3-max-2026-01-23",+ "qwen3-coder-plus",+ "qwen3-coder-next",+ "glm-4.7",+ ],+ suggestedContextSize: 131072,+ },+ {+ id: "bailian-coding-anthropic",+ label: "阿里百炼 Coding Plan (Anthropic-compat)",+ hint: "coding.dashscope.aliyuncs.com/apps/anthropic",+ provider: "custom",+ baseUrl: "https://coding.dashscope.aliyuncs.com/apps/anthropic",+ apiMode: "anthropic_messages",+ // Same model catalog as the OpenAI-compat variant, but the wire is+ // Anthropic Messages. Auth uses Bearer (see requiresBearerAuth in+ // llm-providers.ts) — matches MiniMax / Bailian gateway convention.+ defaultModel: "qwen3.6-plus",+ suggestedModels: [+ "qwen3.6-plus",+ "kimi-k2.5",+ "glm-5",+ "MiniMax-M2.5",+ "qwen3.5-plus",+ "qwen3-max-2026-01-23",+ "qwen3-coder-plus",+ "qwen3-coder-next",+ "glm-4.7",+ ],+ suggestedContextSize: 131072,+ },{id: "volcengine-ark",label: "火山引擎 Ark (Volcengine)",diff --git a/src/lib/llm-providers.ts b/src/lib/llm-providers.tsindex 23702aee..7036074f 100644--- a/src/lib/llm-providers.ts+++ b/src/lib/llm-providers.ts@@ -94,8 +94,13 @@ function buildAnthropicBody(messages: ChatMessage[]): Record<string, unknown> {function requiresBearerAuth(url: string): boolean {const normalized = url.toLowerCase().replace(/\/+$/, "")return (+ // MiniMax — CORS allow-headers doesn't include x-api-keynormalized.startsWith("https://api.minimax.io/anthropic") ||- normalized.startsWith("https://api.minimaxi.com/anthropic")+ normalized.startsWith("https://api.minimaxi.com/anthropic") ||+ // Alibaba Bailian Coding Plan — issues sk-xxx bearer-style tokens+ // on its /apps/anthropic gateway; behavior matches the other+ // Chinese Anthropic-wire proxies above.+ normalized.startsWith("https://coding.dashscope.aliyuncs.com/apps/anthropic"))}