langchain/libs/partners/xai
2024-12-06 15:39:47 -08:00
..
langchain_xai partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
scripts partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
tests multiple: fix xfailed signatures (#28597) 2024-12-06 15:39:47 -08:00
LICENSE partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
Makefile partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
poetry.lock multiple: langchain-standard-tests -> langchain-tests (#28139) 2024-11-15 11:32:04 -08:00
pyproject.toml multiple: langchain-standard-tests -> langchain-tests (#28139) 2024-11-15 11:32:04 -08:00
README.md partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05: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.