提供者更多花瓣On this pagePetals 本页面介绍如何在 LangChain 中使用 Petals 生态系统。 内容分为两部分:安装与设置,以及对特定 Petals 封装的引用。 安装与设置 使用 pip install petals 安装 获取一个 Hugging Face API 密钥并将其设置为环境变量 (HUGGINGFACE_API_KEY) 包装器 LLM 存在一个 Petals LLM 包装器,你可以通过以下方式访问它: from langchain_community.llms import PetalsAPI 参考:花瓣