From c952965d4c4d6202e061fcfae8756a88c6035a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20P=C3=A9rez?= Date: Mon, 26 Oct 2026 10:17:02 +0100 Subject: [PATCH] fix(openai): move nav translation off gpt-4 before it shuts down The nav translation script's AI fallback calls gpt-4, which OpenAI shuts down, so untranslated nav items would stay in English. This moves the call to gpt-5.6-sol, the replacement OpenAI names, using max_completion_tokens (raised to 1000 so reasoning fits) and dropping temperature, which reasoning models reject. --- scripts/update_nav_translations.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/update_nav_translations.py b/scripts/update_nav_translations.py index 4f4161d..bac3b69 100755 --- a/scripts/update_nav_translations.py +++ b/scripts/update_nav_translations.py @@ -133,7 +133,7 @@ def translate_nav_item( client_openai = openai.OpenAI(api_key=api_key) response = client_openai.chat.completions.create( - model="gpt-4", + model="gpt-5.6-sol", messages=[ { "role": "system", @@ -144,8 +144,7 @@ def translate_nav_item( "content": f"Translate '{text}' to {target_lang}", }, ], - temperature=0.3, - max_tokens=50, + max_completion_tokens=1000, ) response_content = response.choices[0].message.content if response_content is None: