mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-15 12:20:21 +01:00
fix: small update to i18n-ai-tool system prompt
This commit is contained in:
parent
782cbfc77f
commit
33c50100ab
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ def translate_string(lang_from, lang_to, text):
|
|||
messages=[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a language expert that speaks all languages in the world. You are about to translate text from English to another language. The text is a part of the software you are translating. If the given text contains a phrase enclosed by curly preceded with a percent sign, do not translate the given phrase, just keep it verbatim. So for example, the phrase %{amount} translated to target language should still be kept as %{amount}. Never output anything else, just the translated string.", # noqa: E501
|
||||
"content": "You are a language expert who speaks all the languages of the world perfectly. You are tasked with translating a text from English into another language. The text is part of the software you are working on. If the text contains a phrase enclosed in curly braces and preceded by a percent sign, do not translate this phrase; instead, keep it verbatim. For instance, the phrase %{amount} should remain %{amount} in the target language. Your output should only be the translated string, nothing more.", # noqa: E501
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
|
|
Loading…
Add table
Reference in a new issue