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 翻译支持用户自定义 prompt #260

Closed
4 tasks done
AydenGen opened this issue Dec 12, 2023 · 5 comments
Closed
4 tasks done

🚀 功能建议:OpenAI 翻译支持用户自定义 prompt #260

AydenGen opened this issue Dec 12, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@AydenGen
Copy link

请先确认以下事项

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

功能描述

OpenAI翻译prompt支持用户自定义

使用场景(可选)

No response

实现方案(可选)

easydict://readKeyValue?EZOpenAICustomizePrompt=""

这个是否可行

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

  • 我愿意提交 PR
@AydenGen AydenGen added the enhancement New feature or request label Dec 12, 2023
Copy link

Hello AydenGen, Thank you for your first issue contribution 🎉

@tisfeng
Copy link
Owner

tisfeng commented Dec 12, 2023

也不是不行,只是 prompt 结构太复杂了,这种格式对用户编写调试很不友好。

easydict://writeKeyValue?EZOpenAICustomPrompt=xxx

行吧,如果你愿意提交 PR,可以尝试用它作为一种过渡方式。

@tisfeng tisfeng changed the title 🚀 功能建议: 🚀 功能建议:OpenAI 翻译支持用户自定义 prompt Dec 12, 2023
@AydenGen
Copy link
Author

看了下代码发现目前不太合适自定义prompt,格式不好编写,其次作为翻译,自定义prompt和系统预设最终结果差别也不大

@tisfeng
Copy link
Owner

tisfeng commented Dec 13, 2023

意料之中,其实默认的 prompt 对绝大多数用户来说都已经够用了,没必要折腾。

但考虑到少部分用户喜欢折腾,有精益求精的精神,以及后面 Easydict 会开放 OpenAI 翻译以外的功能,自定义 prompt 功能还是会加的,只是要等到重构设置页后 #227 (comment)

@AydenGen
Copy link
Author

意料之中,其实默认的 prompt 对绝大多数用户来说都已经够用了,没必要折腾。

但考虑到少部分用户喜欢折腾,有精益求精的精神,以及后面 Easydict 会开放 OpenAI 翻译以外的功能,自定义 prompt 功能还是会加的,只是要等到重构设置页后 #227 (comment)

好的,看到了,有设置页可以自定义prompt是最优方式了,这个我关了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants