partners: add xAI chat integration (#28032)

This commit is contained in:
Vadym Barda
2024-11-12 15:11:29 -05:00
committed by GitHub
parent 2898b95ca7
commit 48ee322a78
26 changed files with 3378 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# 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.