From 4eccb1b5cd675113874b074bf95ad5f745d0b6f3 Mon Sep 17 00:00:00 2001 From: Hunter Bown Date: Thu, 7 May 2026 21:53:40 -0500 Subject: [PATCH] fix(web): correct China-network install snippet (#1104 follow-up) (#1121) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DeepSeek's official API has a single endpoint, https://api.deepseek.com, with servers physically in China. There is no separate mainland endpoint, and api.deepseeki.com is a typo grandfathered into the source. The /zh/install "国内 API 访问" panel previously suggested users set a custom base_url to a China endpoint, which doesn't exist. Replace with the truth: the default works for mainland users; only override DEEPSEEK_BASE_URL if you have a private mirror. Also re-runs derive-facts to keep facts.generated.ts at 9 providers. Co-authored-by: Claude Opus 4.7 (1M context) --- web/app/[locale]/install/page.tsx | 21 +++++++++++---------- web/lib/facts.generated.ts | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/web/app/[locale]/install/page.tsx b/web/app/[locale]/install/page.tsx index 095a5506..bb66d230 100644 --- a/web/app/[locale]/install/page.tsx +++ b/web/app/[locale]/install/page.tsx @@ -95,21 +95,22 @@ registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"`}

国内 API 访问

- 默认 https://api.deepseek.com 在国内通常可直连。 - 网络不通时,通过自定义 base_url 或环境变量 - DEEPSEEK_BASE_URL 切换至替代节点: + DeepSeek 服务器位于中国境内, + https://api.deepseek.com{" "} + 是 + 官方唯一域名, + 国内可直连——无需替代节点。设置 API key:

-{`# ~/.deepseek/config.toml
-[api]
-base_url = "https://<你的节点>"
+{`# 推荐:环境变量
+export DEEPSEEK_API_KEY=sk-...
 
-# 或环境变量(推荐,便于临时切换):
-#   export DEEPSEEK_BASE_URL=https://<你的节点>`}
+# 或保存到配置文件
+deepseek auth set --provider deepseek --api-key sk-...`}
                 

- API key 通过 deepseek auth set --provider deepseek{" "} - 保存,或设 DEEPSEEK_API_KEY 环境变量。 + 如有自建反向代理或私有镜像,可通过{" "} + DEEPSEEK_BASE_URL 覆盖默认地址。

diff --git a/web/lib/facts.generated.ts b/web/lib/facts.generated.ts index 8c17374a..d468e8af 100644 --- a/web/lib/facts.generated.ts +++ b/web/lib/facts.generated.ts @@ -18,7 +18,7 @@ export interface RepoFacts { } export const FACTS: RepoFacts = { - "generatedAt": "2026-05-08T01:33:23.678Z", + "generatedAt": "2026-05-08T02:25:40.439Z", "version": "0.8.18", "crates": [ "agent",