chore(i18n-ai-tool): use gpt-4o model + chore(i18n): update strings using the AI tool (#2511)

* chore(i18n-ai-tool): use gpt-4o model

* chore(i18n): update strings using the AI tool
This commit is contained in:
Pavol Rusnak 2024-05-22 13:18:23 +02:00 committed by GitHub
parent 5b056ce07e
commit 5f64c298c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 106 additions and 26 deletions

View file

@ -83,7 +83,7 @@ def translate_string(lang_from, lang_to, text):
"content": f"Translate the following string from English to {target}: {text}", # noqa: E501
},
],
model="gpt-4-1106-preview", # aka GPT-4 Turbo
model="gpt-4o",
)
assert chat_completion.choices[0].message.content, "No response from GPT-4"
translated = chat_completion.choices[0].message.content.strip()