langchain-huggingface==1.2.2

LangChain Releases / 4/17/2026

📰 NewsDeveloper Stack & InfrastructureTools & Practical UsageModels & Research

Key Points

  • langchain-huggingface==1.2.2は、前バージョン1.2.1からの変更としてハードニングと依存関係更新を中心にリリースされています。
  • Hugging Face連携において、hostnameの検証を強化しrepo_id内でURLを拒否することで、不正入力や意図しない指定に対する安全性を高めています。
  • /libs/partners/huggingface配下の依存として、langsmithを0.6.3から0.7.31へ更新しています。
  • テスト基盤としてpytestを9.0.3へアップデートし、開発・検証環境の維持を進めています。
  • model profileデータのrefresh(更新)も含まれており、モデル情報の整合性・鮮度が改善されます。

Changes since langchain-huggingface==1.2.1

release(huggingface): 1.2.2 (#36832)
fix(huggingface): harden hostname validation and reject URLs in repo_id (#36831)
chore: bump langsmith from 0.6.3 to 0.7.31 in /libs/partners/huggingface (#36802)
chore(deps): bump pytest to 9.0.3 (#36801)
chore: bump langsmith from 0.6.3 to 0.7.31 in /libs/partners/huggingface (#36794)
chore(model-profiles): refresh model profile data (#36720)
chore(model-profiles): refresh model profile data (#36596)
chore: add comment explaining pygments>=2.20.0 (#36570)
chore: bump aiohttp from 3.13.3 to 3.13.4 in /libs/partners/huggingface (#36436)
chore: pygments>=2.20.0 across all packages (CVE-2026-4539) (#36385)
fix(huggingface): avoid hf api calls when using local HuggingFaceEndpoint (#35633)
chore: bump requests from 2.32.5 to 2.33.0 in /libs/partners/huggingface (#36252)
chore(partners): bump langchain-core min to 1.2.21 (#36183)
fix(core,model-profiles): add missing ModelProfile fields, warn on schema drift (#36129)
ci: suppress pytest streaming output in CI (#36092)
ci: avoid unnecessary dep installs in lint targets (#36046)
chore: bump orjson from 3.11.5 to 3.11.6 in /libs/partners/huggingface (#35861)
feat(model-profiles): new fields + Makefile target (#35788)
chore: bump tornado from 6.5.2 to 6.5.5 in /libs/partners/huggingface (#35776)
docs(huggingface): add [full] install guidance and sentence-transformers>=5.2.0 migration note (#35713)
chore: bump langgraph from 1.0.8 to 1.0.10rc1 in /libs/partners/huggingface (#35613)