openai-translator / bob-plugin-openai-translator

基于 ChatGPT API 的文本翻译、文本润色、语法纠错 Bob 插件,让我们一起迎接不需要巴别塔的新时代!Licensed under CC BY-NC-SA 4.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] “prompt好像有些问题,没有明确指示语言”

folook opened this issue · comments

Search before asking

  • issues 中没有找到类似的内容。I searched in the issues and found nothing similar.

Feature

需要修改 UserPrompt

描述 Motivation

以汉译英为例,我尝试打印出了发给 openai 的 prompt:最终 UserPrompt 是: translate from zh-Hans to en:\n\n整理好的落叶松就要被履带拖拉机拖走了

Solution

是否考虑将 prompt 中的语言代码zh-Hans 和 en 改为 Chinese 和 English,即最终的 UserPrompt : translate from Chinese to English

还有其他内容吗?Anything else?

No response

你是否愿意提交一份 PR?Are you willing to submit a PR?

  • 我愿意提供 PR! I'm willing to submit a PR!

这样会有什么问题吗?
image