pypi / langchain-huggingface
langchain-huggingface
What changed in langchain-huggingface 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.
3 breaking1 security2 new APIs and options1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initlangchain-huggingface 19 changes
Breaking changes 3
The retired IPEX backend has been removed.
The minimum langchain-core version was raised to 1.2.21.
Hostname validation is hardened, and URLs are rejected in repo_id.
Security 1
The API token is hidden from object representations, reducing the chance of exposing it when instances are printed or logged.
New APIs and options 2
Adds text_inputs to model profiles.
Adds text_outputs to model profiles.
Behavior and default changes 1
Device-count detection uses torch.accelerator for device-agnostic detection.
Fixes and other changes 2
Using a local HuggingFaceEndpoint avoids Hugging Face API calls.
Resolves compatibility with huggingface-hub 1.x.