langchain/libs/partners/xai
ccurme 49eeb0f3c3
standard-tests: add benchmarks (#31302)
Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com>
2025-05-29 15:21:37 +00:00
..
langchain_xai docs: update xai docs (#31382) 2025-05-27 15:09:51 -04:00
scripts
tests xai: support live search (#31379) 2025-05-27 14:08:59 -04:00
LICENSE
Makefile infra: add UV_FROZEN to makefiles (#29642) 2025-02-06 14:36:54 -05:00
pyproject.toml xai: release 0.2.4 (#31380) 2025-05-27 14:33:36 -04: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.