tisfeng / Easydict

一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App for looking up words and translating text.
GNU General Public License v3.0
6.4k stars 325 forks source link

🚀 功能建议:服务可以增加更多的模型吗?Command R #512

Open lchs11 opened 2 months ago

lchs11 commented 2 months ago

请先确认以下事项

功能描述

Command R 大模型

使用场景

Command R

实现方案(可选)

No response

是否愿意提交 PR 实现该功能

github-actions[bot] commented 2 months ago

Hello lchs11, Thank you for your first issue contribution 🎉

tisfeng commented 2 months ago

感觉可以加,Cohere 提供免费试用的 key(虽然有次数限制),我使用了几天,发现翻译效果不错,command-r 模型对中文支持也很好。https://docs.cohere.com/docs/going-live

但比较麻烦的一点是,Cohere 的 API 不是标准的 OpenAI 接口,代码实现起来需要费心,因此目前建议通过一些第三方服务将 Cohere 接口转为标准的 OpenAI 接口 https://github.com/tisfeng/Easydict/issues/270#issuecomment-1864397930 ,这样就能使用自定义 OpenAI 服务在 Easydict 中使用了。

one-api 暂时还没支持 Cohere,可以先借助其他服务,例如 cohere2openaicohere2openai-cf-worker

image
tisfeng commented 2 months ago

我用这个 cohere2openai-cf-worker 服务在 Cloudflare Worker 搭了一个转换接口 https://cohere2openai.tisfeng.workers.dev ,可以方便在 Easydict 中使用 command-r 模型。

注意,上面接口不保证能稳定使用,建议搭建自己的个人接口服务。

image
tisfeng commented 2 months ago

one-api 已经支持 Cohere 服务了 https://github.com/songquanpeng/one-api/pull/1355

2.7.0 版本已添加了一个自定义 OpenAI 服务,直接借助中转接口在 Easydict 中使用也行。

image
valens7 commented 1 month ago

是否可以在窗口多开几个自定义AI,对比不同大模型的翻译结果.

tisfeng commented 1 month ago

是否可以在窗口多开几个自定义AI,对比不同大模型的翻译结果.

会有的,还在开发中 https://github.com/tisfeng/Easydict/issues/479

目前 OpenAI 和自定义 OpenAI 服务功能基本类似,都可以自由配置。