#4652 使用自定义翻译api时如何输入系统提示词

120.236* Posted at: 1 hour ago 👁8

使用自定义翻译api时如何输入系统提示词

1 Replies

使用自定义翻译 API(如兼容 OpenAI 接口)时,系统提示词是通过修改软件目录下的提示词文件实现的,无需在界面输入。

  1. 打开 videotrans/prompts/ 文件夹。
  2. 若翻译时勾选了“发送完整字幕”,则修改 srt 子文件夹内对应渠道的提示词文件;否则修改 text 子文件夹内的文件。
  3. 文件中的 {lang}{context_block}{batch_input} 等变量不可删除,可调整指令内容以指导翻译风格。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource