The langchain-xai library version 1.3.0 introduces several notable features for self-hosted users. A new reasoning_effort parameter has been added as a standard chat model option, allowing you to adjust the depth of reasoning for xAI models. Additionally, you can now set a custom API base URL via the base_url alias or the XAI_API_BASE environment variable, useful when routing traffic through proxies or local servers. Under the hood, streaming has been improved with a content-block-centric architecture, giving finer control over streamed responses.
Maintenance items in this release address compatibility with the xAI API. The stop parameter, which was unsupported, has been dropped to prevent confusion. Deprecation of the live search feature has also been handled, ensuring smooth operation with current API versions.
On the security and reliability front, a critical vulnerability in Pygments (CVE-2026-4539) has been mitigated by requiring version 2.20.0 or later across all packages. The tracing integration via langsmith has been updated to the latest release, enhancing observability. Several other dependency bumps, including aiohttp and requests, further stabilize the library.



