Repository navigation
fix: replace the gpt-5-mini runtime default model before OpenAI retires it - #255
Open
alexcastgonz (pcbeingused333) wants to merge 1 commit into
Conversation
…es it Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
GPT-5 mini, GPT-5 nano and GPT-5 are retired by OpenAI on 2026-12-11 (replacements:
gpt-5.6-terra,gpt-5.6-luna,gpt-5.6-sol). The SDK fallback model,get_default_model()in Python andgetDefaultModel()in TypeScript, is stillgpt-5-mini. After the retirement, any scorer that runs withoutinit(default_model=...)or an explicitmodelwould fail.#230 moved the exported
DEFAULT_MODELconstant togpt-6-lunaand kept this fallback on purpose. This PR changes the fallback now, because its model goes away:get_default_model()/getDefaultModel()returngpt-5.6-terra, OpenAI's replacement forgpt-5-mini. It keeps thegpt-5prefix, so the routing to the Responses API does not change.DEFAULT_RAGAS_MODEL(gpt-5-nano) becomesgpt-5.6-luna, its replacement.SCORERS.mdname the new defaults.If you prefer one default for both the constant and the fallback,
gpt-6-lunais a two-string change; it does not start withgpt-5, so it would use the Chat Completions path unlessuse_responses_apiis set. Say which one you prefer and the PR will follow it.Tests: the Python tests for the fallback (
test_oai.py,test_init_models.py) and the TypeScript ones (oai.test.ts,init-models.test.ts) now expect the new default; the four Python ones fail onmain. Python: those two files pass. TypeScript:oai.test.ts,init-models.test.tsandllm.test.tspass. The tests that call the live API (ragas.test.ts, the Pythontest_llm.pyones) need an OpenAI key and were not run, so the full suites were not compared against the previous state.This change was prepared with AI assistance (Claude Code).