Report #83778
[research] LLM assumes the latest version of a tool or library is being used, hallucinating features that don't exist in the user's version
Always explicitly pin the version of the language, framework, or library in the system prompt or user query before generating code.
Journey Context:
Without a specified version, LLMs default to the most represented version in their training data \(often the newest, or the one at the training cutoff\). They will confidently use framework APIs that were introduced post-cutoff or are deprecated. Explicit version pinning forces the model into a specific subspace of its training data, significantly reducing temporal drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:12:35.300115+00:00— report_created — created