I checked the example code in 88 popular AI projects. 61 files call LLM models that no longer exist. A developer built a command-line tool that scans codebases for calls to retired LLM models and ran it against 88 of GitHub's most-starred AI projects, finding 61 example files that reference models providers have since shut down. The most common dead model was claude-sonnet-4-5, retired 30 November 2026, accounting for 26 of the 61 files, while only 5 of the 88 projects shipped a retired model in product code. The developer manually verified all 112 findings after an initial scan produced false positives, and recommends a CI check that fails when a known retired model appears. Example code is the first thing a new user runs. You clone the repository, open the examples folder, paste in your API key and press enter. If the example names a model the provider has shut down, the first thing you get is an error. I build a small command line tool https://www.ifx.news/optimizer that reads a codebase, finds every place it calls an LLM, and flags models that have been retired. I pointed it at 88 of the most-starred AI projects on GitHub and then opened every finding by hand. gpt-4.5-preview was shut down in July 2025. o1-preview went the same month. The single most common dead model is claude-sonnet-4-5 , which Anthropic retired on 30 November 2026, the day I ran this. That one date accounts for 26 of the 61 files. Take it out and there are still 35 files in 5 projects that were already broken before this week. The projects' own code was mostly fine. Only 5 of the 88 ship a call to a retired model in the product itself. Four of them catch the error or ignore it, and the fifth is a fallback that only applies when the caller does not pass a model. That makes sense. Product code gets run every day, so a dead model is noticed within hours. An example is written once, usually on the week a new model launches, and then nobody runs it again. Several of the affected examples are named after the model they show off. The model went away and the example stayed. It also means the cost lands on the person least able to deal with it. A maintainer knows the model was renamed. Someone trying the project for the first time sees a 404 and assumes they set it up wrong. These are the retired models that showed up, with the number of example files naming each: claude-sonnet-4-5 and claude-sonnet-4-5-20250929 : 26 files, retired 30 November 2026 gpt-3.5-turbo-instruct : 6 files, shut down 28 September 2026 claude-3-7-sonnet-20250219 : 4 files, retired 19 February 2026 o3-mini : 4 files, shut down 23 October 2026 claude-3-5-sonnet both snapshots : 5 files, retired 28 October 2025 claude-sonnet-4-20250514 : 3 files, retired 15 June 2026 gpt-4.1-nano-2025-04-14 : 3 files, shut down 23 October 2026 gpt-5-codex : 3 files, shut down 23 July 2026 gpt-3.5-turbo : 2 files, shut down 23 October 2026 o1-2024-12-17 , o4-mini , claude-3-5-haiku-20241022 : 1 file each Every date comes from the provider's own deprecation page, read on 30 November 2026. Less than I would like, and I want to say why. The first time I ran the scanner on these projects it told me 14 of them shipped a retired model in product code. When I opened the findings, about half were wrong. It had counted usage examples inside docstrings as real calls. It had attached a model defined in one file to a call in another. On one project it took a model name from a help message. I fixed each of those, added tests, and ran everything again. The honest figure for product code turned out to be 5. So for this count I did not trust the tool. I opened all 112 findings outside test files and threw out anything I could not stand behind: anthropic/claude-sonnet-4-5 . A gateway can route those to another host where the model may still be served. examples folder that turned out to be fixtures for unit tests. What is left is 69 files: 61 confirmed and 8 on Google's dates. Three limits remain. I read the code and did not run it, so I have not watched any of these fail. The scanner only sees calls where the model name is written in the code, so examples that read the model from a config file are invisible to it. And "example" covers a range: some of these are getting started scripts, and some are small scripts a project keeps to exercise one feature. A retired model name is a string in a file. Finding it does not need a clever tool, it needs someone to look. A check in CI that fails when a known retired model appears would have caught every file on this list on the day the model went away. If you want to run the same check on your own code: npx ifx-optimizer scan . It runs locally and needs no account. If it gets something wrong on your code, I would like to hear about it. That is how the last three bugs were found. Every file counted above, by project. Paths are from each project's latest commit on 30 November 2026. vercel/ai 35 files examples/ai-e2e-next/app/api/completion/route.ts : examples/ai-functions/src/generate-text/anthropic/code-execution-20250825-downloads.ts : examples/ai-functions/src/generate-text/anthropic/code-execution-20250825.ts : examples/ai-functions/src/generate-text/anthropic/code-execution-20260120.ts : examples/ai-functions/src/generate-text/anthropic/code-execution-file-upload.ts : examples/ai-functions/src/generate-text/anthropic/computer-use-computer.ts : claude-3-5-sonnet-20241022 , shut down 2025-10-28 examples/ai-functions/src/generate-text/anthropic/context-management-combined.ts : examples/ai-functions/src/generate-text/anthropic/context-management-thinking.ts : examples/ai-functions/src/generate-text/anthropic/custom-provider-name.ts : examples/ai-functions/src/generate-text/anthropic/programmatic-tool-calling.ts : examples/ai-functions/src/generate-text/anthropic/provider-defined-tools.ts : examples/ai-functions/src/generate-text/anthropic/reasoning-chatbot.ts : examples/ai-functions/src/generate-text/anthropic/reasoning-without-budget.ts : examples/ai-functions/src/generate-text/anthropic/skills.ts : examples/ai-functions/src/generate-text/anthropic/text-editor-tool.ts : examples/ai-functions/src/generate-text/google/gemini-3-1-flash-lite.ts : gemini-3.1-flash-lite-preview , listed shutdown 2026-05-25 examples/ai-functions/src/generate-text/openai/completion-chat.ts : examples/ai-functions/src/generate-text/openai/completion.ts : examples/ai-functions/src/generate-text/openai/local-shell-tool.ts : examples/ai-functions/src/stream-text/anthropic/code-execution-20250825-downloads.ts : examples/ai-functions/src/stream-text/anthropic/code-execution-20250825.ts : examples/ai-functions/src/stream-text/anthropic/code-execution-20260120.ts : examples/ai-functions/src/stream-text/anthropic/code-execution-file-upload.ts : examples/ai-functions/src/stream-text/anthropic/programmatic-tool-calling.ts : examples/ai-functions/src/stream-text/anthropic/reasoning-chatbot.ts : examples/ai-functions/src/stream-text/anthropic/skills.ts : examples/ai-functions/src/stream-text/google/gemini-3-1-flash-lite.ts : examples/ai-functions/src/stream-text/openai/codex.ts : examples/ai-functions/src/stream-text/openai/compatible-raw-chunks.ts : examples/ai-functions/src/stream-text/openai/completion-chat.ts : examples/ai-functions/src/stream-text/openai/completion.ts : examples/ai-functions/src/stream-text/openai/local-shell-tool.ts : examples/ai-functions/src/stream-text/openai/store-generation.ts : examples/ai-functions/src/upload-skill/anthropic/upload-with-inference.ts : examples/ai-functions/src/upload-skill/multi-provider.ts : firecrawl/firecrawl 19 files examples/claude stock analyzer/claude stock analyzer.py : claude-3-5-sonnet-20240620 , shut down 2025-10-28 examples/claude-3.7-stock-analyzer/claude-3.7-stock-analyzer.py : examples/claude3.7-web-crawler/claude3.7-web-crawler.py : examples/claude3.7-web-extractor/claude-3.7-web-extractor.py : examples/deep-research-apartment-finder/apartment finder.py : examples/gemini-2.0-crawler/gemini-2.0-crawler.py : gemini-2.0-flash , listed shutdown 2026-06-01 examples/gemini-2.0-web-extractor/gemini-2.0-web-extractor.py : examples/gemini-github-analyzer/gemini-github-analyzer.py : examples/gpt-4.5-web-crawler/gpt-4.5-crawler.py : examples/haiku web crawler/haiku web crawler.py : examples/job-resource-analyzer/job-resources-analyzer.py : examples/o1 job recommender/o1 job recommender.py : examples/o1 web crawler/o1 web crawler.py : examples/o1 web extractor/o1 web extractor.py : examples/o3-mini company researcher/o3-mini company researcher.py : examples/o3-mini web crawler/o3-mini web crawler.py : examples/o3-mini-deal-finder/o3-mini-deal-finder.py : examples/o4-mini-web-crawler/o4-mini-web-crawler.py : examples/sonnet web crawler/sonnet web crawler.py : Shubhamsaboo/awesome-llm-apps 6 files advanced ai agents/multi agent apps/ai home renovation agent/tools.py : gemini-3-pro-preview , listed shutdown 2026-03-09 advanced ai agents/single agent apps/windows use autonomous agent/main.py : advanced llm apps/llm apps with memory tutorials/multi llm memory/multi llm memory.py : mcp ai agents/multi mcp agent router/agent forge.py : rag tutorials/corrective rag/corrective rag.py : rag tutorials/rag-as-a-service/rag app.py : mem0ai/mem0 3 files examples/misc/personalized search.py : examples/multimodal-demo/src/hooks/useChat.ts : examples/multimodal-demo/useChat.ts : langchain-ai/deepagents 3 files examples/async-subagent-server/server.py : examples/async-subagent-server/supervisor.py : examples/text-to-sql-agent/agent.py : headroomlabs-ai/headroom 1 file sdk/typescript/examples/openai-anthropic-adapters.ts : langchain-ai/langgraph 1 file examples/chatbot-simulation-evaluation/simulation utils.py : ComposioHQ/composio 1 file ts/examples/google/src/index.ts : gemini-2.0-flash-001 , listed shutdown 2026-06-01 Method: 88 repositories chosen from the most-starred GitHub projects under AI topics llm, ai-agents, rag, openai and similar , filtered by hand to apps and frameworks that call model APIs, excluding lists, courses and repositories over 1 GB. Each was cloned at its latest commit on 30 November 2026 and scanned without installing or running anything. Test files are excluded. A file counts once however many calls it contains.