langchain/libs/partners/xai
Mason Daugherty eb12294583
langchain-xai[patch]: Add ruff bandit rules to linter (#31816)
- Add ruff bandit rules
- Some formatting
2025-07-01 18:59:06 +00:00
..
langchain_xai langchain-xai[patch]: Add ruff bandit rules to linter (#31816) 2025-07-01 18:59:06 +00:00
scripts
tests openai[patch]: allow specification of output format for Responses API (#31686) 2025-06-26 13:41:43 -04:00
LICENSE
Makefile infra: add UV_FROZEN to makefiles (#29642) 2025-02-06 14:36:54 -05:00
pyproject.toml langchain-xai[patch]: Add ruff bandit rules to linter (#31816) 2025-07-01 18:59:06 +00:00
README.md
uv.lock standard-tests: add benchmarks (#31302) 2025-05-29 15:21:37 +00: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.