langchain/libs/partners/xai
2024-11-18 19:10:39 -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 standard-tests: rename langchain_standard_tests to langchain_tests, release 0.3.2 (#28203) 2024-11-18 19:10:39 -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.