StochasticAI
本頁面涵蓋如何在 LangChain 中使用 StochasticAI 生態系統。它分為兩部分:安裝與設定,然後參考特定的 StochasticAI 封裝器。
安裝與設定
- 使用
pip install stochasticx
安裝 - 取得 StochasticAI API 金鑰並將其設定為環境變數 (
STOCHASTICAI_API_KEY
)
封裝器
LLM
存在一個 StochasticAI LLM 封裝器,您可以使用以下方式存取:
from langchain_community.llms import StochasticAI
API 參考:StochasticAI