Merge pull request #468 from yileicn/optimizeTranslate

optimize translation prompt
This commit is contained in:
C. Oceania 2024-05-22 05:59:16 -05:00 committed by GitHub
commit a0e058d12a
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.