Two examples default to gpt-4.1, which OpenAI shuts down on Jan 14, 2027

Retired model Reported

A reasoning-based document index for RAG without vectors; its README already names the current model as the indexing default.

The mistake: Retired modelAPPTwo example scriptsASKS FORgpt-4.1, thedefault in bothPROVIDEROpenAI: shutdown onJan 14, 2027RESULTAfter that dateboth return modelnot foundThe examples still default to a model being shutdownThe mistake: Retired modelAPPTwo example scriptsASKS FORgpt-4.1, thedefault in bothPROVIDEROpenAI: shutdown onJan 14, 2027RESULTAfter that dateboth return modelnot foundThe examples still default to a model being shutdownThe mistake: Retired modelAPPTwo example scriptsASKS FORgpt-4.1, the default in bothPROVIDEROpenAI: shutdown on Jan 14, 2027The examples still default to amodel being shut downRESULTAfter that date both returnmodel not found

Estimates, not measurements. Every figure on this page is an estimate from reading the code, not a measurement of the app in use.

Repository
VectifyAI/PageIndex 40.8k GitHub stars
Commit audited
0f0d5f7
leanprompt version
0.1.0-dev.15
Audit date
Status
The maintainers have been told about this audit; no response yet.
Maintainers
the issue
How it ran
Unattended audit: nobody was asked during the run, so priority, volume and prices were left open; the questions for the owner are listed at the end.

leanprompt read the code at commit 0f0d5f7 and found 0 places where its LLM calls could use fewer tokens, plus 2 other problems, not scored. Static score: 100 of 100 (an estimate from the findings). The code may have changed since.

Findings

No open findings.

Other problems the audit found

Problems read in the code that cost no tokens of their own, such as a cost meter or an error path. Not scored.

  1. Two shipped examples default to gpt-4.1, which OpenAI has announced it will shut down

    cookbook/pageindex-vision-rag.ipynb:153 · LP-GE-13 Default to a model the provider still serves · severity medium

    What happens. The vision RAG cookbook's call_vlm sends its requests to gpt-4.1 unless the caller passes another model, and the __main__ block of pageindex/page_index_md.py:315 sets MODEL="gpt-4.1". OpenAI's deprecations page (checked on 2026-11-28) lists GPT-4.1 (gpt-4.1-2025-04-14) as Deprecated with a shutdown date of Jan 14, 2027 and gpt-6-luna as the recommended replacement.

    The change. Use the model the README already recommends for indexing (gpt-6-luna) in both places, or read it from the same config the SDK uses, and check that the vision call works with it.

    Why it matters. After the shutdown date the notebook's helper and the module's example run fail with a model-not-found error.

    To check. Run the vision cookbook's call_vlm with the new default on one page image and confirm an answer is returned.

  2. A node summary cut off by a length stop is stored as is, with its JSON wrapper

    pageindex/utils.py:650 · LP-GE-12 Read the finish reason before using an answer · severity low

    What happens. _acompletion returns the reply text and never looks at finish_reason (the sync path does when asked, utils.py:599). For node summaries the reply goes to parse_summary (utils.py:1564), which returns the raw reply when it is not valid JSON, so a reply cut off inside {"summary": "... is saved as the node's summary including the opening brace and key. Indexing sends no max_tokens (utils.py:588-596, 642-649), so a cut can come only from the provider's own default or limit; we did not measure how often that happens.

    The change. Read choices[0].finish_reason in _acompletion; on a length stop raise or retry with a shorter ask, and let SummaryScheduler._visit fall back to fallback_summary (utils.py:1180), which it already does for an empty summary.

    Why it matters. The stored summary is what the search agent reads when it picks nodes, so a half-written JSON string is noise in the tree that nothing flags.

    To check. Mock one completion with finish_reason length and a truncated JSON body and check that the node ends up with the fallback summary, not the fragment.

The maintainers’ response

No response from the maintainers yet.

How this was made

The llm-call-audit skill read the code and wrote findings.json; nothing was run against the project’s providers. The full audit page is what leanprompt report --html writes from the same findings.

Corrections and takedown: email info@podwarden.com or open an issue.