langchain/libs/partners/xai
2025-04-11 14:05:11 +00:00
..
langchain_xai xai[patch]: support reasoning content (#30758) 2025-04-11 14:00:27 +00:00
scripts partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
tests xai[patch]: support reasoning content (#30758) 2025-04-11 14:00:27 +00:00
LICENSE partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
Makefile infra: add UV_FROZEN to makefiles (#29642) 2025-02-06 14:36:54 -05:00
pyproject.toml xai: release 0.2.3 (#30790) 2025-04-11 14:05:11 +00:00
README.md partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
uv.lock xai: release 0.2.3 (#30790) 2025-04-11 14:05:11 +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.