mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
partners: add xAI chat integration (#28032)
This commit is contained in:
17
libs/partners/xai/README.md
Normal file
17
libs/partners/xai/README.md
Normal 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.
|
||||
Reference in New Issue
Block a user