-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[功能请求] 希望支持deepseek大模型翻译 #391
Comments
Please add deepseek api |
Use custom engine function. It is exactly the same as ChatGPT. See https://github.com/bookfere/Ebook-Translator-Calibre-Plugin/wiki/Custom-Translation-Engine-Recipes {
"name": "Deepseek",
"languages": {
"source": {
"English": "English"
},
"target": {
"Chinese": "Chinese"
}
},
"request": {
"url": "https://api.deepseek.com/v1/chat/completions",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer sk-xxxxxxxxxxxxxxxxxxxxxx",
"User-Agent": "Fill-As-You-Need"
},
"data": {
"model": "deepseek-chat",
"messages": [
{"role": "system", "content": "Translate the content from <slang> to <tlang>."},
{"role": "user", "content": "<text>"}
]
}
},
"response": "response['choices'][0]['message']['content']"
} |
I'm sorry, as a normie. I don't understand much about these stuffs. I used this, it run but it still output the
This is what my output looks like: |
I believe you can do something like this: In
|
I got this in rolling release. calibre, version 7.24.0 calibre 7.24 embedded-python: True |
deepseek V3大模型的性能非常好,价格也相对便宜实惠。希望支持这个模型翻译
The text was updated successfully, but these errors were encountered: