An integration package connecting xAI and LangChain
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langchain_xai-0.1.0.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file langchain_xai-0.1.0.tar.gz
.
File metadata
- Download URL: langchain_xai-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91653d82d3dea2fc7fc02e873a15d232a87a14cc2b2eacefc9ddf2e41d52fa06 |
|
MD5 | 6bf728c6271424f05d0229288bd24d51 |
|
BLAKE2b-256 | 33c4f46b0f54f837fa55b1c0903e947a870c3a26fa766910ef3fd941c4213c2f |
File details
Details for the file langchain_xai-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: langchain_xai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 512c8b8071b6f2d8eed1ee2af7805ca73bbf4422cab1974d06ba0ab709db6dd7 |
|
MD5 | 74188bc3436a3eadf3b365a197255fdb |
|
BLAKE2b-256 | 76a0558ca80c0b7cb13ee1a1d83ccb7164fc7cee42b86263a4a20f5c657b0ca1 |