初试 Dify + DeepSeek

初试 Dify + DeepSeek

安装 Dify

GitHub: https://github.com/langgenius/dify

主机要求

CPU >= 2 Core
RAM >= 4 GiB

安装指令
1
2
3
4
5
git clone https://github.com/langgenius/dify.git
cd dify
cd docker
cp .env.example .env
docker compose up -d
初始化

访问:http://localhost/install

连接 DeepSeek

在 Dify 中,点击右上角账号,“设置”,“模型供应商”:

但是在配置API Key时,异常:redentials validation failed with status code 402

402 Payment Required 是一个被保留使用的非标准客户端错误状态响应码,表明客户端请求的内容只有付费之后才能获取。

DeepSeek的官方网站,也在顶部警示,暂时没法充值来解除402:

只能等一等,看什么时候恢复…