r/LangChain • u/koopa__troopa787 • 7h ago
Projects ChatOpenAI(model="gpt-5-mini") stops working Friday. Made a checker that finds these in a repo
OpenAI shuts down gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro on Friday 11 Dec (https://developers.openai.com/api/docs/deprecations). Calls with those IDs fail after that.
In agent code the ID is rarely in one place. It's the default in a ChatOpenAI(...) call, an env fallback like os.getenv("LLM_MODEL", "gpt-5-mini"), a cheaper model for a sub-agent, a YAML config. We searched public GitHub today: 249 repos matched, and reading them by hand, 46 org-owned repos really send a retired ID, mostly through defaults like those.
So we built a checker (I'm one of the two people who made it, at a hackathon today). Point it at a public repo and it lists every file and line, with OpenAI's replacement. There's also a GitHub Action that fails CI on them, and a fix script that swaps the IDs and writes the PR description: https://github.com/koopatroopa787/deadline-check
The same scan covers Anthropic, Gemini, Bedrock and Azure model retirements too, plus Node/Python and npm package end-of-life. All 900+ dates are searchable on the site, each linked to the vendor page it came from.
Limits: it matches model IDs written as strings, so a name assembled at runtime won't be caught. If you know other places these hide in LangChain or LangGraph projects, I'd like to add them.