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 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.
What I found
- 61 example and tutorial files, across 7 of the 88 projects, call a model that OpenAI or Anthropic has shut down. The model name is written into the call and the call goes straight to the provider.
- 8 more files call a Gemini model that is past its listed shutdown date. That adds an eighth project. Google describes its dates as the earliest a model may be turned off, so I count these separately.
- 8 of the files name a model that has been gone for more than a year.
gpt-4.5-previewwas shut down in July 2025.o1-previewwent the same month. - In one project, 19 of 56 example folders are affected (16 confirmed, 3 on Google's dates). A third of the folder.
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.
Why examples and not the product
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.
The models
These are the retired models that showed up, with the number of example files naming each:
-
claude-sonnet-4-5andclaude-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 -
o1-preview: 2 files, shut down 28 July 2025 -
gpt-3.5-turbo: 2 files, shut down 23 October 2026 -
gpt-4.5-preview,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.
How much to trust these numbers
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:
- 5 calls that use a gateway style name such as
anthropic/claude-sonnet-4-5. A gateway can route those to another host where the model may still be served. - 2 files that call Azure, which keeps its own retirement schedule.
- 3 files in an
examplesfolder that turned out to be fixtures for unit tests. - 3 calls in internal scripts.
- 1 call that used a library with the same method names as the OpenAI SDK but does not talk to OpenAI at all.
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.
What would stop this
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.
The full list
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:gpt-3.5-turbo-instruct, shut down 2026-09-28 -
examples/ai-functions/src/generate-text/anthropic/code-execution-20250825-downloads.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/code-execution-20250825.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/code-execution-20260120.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/code-execution-file-upload.ts:claude-sonnet-4-5, shut down 2026-11-30 -
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:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/context-management-thinking.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/custom-provider-name.ts:claude-sonnet-4-20250514, shut down 2026-06-15 -
examples/ai-functions/src/generate-text/anthropic/programmatic-tool-calling.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/provider-defined-tools.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/reasoning-chatbot.ts:claude-sonnet-4-5-20250929, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/reasoning-without-budget.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/skills.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/generate-text/anthropic/text-editor-tool.ts:claude-sonnet-4-20250514, shut down 2026-06-15 -
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:gpt-3.5-turbo-instruct, shut down 2026-09-28 -
examples/ai-functions/src/generate-text/openai/completion.ts:gpt-3.5-turbo-instruct, shut down 2026-09-28 -
examples/ai-functions/src/generate-text/openai/local-shell-tool.ts:gpt-5-codex, shut down 2026-07-23 -
examples/ai-functions/src/stream-text/anthropic/code-execution-20250825-downloads.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/stream-text/anthropic/code-execution-20250825.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/stream-text/anthropic/code-execution-20260120.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/stream-text/anthropic/code-execution-file-upload.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/stream-text/anthropic/programmatic-tool-calling.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/stream-text/anthropic/reasoning-chatbot.ts:claude-sonnet-4-5-20250929, shut down 2026-11-30 -
examples/ai-functions/src/stream-text/anthropic/skills.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/stream-text/google/gemini-3-1-flash-lite.ts:gemini-3.1-flash-lite-preview, listed shutdown 2026-05-25 -
examples/ai-functions/src/stream-text/openai/codex.ts:gpt-5-codex, shut down 2026-07-23 -
examples/ai-functions/src/stream-text/openai/compatible-raw-chunks.ts:gpt-3.5-turbo-instruct, shut down 2026-09-28 -
examples/ai-functions/src/stream-text/openai/completion-chat.ts:gpt-3.5-turbo-instruct, shut down 2026-09-28 -
examples/ai-functions/src/stream-text/openai/completion.ts:gpt-3.5-turbo-instruct, shut down 2026-09-28 -
examples/ai-functions/src/stream-text/openai/local-shell-tool.ts:gpt-5-codex, shut down 2026-07-23 -
examples/ai-functions/src/stream-text/openai/store-generation.ts:gpt-3.5-turbo, shut down 2026-10-23 -
examples/ai-functions/src/upload-skill/anthropic/upload-with-inference.ts:claude-sonnet-4-5, shut down 2026-11-30 -
examples/ai-functions/src/upload-skill/multi-provider.ts:claude-sonnet-4-5, shut down 2026-11-30
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:claude-3-7-sonnet-20250219, shut down 2026-02-19 -
examples/claude3.7-web-crawler/claude3.7-web-crawler.py:claude-3-7-sonnet-20250219, shut down 2026-02-19 -
examples/claude3.7-web-extractor/claude-3.7-web-extractor.py:claude-3-7-sonnet-20250219, shut down 2026-02-19 -
examples/deep-research-apartment-finder/apartment_finder.py:claude-3-7-sonnet-20250219, shut down 2026-02-19 -
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:gemini-2.0-flash, listed shutdown 2026-06-01 -
examples/gemini-github-analyzer/gemini-github-analyzer.py:gemini-2.0-flash, listed shutdown 2026-06-01 -
examples/gpt-4.5-web-crawler/gpt-4.5-crawler.py:gpt-4.5-preview, shut down 2025-07-14 -
examples/haiku_web_crawler/haiku_web_crawler.py:claude-3-5-sonnet-20241022, shut down 2025-10-28;claude-3-5-haiku-20241022, shut down 2026-02-19 -
examples/job-resource-analyzer/job-resources-analyzer.py:o3-mini, shut down 2026-10-23 -
examples/o1_job_recommender/o1_job_recommender.py:o1-preview, shut down 2025-07-28 -
examples/o1_web_crawler/o1_web_crawler.py:o1-preview, shut down 2025-07-28 -
examples/o1_web_extractor/o1_web_extractor.py:o1-2024-12-17, shut down 2026-10-23 -
examples/o3-mini_company_researcher/o3-mini_company_researcher.py:o3-mini, shut down 2026-10-23 -
examples/o3-mini_web_crawler/o3-mini_web_crawler.py:o3-mini, shut down 2026-10-23 -
examples/o3-mini-deal-finder/o3-mini-deal-finder.py:o3-mini, shut down 2026-10-23 -
examples/o4-mini-web-crawler/o4-mini-web-crawler.py:o4-mini, shut down 2026-10-23 -
examples/sonnet_web_crawler/sonnet_web_crawler.py:claude-3-5-sonnet-20241022, shut down 2025-10-28
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:gemini-2.0-flash, listed shutdown 2026-06-01 -
advanced_llm_apps/llm_apps_with_memory_tutorials/multi_llm_memory/multi_llm_memory.py:claude-3-5-sonnet-20240620, shut down 2025-10-28 -
mcp_ai_agents/multi_mcp_agent_router/agent_forge.py:claude-sonnet-4-20250514, shut down 2026-06-15 -
rag_tutorials/corrective_rag/corrective_rag.py:claude-sonnet-4-5, shut down 2026-11-30 -
rag_tutorials/rag-as-a-service/rag_app.py:claude-sonnet-4-5, shut down 2026-11-30
mem0ai/mem0 (3 files)
-
examples/misc/personalized_search.py:gpt-4.1-nano-2025-04-14, shut down 2026-10-23 -
examples/multimodal-demo/src/hooks/useChat.ts:gpt-4.1-nano-2025-04-14, shut down 2026-10-23 -
examples/multimodal-demo/useChat.ts:gpt-4.1-nano-2025-04-14, shut down 2026-10-23
langchain-ai/deepagents (3 files)
-
examples/async-subagent-server/server.py:claude-sonnet-4-5, shut down 2026-11-30 -
examples/async-subagent-server/supervisor.py:claude-sonnet-4-5, shut down 2026-11-30 -
examples/text-to-sql-agent/agent.py:claude-sonnet-4-5-20250929, shut down 2026-11-30
headroomlabs-ai/headroom (1 file)
-
sdk/typescript/examples/openai-anthropic-adapters.ts:claude-sonnet-4-5-20250929, shut down 2026-11-30
langchain-ai/langgraph (1 file)
-
examples/chatbot-simulation-evaluation/simulation_utils.py:gpt-3.5-turbo, shut down 2026-10-23
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.
