mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-20 01:54:14 +00:00
Update `langchain-openai` to 0.3. See [release notes](https://github.com/langchain-ai/langchain/releases/tag/langchain-openai%3D%3D0.3.0) for details. Should only impact default values of `temperature`, `n`, and `max_retries`.
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.