mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
These are set in Github workflows, but forgot to add them to most makefiles for convenience when developing locally. `uv run` will automatically sync the lock file. Because many of our development dependencies are local installs, it will pick up version changes and update the lock file. Passing `--frozen` or setting this environment variable disables the behavior.
langchain-xai
This package contains the LangChain integrations for xAI through their APIs.
Installation and Setup
- Install the LangChain partner package
pip install -U langchain-xai
- Get your xAI api key from the xAI Dashboard and set it as an environment variable (
XAI_API_KEY)
Chat Completions
This package contains the ChatXAI class, which is the recommended way to interface with xAI chat models.