{"slug": "i-checked-the-example-code-in-88-popular-ai-projects-61-files-call-llm-models-no", "title": "I checked the example code in 88 popular AI projects. 61 files call LLM models that no longer exist.", "summary": "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.", "body_md": "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.\n\nI 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.\n\n`gpt-4.5-preview` was shut down in July 2025. `o1-preview` went the same month.\nThe 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.\n\nThe 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.\n\nThat 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.\n\nIt 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.\n\nThese are the retired models that showed up, with the number of example files naming each:\n\n`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\nEvery date comes from the provider's own deprecation page, read on 30 November 2026.\n\nLess than I would like, and I want to say why.\n\nThe 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.\n\nSo 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:\n\n`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.\nWhat is left is 69 files: 61 confirmed and 8 on Google's dates.\n\nThree 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.\n\nA 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.\n\nIf you want to run the same check on your own code:\n\n```\nnpx ifx-optimizer scan .\n```\n\nIt 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.\n\nEvery file counted above, by project. Paths are from each project's latest commit on 30 November 2026.\n\n**vercel/ai** (35 files)\n\n`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)\n\n`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)\n\n`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)\n\n`examples/misc/personalized_search.py`: `examples/multimodal-demo/src/hooks/useChat.ts`: `examples/multimodal-demo/useChat.ts`: **langchain-ai/deepagents** (3 files)\n\n`examples/async-subagent-server/server.py`: `examples/async-subagent-server/supervisor.py`: `examples/text-to-sql-agent/agent.py`: **headroomlabs-ai/headroom** (1 file)\n\n`sdk/typescript/examples/openai-anthropic-adapters.ts`: **langchain-ai/langgraph** (1 file)\n\n`examples/chatbot-simulation-evaluation/simulation_utils.py`: **ComposioHQ/composio** (1 file)\n\n`ts/examples/google/src/index.ts`: `gemini-2.0-flash-001`, listed shutdown 2026-06-01\n*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.*", "url": "https://wpnews.pro/news/i-checked-the-example-code-in-88-popular-ai-projects-61-files-call-llm-models-no", "canonical_source": "https://dev.to/gokzy/i-checked-the-example-code-in-88-popular-ai-projects-61-files-call-llm-models-that-no-longer-exist-4p3e", "published_at": "2026-11-30 22:09:32+00:00", "updated_at": "2026-11-30 22:14:36.202791+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "developer-tools", "ai-infrastructure"], "entities": ["GitHub", "Anthropic", "OpenAI", "Google", "claude-sonnet-4-5", "gpt-3.5-turbo-instruct", "o3-mini", "ifx-o"], "also_reported_by": [], "takeaway": "Of 88 top-starred AI projects, 61 example files called retired models (26 naming claude-sonnet-4-5 alone) while only 5 projects shipped a dead model in product code, so a CI check for known retired model names would catch every broken example.", "recommendation": {"advice": "Add a CI check that fails when a known retired model name appears in your code, since product code is exercised daily but examples are written once and never re-run.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/i-checked-the-example-code-in-88-popular-ai-projects-61-files-call-llm-models-no", "markdown": "https://wpnews.pro/news/i-checked-the-example-code-in-88-popular-ai-projects-61-files-call-llm-models-no.md", "text": "https://wpnews.pro/news/i-checked-the-example-code-in-88-popular-ai-projects-61-files-call-llm-models-no.txt", "jsonld": "https://wpnews.pro/news/i-checked-the-example-code-in-88-popular-ai-projects-61-files-call-llm-models-no.jsonld"}}