Oven logo

Oven

Published

An integration package connecting xAI and LangChain

pip install langchain-xai

Package Downloads

Weekly DownloadsMonthly Downloads

Authors

Requires Python

>=3.9

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.