Skip to content

Commit a0e058d

Browse files
authored
Merge pull request #468 from yileicn/optimizeTranslate
optimize translation prompt
2 parents a0752ff + 6f8c840 commit a0e058d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/templates/translation_prompt.liquid

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
=====
44
Translate all the above sentences into {{ language }}.
5-
Output the translated text in JSON {"input_lang":"original text language", "output_count": {{ text_list_size }}, "output_lang":"{{ language }}", "texts":[{"id": 1, "text":""}]}.
5+
Output the translated text in JSON {"input_lang":"original text language", "output_count": {{ text_list_size }}, "output_lang":"{{ language }}", "texts":[{"id": 1, "text":""},{"id": 2, "text":""}]}.
6+
The "output_count" must equal the length of the "texts" array in the output.

0 commit comments

Comments
 (0)