Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(translator): 优化 Gemini 翻译模板(吴恩达三步翻译法)并支持新模型 #439

Merged
merged 2 commits into from
Dec 22, 2024

Conversation

colin4k
Copy link
Contributor

@colin4k colin4k commented Dec 17, 2024

更新翻译提示模板以提供更专业的中文翻译输出,主要变更包括:

  • 添加新的 Gemini 2.0 flash 实验模型支持
  • 修改翻译提示模板,采用三步翻译流程提升翻译质量
  • 增加标签提取功能,只返回最终优化后的翻译内容
  • 移除对 {language} 参数的强制要求检查

优化后的翻译流程包含初次翻译、反思改进和最终润色三个步骤,
显著提升翻译结果的准确性和可读性。

更新翻译提示模板以提供更专业的中文翻译输出,主要变更包括:
- 添加新的 Gemini 2.0 flash 实验模型支持
- 修改翻译提示模板,采用三步翻译流程提升翻译质量
- 增加标签提取功能,只返回最终优化后的翻译内容
- 移除对 {language} 参数的强制要求检查

优化后的翻译流程包含初次翻译、反思改进和最终润色三个步骤,
显著提升翻译结果的准确性和可读性。
@yihong0618
Copy link
Owner

can you fix the lint?

@yihong0618 yihong0618 merged commit 4e7cbb5 into yihong0618:main Dec 22, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants