Repository navigation
fix(openai): move nav translation off gpt-4 before it shuts down - #89
Merged
bnbong merged 1 commit intoOct 26, 2026
Conversation
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.
Owner
|
Thanks for catching this. I confirmed the gpt-4 shutdown and the One optional tweak I may add after merging: Merging once CI finishes. Thanks again. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The nav translation script's AI fallback calls gpt-4, which OpenAI shuts down, so untranslated nav items would stay in English.
OpenAI: gpt-4 stops working (in effect since 23 Oct 2026, source).
Fix
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:135How I checked
The calls now follow Openai's announcement.
python3 -m py_compile scripts/update_nav_translations.pypasses.Not checked
Could not call the API: the 1000-token cap and the default reasoning effort of gpt-5.6-sol are untested, and translations may differ from gpt-4's.
scripts/update_nav_translations.py:199: calls translate_nav_item; no model named herescripts/update_nav_translations.py:242: calls the updater; no model named hereI found this while building Okapi, which watches the APIs a project calls and flags the changes that break them. Happy to chat if that is useful for FastAPI-fastkit, and no worries if not.