]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
⬆️ Upgrade OpenAI model for translations to gpt-5.2 (#14579)
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 21 Dec 2025 08:06:22 +0000 (00:06 -0800)
committerGitHub <noreply@github.com>
Sun, 21 Dec 2025 08:06:22 +0000 (08:06 +0000)
scripts/translate.py

index 764bc704eae22ab3afc7c064a29e9c8dc955f964..6ebd24f547e8b9c20b3bc17dcc7b9287172bd0a7 100644 (file)
@@ -727,7 +727,7 @@ def translate_page(
         print(f"Found existing translation: {out_path}")
         old_translation = out_path.read_text(encoding="utf-8")
     print(f"Translating {en_path} to {language} ({language_name})")
-    agent = Agent("openai:gpt-5")
+    agent = Agent("openai:gpt-5.2")
 
     prompt_segments = [
         general_prompt,