Open WebUI 部署思考转换链接
1 准备 Python 依赖包
apt install python3-flask python3-grequests
2 下载思考链接仓库
git clone https://github.com/liandu2024/DeepSeek2URL.git
3 修改程序启动代码
将python 启动命令更改为 python3。
vi Start_Sub.py
import subprocess
subprocess.Popen(["python3", "./Ark.py"])
subprocess.Popen(["python3", "./DS.py"])
subprocess.Popen(["python3", "./SF.py"])
subprocess.Popen(["python3", "./NV.py"])
subprocess.Popen(["python3", "./AL.py"])
4 运行思考链接转换程序
cd DeepSeek2URL/
nohup python3 Start.sh
5 思考链接转换后的地址
平台 | API地址 | 转换后的地址 | 模型 |
---|---|---|---|
英伟达 | https://integrate.api.nvidia.com/v1 | http://192.168.10.176:9003 | deepseek-ai/deepseek-r1 |
阿里百炼 | https://dashscope.aliyuncs.com/compatible-mode/v1 | http://192.168.10.176:9004 | deepseek-r1 |
火山方舟 | https://ark.cn-beijing.volces.com/api/v3 | http://192.168.10.176:9005 | ep-20250225165907-7vk92 |
深度求索 | https://api.deepseek.com | http://192.168.10.176:9006 | deepseek-reasoner |
硅基流动 | https://api.siliconflow.cn/v1 | http://192.168.10.176:9007 | deepseek-ai/DeepSeek-R1 |