Skip to main content
本页介绍如何在 LangChain 中使用 StochasticAI 生态系统。 内容分为两部分:安装与设置,以及对特定 StochasticAI 封装器的参考说明。

安装与设置

  • 使用 pip install stochasticx 安装
  • 获取 StochasticAI API 密钥并将其设置为环境变量(STOCHASTICAI_API_KEY

封装器

LLM

存在一个 StochasticAI LLM 封装器,访问方式:
from langchain_community.llms import StochasticAI