hub-docs
a438b8dd - Skip provider/task combos with no @huggingface/inference snippet helper (#2527)

Commit
123 days ago
Skip provider/task combos with no @huggingface/inference snippet helper (#2527) The inference-providers doc build prerenders an <InferenceSnippet> for every (provider, task) section. The doc-builder generates those snippets via @huggingface/inference's getProviderHelper(provider, task), which throws an InferenceClientInputError when the provider has no helper for that task. The uncaught error surfaces as a SvelteKit 500 and fails the whole build. This happens whenever a provider's partner API advertises a live model for a task that @huggingface/inference doesn't (yet) support as a snippet, e.g. `together` + `automatic-speech-recognition` (added in #2507), which has been breaking the inference-providers doc build on main since 2026-05-29. Guard generate.ts so it never emits such a section: mirror the doc-builder's helper lookup (resolving conversational text-generation / image-text-to-text to the "conversational" task) and skip any combo getProviderHelper can't handle. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author
Parents
Loading