anonymousException / renpy-translator

A translator for renpy based on google | youdao | deepl | open-ai | offline-ai tranlation supports extract untranslated words and translate
MIT License
108 stars 11 forks source link

请问大佬,软件支持自定义openai的系统提示词吗? #42

Closed 2776108571 closed 3 months ago

2776108571 commented 3 months ago

Is your feature request related to a problem? Please describe. 大佬您好 我目前使用您的软件,感觉非常好用! 但是也遇到了一点小问题

因为我是部署本地中英文模型然后用openai的接口进行翻译 因此并没有GPT那么好的效果,需要更细致的提示词的描述 我对于自己使用的这款模型翻译提示词的撰写颇有心得 所以想问问大佬

Describe the solution you'd like 软件是否支持自定义提示词和参数

Describe alternatives you've considered 或者在哪个文件可以修改系统提示词参数

Additional context 感谢大佬开源软件,希望能得到您的回复!

anonymousException commented 3 months ago

暂时不支持自定义,等我后面的版本支持下

2776108571 commented 3 months ago

好的,感谢大佬

anonymousException commented 3 months ago

已在最新版本支持,注意要保留 3 个参数 : 源语言 #SOURCE_LANGUAGE_ID!@$^# 目标语言 #TARGET_LANGAUGE_ID!@$^# 待翻译数据 #JSON_DATA_WAITING_FOR_TRANSLATE_ID!@$^# 除此之外,输入和输出的格式要求也要保留 输入 :You are a translation API that receives dictionary-type data in JSON format and returns dictionary-type results in JSON format. 输出 :do not consider that we are chatting or greeting me and simply reply to me with the translation in the same format as the original, which is an example of the format: \nMe: {\"1\": \"Contents of line 1\", \"2\": \"Contents of line 2\", \"3\": \"Contents of line 3\"} \nYou: {\"1\": \"Translation result for line 1\", \"2\": \"Translation result for line 2\", \"3\": \"Translation result for line 3\"}"

2776108571 commented 3 months ago

感谢大佬进行更新