What fails#
Since 2026-11-16 21:02 UTC the Hugging Face models poll fails with huggingface: native recommendation section missing (PostHog ingest_failed, providerId huggingface, job models-poll, no source, so it is the whole poll, not a docs row).
Why#
listModels in src/server/providers/adapters/huggingface.ts:344 loads https://huggingface.co/docs/inference-providers/tasks/chat-completion through cachedDocs and parseHfHostedReasoning (src/server/providers/native-host-reasoning.ts:26). The parser needs an id="recommended-models" section. HF has removed it: the page's headings are now only "Chat Completion", "API Playground", "Using the API", "API specification" (checked 2026-11-16 21:20 UTC, HTTP 200, 156 KB). No "Recommended" text remains on the page.
The load is not wrapped in tryDocs, so one docs page taking away a section stops the whole HF listing.
Fix#
- Wrap the guide load in
tryDocs (model-facts.ts): when it throws, mark the reasoning fact unavailable(...) on the HF rows (stored values kept) and report it in docsFailures, as other adapters do. The listing itself is never wrapped.
- Look for where HF now states which hosted models reason (another docs page, or the model cards it links). If HF states it somewhere, read it from there; if not, the fact stays unavailable and goes in
docs/source-silent/huggingface.md with this issue number. Do not infer from model names and do not take it from OpenRouter.
- Keep the parser fail-closed. Add a test with a page that has no
recommended-models section: the poll still lists models, and the docs failure is reported.