mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-01 20:49:17 +00:00
…tch]: import models from community ran ```bash git grep -l 'from langchain\.chat_models' | xargs -L 1 sed -i '' "s/from\ langchain\.chat_models/from\ langchain_community.chat_models/g" git grep -l 'from langchain\.llms' | xargs -L 1 sed -i '' "s/from\ langchain\.llms/from\ langchain_community.llms/g" git grep -l 'from langchain\.embeddings' | xargs -L 1 sed -i '' "s/from\ langchain\.embeddings/from\ langchain_community.embeddings/g" git checkout master libs/langchain/tests/unit_tests/llms git checkout master libs/langchain/tests/unit_tests/chat_models git checkout master libs/langchain/tests/unit_tests/embeddings/test_imports.py make format cd libs/langchain; make format cd ../experimental; make format cd ../core; make format ```
17 lines
513 B
Plaintext
17 lines
513 B
Plaintext
# StochasticAI
|
|
|
|
This page covers how to use the StochasticAI ecosystem within LangChain.
|
|
It is broken into two parts: installation and setup, and then references to specific StochasticAI wrappers.
|
|
|
|
## Installation and Setup
|
|
- Install with `pip install stochasticx`
|
|
- Get an StochasticAI api key and set it as an environment variable (`STOCHASTICAI_API_KEY`)
|
|
|
|
## Wrappers
|
|
|
|
### LLM
|
|
|
|
There exists an StochasticAI LLM wrapper, which you can access with
|
|
```python
|
|
from langchain_community.llms import StochasticAI
|
|
``` |