Skip to content

STranslate/STranslate.Plugin.Translate.OpenRouter

Repository files navigation

STranslate OpenRouter 翻译插件

基于 OpenRouter API 的 STranslate 翻译插件。

📦 安装

  1. 下载最新的 .spkg 文件(在 Releases 页面)
  2. 在 STranslate 中进入 设置插件安装插件
  3. 选择下载的 .spkg 文件并重启 STranslate

⚙️ 配置

  1. 获取 API Key: 访问 OpenRouter Console 注册并获取 API Key
  2. 配置插件: 在 STranslate 中进入 设置服务OpenRouter设置
    • API Key: 你的 OpenRouter API Key
    • API URL: https://openrouter.ai(默认)
    • 模型: openai/gpt-5.2
    • 温度: 0-2,默认 0.7

提示词模板

支持自定义提示词,内置:

  • 翻译 - 专业翻译引擎
  • 润色 - 文本润色优化
  • 总结 - 文本摘要生成

提示词变量:$source(源语言)、$target(目标语言)、$content(待翻译文本)

📄 许可证

MIT


Made with ❤️ by zggsong

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages