openai-translator / openai-translator

基于 ChatGPT API 的划词翻译浏览器插件和跨平台桌面端应用 - Browser extension and cross-platform desktop application for translation based on ChatGPT API.
GNU Affero General Public License v3.0
23.46k stars 1.71k forks source link

[Bug] 使用阿里云通义千问,翻译报错`'frequency_penalty' is not supported now` #1620

Open danerlt opened 1 month ago

danerlt commented 1 month ago

Please search before asking

Please read README

Please check your network and OpenAI API quota

OpenAI Translator version

0.4.21

Model name

qwen-plus

系统/浏览器版本 System/Browser version

Windows10 Chrome 126.0.6478.127

复现步骤 Reproduce step

设置阿里云通义千问的baseurl和模型 image

阿里云的文档: https://help.aliyun.com/zh/dashscope/developer-reference/compatibility-of-openai-with-dashscope?spm=5176.28197632.help.dexternal.45aa7e06ph3KKe

你看到了什么错误?What errors do you see?

image

你期望看到什么?What did you expect to see?

翻译不报错

还有其他的内容吗?Anything else?

No response

你是否愿意提交一份 PR 来修改这个错误?Are you willing to submit a PR?

Whichbfj28 commented 1 month ago

选择本地模型试试。。

Whichbfj28 commented 1 month ago

image 试试这些这些。不一定非要openai

danerlt commented 1 month ago

@Whichbfj28 我现在换成Deepseek了,没有用阿里云的了

danerlt commented 1 month ago

@Whichbfj28 使用groq也是报同样的错误,我估计是阿里的问题