mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
anthropic: - max_retries openai: - n - temperature - max_retries fireworks - temperature groq - n - max_retries - temperature mistral - max_retries - timeout - max_concurrent_requests - temperature - top_p - safe_mode --------- Co-authored-by: Erick Friis <erick@langchain.dev>
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.