]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
⬇️ Downgrade LLM translations model to GPT-5 to reduce mistakes (#14823)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 4 Feb 2026 17:00:40 +0000 (09:00 -0800)
committerGitHub <noreply@github.com>
Wed, 4 Feb 2026 17:00:40 +0000 (18:00 +0100)
scripts/translate.py

index 072383514b5d73684f35a07c95ae7ab7112e9f34..31c44583d1915aa71be40c43ca520d4e00aad50a 100644 (file)
@@ -86,7 +86,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.2")
+    agent = Agent("openai:gpt-5")
 
     prompt_segments = [
         general_prompt,