Skip to content
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

🚀 功能建议:添加一个支持通用 OpenAI 接口格式的翻译服务 #387

Closed
3 of 4 tasks
tisfeng opened this issue Feb 3, 2024 · 5 comments
Closed
3 of 4 tasks
Assignees
Labels
enhancement New feature or request fixed in next release The issue will be closed once next release is available

Comments

@tisfeng
Copy link
Owner

tisfeng commented Feb 3, 2024

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议
  • Easydict 已升级到 最新版本

功能描述

该服务和 OpenAI 翻译类似,只是它支持自定义模型,可以和 OpenAI 翻译共存 #379 (comment)

使用场景

使用 one-api 将第三方 LLM 接口转为标准的 OpenAI 接口,方便在 Easydict 中使用。

实现方案(可选)

No response

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

  • 我愿意提交 PR
@tisfeng tisfeng added the enhancement New feature or request label Feb 3, 2024
@phlpsong
Copy link
Collaborator

Should I wait to start until this this pr #312 is completed?

@tisfeng
Copy link
Owner Author

tisfeng commented Feb 17, 2024

No, You can work on this feature first, the refactored OpenAI service later will be consistent with the previous one, and I can ensure there will be no broken changes.

Since #312 depends on upstream library OpenAI which lacks custom end point feature, I need to wait for feedback or fork and implement this myself.

@phlpsong
Copy link
Collaborator

OK, got it.

@tisfeng tisfeng added the fixed in next release The issue will be closed once next release is available label Mar 24, 2024
@tisfeng
Copy link
Owner Author

tisfeng commented May 1, 2024

2.7.0 版本已实现该功能。

@tisfeng tisfeng closed this as completed May 1, 2024
@Mrycp
Copy link

Mrycp commented May 6, 2024

尝试使用了该功能,在配置界面验证提示是验证成功的,且在其它软件中确认过接口和 key 都是正确的。但是在 dict 中无法显示输出结果。当输入是句子时无结果输出,当输入是单词时只会重复输出该单词,并不会进行翻译或单词解析输出。
CleanShot 2024-05-07 at 00 39 32@2x
CleanShot 2024-05-07 at 00 43 18@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed in next release The issue will be closed once next release is available
Projects
None yet
Development

No branches or pull requests

3 participants