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:
parent
5b056ce07e
commit
5f64c298c9
18 changed files with 106 additions and 26 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue