Package Information
Released: 2 mo ago
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.4
Author: Loading Cloud
Available Nodes
Documentation generating…
Documentation
n8n-nodes-deepseek-reasoner-zh
n8n community node:DeepSeek Reasoner Chat Model (ZH)——DeepSeek 思考模式 Chat Model(繁中修正版)。
修復兩件事:
- 多輪工具呼叫 400 錯誤:n8n 官方節點在 thinking mode 下不保留
reasoning_content,
導致 AI Agent + 工具在第二輪請求被 DeepSeek API 拒絕
(The reasoning_content in the thinking mode must be passed back to the API)。
本節點無條件在 assistant 消息寫入reasoning_content欄位(有值用值、無值用空串),
從根本上消除此錯誤。 - 中文輸出被刪除:上游
n8n-nodes-deepseek-reasoner(adcom)為阿拉伯語/英語助手設計,
會無條件清除輸出中的 CJK(中日韓)字元,導致繁體中文回答被清空。本 fork 移除該邏輯,
中文完整保留。
安裝
n8n → Settings → Community Nodes → Install → n8n-nodes-deepseek-reasoner-zh
Credential
「DeepSeek Reasoner API (ZH)」:
| 欄位 | 值 |
|---|---|
| API Key | DeepSeek 官方 key,或 gateway key(如 OpenCode Go) |
| Base URL | https://api.deepseek.com,或 gateway 根位址(如 https://opencode.ai/zen/go/v1,不含 /chat/completions) |
使用
連接 DeepSeek Reasoner Chat Model (ZH) 到 AI Agent 作為 Chat Model:
- 模型:
deepseek-v4-flash(預設・快速・便宜)或deepseek-v4-pro - 啟用思考模式:開(預設)→ 多輪工具呼叫自動回傳 reasoning_content,不再 400
- 進階選項 → 思考強度:high(預設)/ max
- 最大 Tokens:預設 8192;設 0 = 模型上限(回應被截斷時用)
特性
- 動態模型列表:模型欄位自動從 provider 的
GET /models端點載入(支援 DeepSeek 官方與 OpenAI 兼容 gateway),亦可手動輸入 ID 或表達式 - 多模型安全:僅 DeepSeek 模型發送
thinking/reasoning_content;其他 OpenAI 兼容模型(如 GLM、Kimi、Qwen)不會收到 DeepSeek 專屬參數 - 自定義 BaseChatModel,完全自控 API 請求/回應(不依賴 n8n 內建 LangChain 解析)
- 120 秒請求超時 + 重試(4xx 除 429 不重試,5xx/429 指數退避重試)
- 防工具呼叫死迴圈(重複呼叫檢測、總量上限、tool_choice:none 強制終結)
- DSML wrapper 檢測、重複內容去重、空回應 safety net
- 工具參數 schema 強制轉換(修復 DeepSeek 偶發的 JSON 字串化參數)
- Base URL 自動去除尾斜線
版本歷史
| 版本 | 變更 |
|---|---|
| 0.1.3 | 動態模型列表(GET /models)、非 DeepSeek 模型參數隔離、icon 改 base64 data URI、fetch 超時 120s、中文化介面、Base URL 尾斜線處理、預設模型 v4-flash |
| 0.1.2 | 中文化介面、自訂 icon、fetch 超時 120s、Base URL 尾斜線處理、預設模型改為 v4-flash |
| 0.1.1 | 修復 supplyData 中 getCredentials 舊 credential 名 |
| 0.1.0 | 初版(基於 n8n-nodes-deepseek-reasoner 0.10.35,移除 CJK 清除) |
License
MIT。上游:n8n-nodes-deepseek-reasoner (c) adcom,MIT。