Update translation_prompt.liquid

optimize translation prompt
1.Enrich the translation examples.
2.Add necessary validation conditions for "output_count".
This commit is contained in:
易磊 2024-05-22 15:08:13 +08:00 committed by GitHub
parent adc6486345
commit 6f8c840dcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,4 +2,5 @@
=====
Translate all the above sentences into {{ language }}.
Output the translated text in JSON {"input_lang":"original text language", "output_count": {{ text_list_size }}, "output_lang":"{{ language }}", "texts":[{"id": 1, "text":""}]}.
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":""}]}.
The "output_count" must equal the length of the "texts" array in the output.