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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user