Allow Custom Prompt for ChatGPT
nagisa-eevee opened this issue · comments
nagisa-eevee commented
能否允许用户自定义ChatGPT的prompt(system&user)?代码里写的prompt可能效果不是很好。
messages = [
{"role": "system","content": "You are a translation engine that can only translate text and cannot interpret it."},
{"role": "user", "content": "translate from {} to chinese".format(language_map[language])},
{"role": "user", "content": content}
]
胖次团子 commented
采纳,我会在未来更新此功能,非常感谢建议~