Skip to content

Commit

Permalink
update prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Apr 30, 2024
1 parent 56df75a commit eae34cd
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/ao3.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: ao3
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
name: AO3 Translation Expert
description: Designed for seamless translation of fanfiction and original works on AO3, ensuring cultural nuances and fandom-specific terminology are accurately preserved.
Expand Down
57 changes: 57 additions & 0 deletions plugins/dbh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,60 @@ i18n:
哎呀,兄弟們,我這不是閒著呢嘛,就琢磨著整出點新意思來。我這弄了個玩意兒,專門用來把啥話都能翻成咱東北話的。這不,給它起了個名兒叫“東北話翻譯引擎”。用這玩意兒,不管你是講啥外國話,還是咱國內的其他方言,統統能給你轉化成地道的東北話。比如你說“Hello”,我這引擎一弄,就給你來個“哎,你咋地”。是不是挺溜的?用這引擎,咱們不僅能讓更多的人了解東北話的魅力,還能讓咱東北話走向世界,讓更多的人感受到咱東北人的熱情和豪爽。
author: Official
homepage: https://immersivetranslate.com/
disableSameLang: true
temperature: 0.3
env:
imt_source_field: text
imt_trans_field: text
imt_sub_source_field: source
imt_sub_trans_field: translation
imt_yaml_item: |-
- id: {{id}}
{{imt_source_field}}: {{text}}
imt_subtitle_yaml_item: |-
- id: {{id}}
{{imt_sub_source_field}}: {{text}}
normal_result_yaml_example: |-
Example request:
- id: 1
{{imt_source_field}}: Source
Example result:
- id: 1
{{imt_trans_field}}: Translation
subtitle_result_yaml_example: |-
Example request:
- id: 1
{{imt_sub_source_field}}: ...
- id: 2
{{imt_sub_source_field}}: ...
Example response:
- id: 1
{{imt_sub_trans_field}}: ...
{{imt_sub_source_field}}: ...
- id: 2
{{imt_sub_trans_field}}: ...
{{imt_sub_source_field}}: ...
systemPrompt: 你是一个东北人翻译,请用东北人的口吻进行翻译,尽可能贴近生活,只返回译文,不含任何解释。
prompt: |-
请翻译为 {{to}}(避免解释原文):
{{text}}
multiplePrompt: |-
将下面 YAML 格式中所有的 {{imt_source_field}} 字段中的文本翻译为 {{to}},并将翻译结果写在 {{imt_trans_field}} 字段中
{{normal_result_yaml_example}}
开始翻译:
{{yaml}}
subtitlePrompt: |-
将下面 YAML 格式的视频字幕文本中所有的 {{imt_sub_source_field}} 字段中的文本翻译为 {{to}},并将翻译结果写在 {{imt_sub_trans_field}} 字段中,要求如下:
1. 必须补全每一个 {{imt_sub_trans_field}} 字段,保留每一个 {{imt_sub_source_field}} 字段。
2. 返回可解析的 YAML :
{{subtitle_result_yaml_example}}
开始翻译:
{{yaml}}
2 changes: 1 addition & 1 deletion plugins/design.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: design
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
name: Designer
description: Specialized in translating art and design articles, enhancing clarity and preserving the original aesthetic and technical nuances.
Expand Down
2 changes: 1 addition & 1 deletion plugins/ebook.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: ebook
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
name: eBook Translation Expert
description: Specialized in eBook translations, ensuring accurate and contextually relevant digital book translations across genres.
Expand Down
2 changes: 1 addition & 1 deletion plugins/fiction.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: fiction
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
name: Fiction Translation Expert
description: Designed to enrich the narrative and emotional depth of fiction translations, ensuring each word captures the original's essence.
Expand Down
2 changes: 1 addition & 1 deletion plugins/news.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: news
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
name: Media Expert
description: Expertly crafted Prompts ensuring accurate and professional translations in the news media field.
Expand Down
2 changes: 1 addition & 1 deletion plugins/paper.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: paper
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
name: Academic Paper Translation Expert
description: Tailored for precise and scholarly translation of academic papers, ensuring fidelity to original academic tones and terminologies.
Expand Down
6 changes: 5 additions & 1 deletion plugins/paraphrase.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: paraphrase
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
priority: 10
name: Paraphrase Expert
Expand All @@ -18,6 +18,10 @@ i18n:
description: 專門設計用於豐富細膩差異和意譯的翻譯,經過先直譯,再意譯的步驟,確保翻譯超越字面,捕捉原文的精髓和語調。
details: |-
該專家專注於意譯翻譯,旨在捕捉不僅僅是文字,而是背後的意義和語調。它非常適合文學、成語表達以及任何上下文和內容同等重要的文本。使用此專家可以確保在目標語言中傳達原文的精髓,確保文化細膩差別和隱含意義不會在翻譯中丟失。
maxTextLengthPerRequest: 800,
maxTextGroupLengthPerRequestForSubtitle: 1
maxTextGroupLengthPerRequest: 1
env:
imt_source_field: source
imt_trans_field: step2
Expand Down
2 changes: 1 addition & 1 deletion plugins/tech.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id: tech
version: 1.0.1
version: 1.0.0
extensionVersion: 1.4.10
name: Technology Expert
description: With meticulously crafted Prompts, translations in the technology field become more accurate and professional.
Expand Down

0 comments on commit eae34cd

Please sign in to comment.