Metadata-Version: 2.1
Name: langchain-xai
Version: 0.2.2
Summary: An integration package connecting xAI and LangChain
License: MIT
Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/partners/xai
Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-xai%3D%3D0%22&expanded=true
Project-URL: repository, https://github.com/langchain-ai/langchain
Requires-Python: <4.0,>=3.9
Requires-Dist: langchain-openai<0.4,>=0.3.9
Requires-Dist: langchain-core<1.0.0,>=0.3.47
Requires-Dist: requests<3,>=2
Requires-Dist: aiohttp<4,>=3.9.1
Description-Content-Type: text/markdown

# langchain-xai

This package contains the LangChain integrations for [xAI](https://x.ai/) through their [APIs](https://console.x.ai).

## Installation and Setup

- Install the LangChain partner package

```bash
pip install -U langchain-xai
```

- Get your xAI api key from the [xAI Dashboard](https://console.x.ai) 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.
