LangChain发布langchain-huggingface 1.2.3,修复API Token在repr中泄露
该版本自 1.2.2 以来的变更以依赖升级为主,另有一项修复让huggingfacehub_api_token不再出现在repr输出中,并更换了流式测试使用的Scaleway模型。
AI解读:langchain-huggingface 1.2.3是LangChain官方仓库发布的补丁版本,发布记录列出其相对 1.2.2 的变更。
发布记录中列为修复类的两处改动:让huggingfacehub_api_token不在repr中显示(#41047),以及在流式测试中改用受支持的Scaleway模型(#41095)。
其余条目大多为依赖版本升级与维护操作,包括langgraph-sdk、fsspec、sentence-transformers、urllib3、tornado、anyio、transformers、torch、langsmith、requests、orjson、filelock、idna等,以及lockfile更新和model profile数据刷新。
发布记录还包含一项功能变更:使用torch.accelerator做与设备无关的设备数量检测(#39640);以及一项移除操作:移除已退役的IPEX后端(#39649)。
这些变更描述来自该仓库自动生成的发布说明,来源未给出性能数据、适用范围说明或用户侧验证结果。
LangChain的langchain-huggingface包发布 1.2.3 版本,发布记录由仓库的github-actions[bot] 生成,列出的是相对 1.2.2 的变更。
1.2.3 中的修复与功能条目
发布记录把两项标记为修复:隐藏 `huggingfacehub_api_token` 以使其不出现在 `repr` 中(#41047);在流式测试中改用受支持的Scaleway模型(#41095)。另有一项功能变更:使用 `torch.accelerator` 做与设备无关的设备数量检测(#39640),以及一项移除:删除已退役的IPEX后端(#39649)。
- fix(huggingface): use a supported Scaleway model in streaming test (#41095)
- fix(huggingface): hide `huggingfacehub_api_token` from `repr` (#41047)
- feat(huggingface): use torch.accelerator for device-agnostic device count detection (#39640)
- fix(huggingface): remove retired IPEX backend (#39649)
依赖与维护类变更
发布记录中数量最多的是依赖升级,覆盖langgraph-sdk、fsspec、sentence-transformers、urllib3、tornado、anyio、transformers、torch、langsmith、requests、orjson、filelock、idna等包,另有lockfile更新、model profile数据刷新以及测试相关调整。这些条目标注为chore,来源未说明各项升级对使用者的具体影响。
- chore(deps): bump langgraph-sdk from 0.4.4 to 0.4.6 (#41098);以及 0.4.2 到 0.4.4 (#41076)
- chore(deps): bump fsspec from 2026.6.0 to 2026.9.0 (#41092);以及 2025.9.0 到 2026.6.0 (#41077)
- chore(deps): bump sentence-transformers from 5.2.3 to 5.6.0 (#40959)
- chore(deps): bump transformers from 5.5.0 to 5.10.1 (#40117)
- chore(deps): bump torch from 2.12.1 to 2.13.0 (#38911);以及 2.9.0 到 2.12.1 (#38240)
- chore(model-profiles): refresh model profile data(发布记录中多次出现)
- chore(huggingface): update lockfile (#41088)