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

🚀 功能建议:添加自定义prompt以及折叠未选中服务 #434

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

Comments

@tianzhuwei
Copy link

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

感谢大佬提供这款产品开源使用
此次开issue希望添加两个功能

  1. 添加自定义prompt,看之前issue也有提到过类似功能建议的,我希望可以添加多个prompt,从而实现不同的功能。如一个基础的翻译prompt,另一个prompt是用于优化改写自己写的英文语句,即可以翻译又可以改写均是通过OpenAI提供的api实现,这个功能目前是我的刚需;
  2. 另一个功能属于锦上添花,即把未选中的翻译服务折叠,将选中的服务自动置顶,未选中服务在选中之后,这样排序起来也会更为简单;

使用场景

多个prompt的使用场景刚刚也提到,即既可以提供翻译服务,又可以提供改写服务,即一个OpenAI的服务创建多个实例。

实现方案(可选)

这个功能可以直接再复制一下现有OpenAI的服务,命令其他即可(这是我想当然的想法哈)
后续应该可以做成添加任意多的prompt,即多个功能窗口

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

  • 我愿意提交 PR
@tianzhuwei tianzhuwei added the enhancement New feature or request label Feb 28, 2024
Copy link

Hello tianzhuwei, Thank you for your first issue contribution 🎉

@tisfeng
Copy link
Owner

tisfeng commented Mar 1, 2024

了解,等重新完这部分功能后,会支持自定义 prompt 的,创建多个 OpenAI 服务实例这个也会考虑。

@tisfeng
Copy link
Owner

tisfeng commented Jun 7, 2024

我来尝试一下支持自定义 prompt 🙂

@y4code
Copy link

y4code commented Aug 31, 2024

已关注这个 FR,如果有动静了请踢我一脚

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

tisfeng commented Sep 26, 2024

这个已经实现了,周末看情况发个新版本。

@tisfeng
Copy link
Owner

tisfeng commented Nov 3, 2024

你好,2.10.0 新版本已实现该功能。

@tisfeng tisfeng closed this as completed Nov 3, 2024
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