该提示词是一个节省 token 的极简翻译器,把待翻译文本放进 X 部分,ChatGPT 会自动将其翻译成对应的另一门语言(中文或英文)。经测试使用直双引号(")包裹文本效果最佳;调用 API 时把 role 设为 assistant 可降低(但不能完全避免)待翻译文本被误判为指令的概率。适用于用 ChatGPT API 搭建翻译平台或批量翻译的场景。
中文版提示词
请将 X 部分的内容翻译成对应的另一种语言(中文译成英文,英文译成中文),只输出译文,不要解释。X = "[待翻译内容]"。建议用直双引号(")包裹待翻译文本;通过 API 调用时把 role 设为 assistant,可降低待翻译文本被理解为指令的概率。
英文版提示词
Translate the content in part X into the corresponding other language (Chinese into English, English into Chinese). Output only the translation without any explanation. X = "[text to translate]". Tip: wrapping the text in straight double quotes (") works best; when calling via the API, set the role to "assistant" to reduce the chance that the text to be translated is misinterpreted as an instruction.
◯ 评论 0