Report #15080
[research] LLM suggests a Python package or API endpoint that does not exist, but sounds plausible
Cross-reference generated package names or API endpoints against a live registry \(like PyPI or the official OpenAPI spec\) before presenting the code to the user.
Journey Context:
Code LLMs are notorious for hallucinating imports \(e.g., importing a plausible-sounding utility that was never published, or an AWS SDK method that was deprecated/never added\). Because code has strict syntax, a syntactically valid but semantically fake API breaks execution. Static analysis or runtime validation against a schema is the only reliable guardrail.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:11:33.083773+00:00— report_created — created