No description
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-27 03:52:14 +08:00
.forgejo/workflows update 2026-08-27 03:52:14 +08:00
.gitignore first commit 2026-08-27 03:16:42 +08:00
deepseek.svg first commit 2026-08-27 03:16:42 +08:00
info.json first commit 2026-08-27 03:16:42 +08:00
LICENSE first commit 2026-08-27 03:16:42 +08:00
main.js first commit 2026-08-27 03:16:42 +08:00
README.md first commit 2026-08-27 03:16:42 +08:00

Pot-App DeepSeek 翻译插件 (适配最新 V4 模型)

为 pot-app/pot-desktop 开发的 DeepSeek 翻译插件, 基于 DeepSeek 官方 OpenAI 兼容接口,适配 DeepSeek 最新一代模型。

模型说明

旧的 deepseek-chat / deepseek-reasoner 模型名已于 2026-07-24 停用, 本插件默认使用新一代 V4 模型名。

模型名 说明
deepseek-v4-pro 旗舰模型,最强能力 (Agent/推理/翻译质量最高)
deepseek-v4-flash 快速高性价比模型,速度更快、价格更低 (默认)
deepseek-v4-flash-vision-exp 多模态预览版,支持视觉理解

安装

  1. 安装 pot-app
  2. 在 DeepSeek 开放平台 生成 API Key
  3. 下载本项目 Releases 中的 plugin.com.pot-app.deepseek.potext,在 pot 中安装

配置

配置项 必填 说明
API Key ✅ DeepSeek 开放平台的 API Key
请求地址 (Base URL) ❌ 默认 https://api.deepseek.com,可填第三方中转地址
模型 ✅ 见上表,默认 deepseek-v4-flash
System 提示词 ❌ 留空使用默认翻译提示词
temperature ❌ 采样温度 0~2,默认 0.3

本地打包

.potext 本质是把 info.json、deepseek.svg、main.js 三个文件打包的 zip:

zip -j plugin.com.pot-app.deepseek.potext info.json deepseek.svg main.js

自动打包 (Forgejo Actions)

本仓库通过 Forgejo Actions 实现推送 tag 后自动打包 .potext 并发布到 release。

工作流文件位于 .forgejo/workflows/build.yml。使用前需要:

  1. 在 Forgejo 上启用 Actions(需要 runner)
  2. 创建一个具有 write:repository 权限的 access token,保存为仓库 secret RELEASE_TOKEN
  3. 推送一个 tag 即可触发自动打包:
git tag v1.0.0
git push origin v1.0.0

工作流会:

  • 打包 info.json + deepseek.svg + main.js 为 plugin.com.pot-app.deepseek.potext
  • 上传为 artifact(可在 Actions 页面下载)
  • 通过 forgejo-release action 发布到 release

协议

插件遵循官方 main.js 协议, 以 translate(text, from, to, options) 导出翻译函数,通过 config 读取用户配置, 通过 utils.tauriFetch 发起请求。

License

MIT