langchain/libs/partners/xai
Mason Daugherty e5d0a4e4d6
feat(standard-tests): formatting (#32504)
Not touching `pyproject.toml` or chat model related items as to not
interfere with work in wip0.4 branch
2025-08-11 13:30:30 -04:00
..
langchain_xai feat(xai): ruff fixes and rules (#32501) 2025-08-11 13:03:07 -04:00
scripts feat(xai): ruff fixes and rules (#32501) 2025-08-11 13:03:07 -04:00
tests feat(xai): ruff fixes and rules (#32501) 2025-08-11 13:03:07 -04:00
LICENSE
Makefile feat(docs): improve devx, fix Makefile targets (#32237) 2025-07-25 14:49:03 -04:00
pyproject.toml feat(standard-tests): formatting (#32504) 2025-08-11 13:30:30 -04:00
README.md
uv.lock feat(xai): ruff fixes and rules (#32501) 2025-08-11 13:03:07 -04:00

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.