跳到主要内容
Open on GitHub

StochasticAI

本页面介绍如何在 LangChain 中使用 StochasticAI 生态系统。它分为两个部分:安装和设置,以及特定 StochasticAI 封装器的参考。

安装与设置

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

包装器

LLM

存在一个 StochasticAI LLM 封装器,您可以通过以下方式访问:

from langchain_community.llms import StochasticAI
API 参考:StochasticAI
© . This site is unofficial and not affiliated with LangChain, Inc.
这些文档随着 LangChain v1.0 在 2025 年 10 月的发布而弃用,并且不再维护。 请访问 v1.0 文档