diff --git a/docs/reference.md b/docs/reference.md
index dd151289c..7c8ff54ce 100644
--- a/docs/reference.md
+++ b/docs/reference.md
@@ -191,6 +191,76 @@ The released-client stream/tool contract test is run with
'^TestReasonixStudioCLIIntegration$' -count=1`. It uses isolated settings and
a local test upstream, with no vendor credentials.
+#### DeepSeek Harness: the DeepSeek row by hand
+
+Connecting dsh gives it magpie's own routes on dsh's pi-ai adapter
+(`magpie`, `magpie-responses`, `magpie-anthropic`). dsh's DeepSeek row
+(`llm-deepseek`, the `deepseek-official` route) is dsh's: magpie never
+points it anywhere, and Disconnect leaves an entry of yours there alone.
+That row does more for DeepSeek's own models than pi-ai does: when dsh's
+prompt or tools change mid-session it adds the change to the history
+(`systemPromptUpdate: in-history`, `toolUpdate: addition-only`), so
+DeepSeek keeps its cache of what came before, and it uploads images
+through the Files API (#3298). To keep that and still go through magpie
+(usage, sessions, the accounts behind `deepseek/…`), point the row at
+the gateway yourself, in `~/.dsh/profiles/
Clash / mihomo の設定では、同じ行を rules: の下に、それぞれ先頭に - を付けて書きます。そのあと、エージェントからもう一度リクエストを送ってください。
手で設定すればできます。dsh を接続すると magpie は自分のルートを足すだけで、dsh の DeepSeek 行(llm-deepseek)は dsh に任せます。この行は、セッションの途中でプロンプトやツールが変わっても DeepSeek のキャッシュを保ちます。magpie を通すには ~/.dsh/profiles/<profile>/cordis.patch.yml に次を足します:
- id: llm-deepseek + config: + baseURL: http://127.0.0.1:3425 + apiKeyEnv: MAGPIE_DS_KEY + maxInlineRequestImageBytes: 67108864 + models: + - id: deepseek/deepseek-flash + name: DeepSeek V4.1 Flash (magpie) + contextWindow: 1000000 + inputModalities: [text, image] + systemPromptUpdate: in-history + toolUpdate: addition-only + - id: deepseek/deepseek-v4-pro + name: DeepSeek V4 Pro (magpie) + contextWindow: 1000000+
baseURL に /anthropic は付けません。モデル id は magpie のもの(magpie models)で、models を書くと dsh の既定の一覧が置き換わるので、更新方法の 2 行も残してください。MAGPIE_DS_KEY には DeepSeek のキーではなくゲートウェイのキー(このコンピュータでは magpie)を入れます。export するか、~/.dsh/.env に書くか、dsh のモデルページの DeepSeek 行に入力します。モデルは dsh で選びます。magpie で接続を解除してもこの設定は残ります。magpie には Files API がないため、dsh は画像を毎ターン base64 でインライン送信します。上限は maxInlineRequestImageBytes(既定 20 MiB、上の例では 64 MiB)です。この行では DeepSeek 自身のモデルだけを使ってください。詳しくはリファレンスへ。
困ったときや、共有したい構成があるときは Discord でどうぞ。ユーザーにすぐ使えるプロバイダを配りたいベンダーの方は magpie に追加 をご覧ください。
diff --git a/site/public/docs/start.html b/site/public/docs/start.html index 6c1d1b4ae..5d31995b0 100644 --- a/site/public/docs/start.html +++ b/site/public/docs/start.html @@ -290,6 +290,28 @@ magpie claude group/opus-anywhere # use it IP-CIDR6,::1/128,DIRECT,no-resolveIn a Clash or mihomo config the same lines go under rules:, each starting with - . Then send the agent a new request.
Yes, by hand. Connecting dsh adds magpie’s routes and leaves dsh’s DeepSeek row (llm-deepseek) to dsh. That row keeps DeepSeek’s cache when dsh’s prompt or tools change mid-session. To send it through magpie, add this to ~/.dsh/profiles/<profile>/cordis.patch.yml:
- id: llm-deepseek + config: + baseURL: http://127.0.0.1:3425 + apiKeyEnv: MAGPIE_DS_KEY + maxInlineRequestImageBytes: 67108864 + models: + - id: deepseek/deepseek-flash + name: DeepSeek V4.1 Flash (magpie) + contextWindow: 1000000 + inputModalities: [text, image] + systemPromptUpdate: in-history + toolUpdate: addition-only + - id: deepseek/deepseek-v4-pro + name: DeepSeek V4 Pro (magpie) + contextWindow: 1000000+
baseURL has no /anthropic. The model ids are magpie’s (magpie models), and a models list replaces dsh’s defaults, so keep the two update lines. MAGPIE_DS_KEY holds the gateway key (magpie on this computer), not your DeepSeek key: export it, put it in ~/.dsh/.env, or enter it on the DeepSeek row in dsh’s Models page. Pick the model in dsh; Disconnect leaves the entry alone. magpie has no Files API, so dsh sends images inline as base64 each turn, up to maxInlineRequestImageBytes (20 MiB by default, 64 MiB above). Keep the row on DeepSeek’s own models. More in the reference.
Stuck, or have a setup worth sharing? Ask on Discord. Vendors who want to hand their users a ready-made provider: see Add to magpie.
diff --git a/site/public/docs/zh/start.html b/site/public/docs/zh/start.html index 69e788aef..bb2363fed 100644 --- a/site/public/docs/zh/start.html +++ b/site/public/docs/zh/start.html @@ -290,6 +290,28 @@ magpie claude group/opus-anywhere # 使用它 IP-CIDR6,::1/128,DIRECT,no-resolveClash / mihomo 的配置里把这两行写在 rules: 下,每行前面加 - 。改完让 Agent 重新发一次请求即可。
可以,手动配置。连接 dsh 时 magpie 只加自己的路由,dsh 的 DeepSeek 行(llm-deepseek)留给 dsh。这一行在会话中途改提示词或工具时能保住 DeepSeek 的缓存。要让它经过 magpie,在 ~/.dsh/profiles/<profile>/cordis.patch.yml 里加上:
- id: llm-deepseek + config: + baseURL: http://127.0.0.1:3425 + apiKeyEnv: MAGPIE_DS_KEY + maxInlineRequestImageBytes: 67108864 + models: + - id: deepseek/deepseek-flash + name: DeepSeek V4.1 Flash (magpie) + contextWindow: 1000000 + inputModalities: [text, image] + systemPromptUpdate: in-history + toolUpdate: addition-only + - id: deepseek/deepseek-v4-pro + name: DeepSeek V4 Pro (magpie) + contextWindow: 1000000+
baseURL 不带 /anthropic。模型 id 用 magpie 的(magpie models);写了 models 就会替换 dsh 的默认列表,所以两行更新方式要保留。MAGPIE_DS_KEY 里放网关密钥(本机是 magpie),不是你的 DeepSeek 密钥:export、写进 ~/.dsh/.env,或在 dsh 模型页的 DeepSeek 行填入都行。模型在 dsh 里选;在 magpie 里断开不会动这一项。magpie 没有 Files API,dsh 会把图片按 base64 每轮内联发送,上限是 maxInlineRequestImageBytes(默认 20 MiB,上面设成 64 MiB)。这一行只用 DeepSeek 自己的模型。详见参考文档。
遇到问题,或者有值得分享的配置?来 Discord 聊。想给自己的用户一键添加供应商的厂商,请看 Add to magpie。