xAI chat model integration.
The xAI API is compatible to the OpenAI API with some limitations.
Setup:
Install @langchain/xai and set an environment variable named XAI_API_KEY.
npm insta
xAI Responses API chat model integration.
This class provides access to xAI's Responses API, which offers enhanced capabilities including built-in tools, reasoning, and search.