fix(web): correct China-network install snippet (#1104 follow-up) (#1121)

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) <noreply@anthropic.com>
This commit is contained in:
Hunter Bown
2026-05-07 21:53:40 -05:00
committed by GitHub
parent b417fc9efa
commit 4eccb1b5cd
2 changed files with 12 additions and 11 deletions
+11 -10
View File
@@ -95,21 +95,22 @@ registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"`}
<div className="p-6 min-w-0">
<h3 className="font-display text-lg mb-2"> API 访</h3>
<p className="text-sm text-ink-soft leading-[1.9] tracking-wide mb-3">
<code className="inline">https://api.deepseek.com</code> 在国内通常可直连。
<code className="inline">base_url</code>
<code className="inline">DEEPSEEK_BASE_URL</code>
DeepSeek
<code className="inline">https://api.deepseek.com</code>{" "}
<a href="https://api-docs.deepseek.com/" className="body-link"></a>
API key
</p>
<pre className="code-block text-[0.78rem]">
{`# ~/.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-...`}
</pre>
<p className="text-sm text-ink-soft leading-[1.9] tracking-wide mt-3">
API key <code className="inline">deepseek auth set --provider deepseek</code>{" "}
<code className="inline">DEEPSEEK_API_KEY</code>
{" "}
<code className="inline">DEEPSEEK_BASE_URL</code>
</p>
</div>
</div>
+1 -1
View File
@@ -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",