Skip to content

Commit 6f8c840

Browse files
authored
Update translation_prompt.liquid
optimize translation prompt 1.Enrich the translation examples. 2.Add necessary validation conditions for "output_count".
1 parent adc6486 commit 6f8c840

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)