langchain/libs/partners/xai
2024-12-18 22:15:24 +00:00
..
langchain_xai
scripts
tests multiple: fix xfailed signatures (#28597) 2024-12-06 15:39:47 -08:00
LICENSE
Makefile
poetry.lock partners/xai: release 0.1.1 (#28806) 2024-12-18 22:15:24 +00:00
pyproject.toml partners/xai: release 0.1.1 (#28806) 2024-12-18 22:15:24 +00:00
README.md

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.