使用 Golang 编写的 GoldenDict 外部程序,用于对接 LLM API 进行翻译。
从 Release 中下载 goldendict-llm.exe
你可以定义不同的 Adapter 以便通过修改 adapter
字段快速切换。
adapter: siliconflow
adapters:
openai:
url: "https://api.openai.com/v1/chat/completions"
token: "your-api-key-here"
model: "gpt-3.5-turbo"
siliconflow:
url: "https://api.siliconflow.cn/v1/chat/completions"
token: "your-api-key-here"
model: "Qwen/Qwen2.5-7B-Instruct"
命令行应该类似如下:C:\Application\GoldenDict\content\dicts\goldendict-llm\goldendict-llm.exe -c "C:\Application\GoldenDict\content\dicts\goldendict-llm\configs\config.local.yaml" "%GDWORD%"