沉浸式翻译本地大模型临时解决方案
github: https://github.com/tinuv/TranslationService
如果有用麻烦点个🌟
http://localhost:8080/translate
从源码编译后直接在命令行使用/path/to/TranslationService
,或者从仓库的 release 下载编译后的二进制文件
launchctl
长期使用新建TranslationService.plist
,并写入
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>TranslationService</string>
<key>ProgramArguments</key>
<array>
<string>/Users/tinuv/Developer/Apple/TranslationService/TranslationService/TranslationService</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
其中/Users/tinuv/Developer/Apple/TranslationService/TranslationService/TranslationService
替换为自己的 TranslationService 路径
将文件移动到/Library/LaunchDaemons/
,sudo mv /path/to/TranslationService.plist /Library/LaunchDaemons/TranslationService.plist
开机自启sudo launchctl load -w /Library/LaunchDaemons/TranslationService.plist
卸载自启动sudo launchctl unload -w /Library/LaunchDaemons/TranslationService.plist
或直接删除此文件
1
mortal 263 天前
好奇为啥还要套一层?沉浸式翻译不是可以直接用 openAI 方式接入 Ollama 吗
|
2
huiyanpohundh123 OP @mortal 就是不支持啊 但是 github 已经有人提 issue 现在作为临时解决方案
|
3
Yzh361 262 天前 via Android
这么麻烦… 多亏用的是 chromeOS
|
4
goodryb 234 天前
|