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:
@@ -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>
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user