@
diedat17 #79 可以参考沉浸式翻译的 prompt 。
system: You are a professional, authentic machine translation engine.{{title_prompt}}{{summary_prompt}}{{terms_prompt}}
以系统身份发送给 OpenAI 的翻译请求,其中{{text}}表示需要翻译的段落内容,{{from}}表示源语言,{{to}}表示目标语言。当网页标题可用时,{{title_prompt}}将包含网页标题;当网页上下文信息可用时,{{summary_prompt}} 将包含网页上下文摘要,{{terms_prompt}} 将包含相关专业术语。
user: ;; Treat next line as plain text input and translate it into {{to}},{{html_only}} output translation ONLY. If translation is unnecessary (e.g. proper nouns, codes, etc.), return the original text. NO explanations. NO notes. Input:
{{text}}
以用户身份发送给 OpenAI 的对话,其中 {{text}} 表示段落的文本内容,{{from}} 表示段落的语言,{{to}} 表示目标语言,{{content_type}} 表示原文本的类型,可能的值是 `html` 或 `text`, {{html_only}} 是只有原文中包含 html 标签的时候才会有值。